On Fri, Aug 18, 2017 at 12:26 PM, Martin Storsjö <mar...@martin.st> wrote:
> Yup, that resolves the concern.
>
> As long as you just use one or the other of *_LIST__ or *_END__ in each
> function and use the sentinel values instead of comparing the pointers, it
> should be fine. Otherwise the compiler is free to regard the comparison as
> nonsense.
>
> // Martin

I'm not so sure; a normal C struct or array would never have a global
symbol defined in the middle or at the end, so a smart compiler might
some day assume that if you take a symbol and decrement it, it's an
invalid pointer.  I don't really want to argue much more than that,
and I don't have a specific thing to point to in the C standard.

--David

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to