On 18.01.2019 8:59, star keeper wrote:
But in my opinion this is also a bad coding habit and can easily be fixed by giving the constants different values.
No, It's not a bad practice, it's an IAR violation to C language standard, see 6.5.9 Equality operators:

-----------
Two pointers compare equal if and only if both are null pointers, *both are pointers to the same object* (including a pointer to an object and a subobject at its beginning) or function, both are pointers to one past the last element of the same array object, or one is a pointer to one past the end of one array object and the other is a pointer to the start of a different array object that happens to immediately follow the first array object in the address space.
------------

Sergey.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to