mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 03:03:02 +00:00
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
Use `#if , not `#ifndef'. Reported by Airy Andre.
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Version 1.29d.
|
Version 1.29d.
|
||||||
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
|
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
|
||||||
Use `#if YYSTACK_USE_ALLOCA', not `#ifdef'.
|
Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
|
||||||
Reported by Airy ANDRE.
|
Reported by Airy Andre.
|
||||||
|
|
||||||
2001-10-10 Akim Demaille <akim@epita.fr>
|
2001-10-10 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
yystacksize *= 2;
|
yystacksize *= 2;
|
||||||
if (yystacksize > YYMAXDEPTH)
|
if (yystacksize > YYMAXDEPTH)
|
||||||
yystacksize = YYMAXDEPTH;
|
yystacksize = YYMAXDEPTH;
|
||||||
# if 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