bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison i18n patches installed


From: Bruno Haible
Subject: Re: Bison i18n patches installed
Date: Mon, 18 Jul 2005 13:44:46 +0200
User-agent: KMail/1.5

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]