Re: undefined-behavior obstack.c:139

2023-12-16 Thread Bruno Haible
Hi Paul, Paul Eggert wrote: > PS. The name END_OF_ARRAY is not the best, since a null pointer does not > point to an array, and even when the pointer is non-null the macro can > be used to point elsewhere than to the end of an array. A better name > would be something like PTR_ADD, since the fi

Re: pointer addition and arrays

2023-12-16 Thread Marc Nieper-Wißkirchen
Am Fr., 15. Dez. 2023 um 02:00 Uhr schrieb Paul Eggert : > On 12/3/23 05:15, Andreas F. Borchert wrote: > > You will have > > then to possibly live with annoying warnings and odd behaviours. > > The C standard says that when P is a null pointer, P==P must be true > whereas P<=P has undefined behav