mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 11:13:03 +00:00
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
Use `#if YYSTACK_USE_ALLOCA', not `#ifdef'. Reported by Airy Andre.
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
2001-10-10 Akim Demaille <akim@epita.fr>
|
2001-10-10 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Version 1.29d.
|
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 <akim@epita.fr>
|
2001-10-10 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
|||||||
1
THANKS
1
THANKS
@@ -1,6 +1,7 @@
|
|||||||
Bison was originally written by Robert Corbett. It would not be what
|
Bison was originally written by Robert Corbett. It would not be what
|
||||||
it is today without the invaluable help of these people:
|
it is today without the invaluable help of these people:
|
||||||
|
|
||||||
|
Airy Andre Airy.Andre@edf.fr
|
||||||
Akim Demaille akim@epita.fr
|
Akim Demaille akim@epita.fr
|
||||||
Albert Chin-A-Young china@thewrittenword.com
|
Albert Chin-A-Young china@thewrittenword.com
|
||||||
Alexander Belopolsky alexb@rentec.com
|
Alexander Belopolsky alexb@rentec.com
|
||||||
|
|||||||
@@ -72,6 +72,10 @@
|
|||||||
# endif /* alloca not defined */
|
# endif /* alloca not defined */
|
||||||
#endif /* YYSTACK_USE_ALLOCA not defined */
|
#endif /* YYSTACK_USE_ALLOCA not defined */
|
||||||
|
|
||||||
|
#ifndef YYSTACK_USE_ALLOCA
|
||||||
|
# define YYSTACK_USE_ALLOCA 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if YYSTACK_USE_ALLOCA
|
#if YYSTACK_USE_ALLOCA
|
||||||
# define YYSTACK_ALLOC alloca
|
# define YYSTACK_ALLOC alloca
|
||||||
#else
|
#else
|
||||||
@@ -358,7 +362,7 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
have just been pushed. so pushing a state here evens the stacks.
|
have just been pushed. so pushing a state here evens the stacks.
|
||||||
*/
|
*/
|
||||||
yyssp++;
|
yyssp++;
|
||||||
|
|
||||||
yysetstate:
|
yysetstate:
|
||||||
*yyssp = yystate;
|
*yyssp = yystate;
|
||||||
|
|
||||||
@@ -416,7 +420,7 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
yystacksize *= 2;
|
yystacksize *= 2;
|
||||||
if (yystacksize > YYMAXDEPTH)
|
if (yystacksize > YYMAXDEPTH)
|
||||||
yystacksize = YYMAXDEPTH;
|
yystacksize = YYMAXDEPTH;
|
||||||
# ifndef YYSTACK_USE_ALLOCA
|
# if YYSTACK_USE_ALLOCA
|
||||||
yyfree_stacks = 1;
|
yyfree_stacks = 1;
|
||||||
# endif
|
# endif
|
||||||
yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
|
yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
|
||||||
|
|||||||
Reference in New Issue
Block a user