Bruno Haible via Gnulib discussion list <[email protected]> writes: > Hi all, > > In the Gnulib documentation, section "C99 features assumed by Gnulib", > we list: > > * A declaration after a statement, or as the first clause in a for > statement. > > The last compiler that did not support this was IRIX cc, which we don't > support for many years now. > > But, so far, we have not made much use of the opportunity of adopting > this C99 style.
We make use of it. I used to patch out these changes from gnulib because I wanted to support Debian 3 woody builds, but I gave up a couple of months ago since this usage is spreading. It felt a bit awkward that it is gnulib that would cause me to drop portability to an old system. Still, I think this is a useful enough feature to warrant giving up compatibility with ancient C compilers. https://gitlab.com/libidn/libidn/-/commit/405fe6f4a173485df7beb8a27558d17aa349de78 /Simon
signature.asc
Description: PGP signature
