On 2025-10-06 13:45, Antonin Décimo wrote:
Gentle ping; this is useful for a trick from Modern C, 3rd edition,
from Jens Gustedt. See 5.4-2.
https://inria.hal.science/hal-02383654v2/file/modernC.pdf

Thanks for the ping, though I'm a bit puzzled by the "5.4-2". Perhaps you're referring to an older edition of the book? Does Gustedt recommend a macro for this sort of thing?

The macro name seems pretty long, given how commonly used this would be for code that uses Gustedt's style. How about a shorter name like "ATIC", short for "Array TINIEST INDEX COUNT"? This macro name is short and (unlike "STATIC") is unlikely to be used in existing code.

Also, we should arrange for __STDC_NO_VLA__ to be 1 on compilers that don't define that macro but lack support for VLAs.

Reply via email to