From: Akim Demaille Date: Wed, 10 Oct 2001 14:52:20 +0000 (+0000) Subject: * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA. X-Git-Tag: BISON-1_29d~1 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/31a743b2bb27321d09d59c4009d5f914b4d9ada3?ds=inline * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA. Use `#if YYSTACK_USE_ALLOCA', not `#ifdef'. Reported by Airy Andre. --- diff --git a/ChangeLog b/ChangeLog index ade3974e..145a15ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 2001-10-10 Akim Demaille Version 1.29d. + * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA. + Use `#if YYSTACK_USE_ALLOCA', not `#ifdef'. + Reported by Airy ANDRE. 2001-10-10 Akim Demaille diff --git a/THANKS b/THANKS index 7cf068c6..08548b79 100644 --- a/THANKS +++ b/THANKS @@ -1,6 +1,7 @@ Bison was originally written by Robert Corbett. It would not be what it is today without the invaluable help of these people: +Airy Andre Airy.Andre@edf.fr Akim Demaille akim@epita.fr Albert Chin-A-Young china@thewrittenword.com Alexander Belopolsky alexb@rentec.com diff --git a/src/bison.simple b/src/bison.simple index be6974d7..c62708ff 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -72,6 +72,10 @@ # endif /* alloca not defined */ #endif /* YYSTACK_USE_ALLOCA not defined */ +#ifndef YYSTACK_USE_ALLOCA +# define YYSTACK_USE_ALLOCA 0 +#endif + #if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca #else @@ -358,7 +362,7 @@ yyparse (YYPARSE_PARAM_ARG) have just been pushed. so pushing a state here evens the stacks. */ yyssp++; - + yysetstate: *yyssp = yystate; @@ -416,7 +420,7 @@ yyparse (YYPARSE_PARAM_ARG) yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; -# ifndef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA yyfree_stacks = 1; # endif yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));