Paul Eggert wrote: > > Re: Bison i18n patches installed > > yet-another patch needed in yacc.c? > > See comment on alloca below from: > > GNU gettext library from gettext-0.14.5 > > > > file: gettext-runtime/intl/plural.y > > ... > > /* The bison generated parser uses alloca. AIX 3 forces us to put this > > declaration at the beginning of the file. The declaration in bison's > > skeleton file comes too late. This must come before <config.h> > > because <config.h> may include arbitrary system headers. */ > > #if defined _AIX && !defined __GNUC__ > > #pragma alloca > > #endif > > This comment in plural.y applies only to older versions of Bison. > Starting with Bison 2.0, Bison-generated C parsers do not use alloca > unless you ask for it (by defining YYSTACK_USE_ALLOCA to a nonzero > value), and plural.y doesn't ask for it. I assume that gettext is > intended to be portable to older versions of Bison, which is why that > comment is still there.
Yes, that's it. I'm now adding a comment there regarding bison >= 2.0. Bruno
