* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.

Use `#if , not `#ifndef'.
Reported by Airy Andre.
This commit is contained in:
Akim Demaille
2001-10-10 14:59:46 +00:00
parent 31a743b2bb
commit bf31619762
2 changed files with 3 additions and 3 deletions

View File

@@ -2,8 +2,8 @@
Version 1.29d.
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
Use `#if YYSTACK_USE_ALLOCA', not `#ifdef'.
Reported by Airy ANDRE.
Use `#if !YYSTACK_USE_ALLOCA', not `#ifndef'.
Reported by Airy Andre.
2001-10-10 Akim Demaille <akim@epita.fr>

View File

@@ -420,7 +420,7 @@ yyparse (YYPARSE_PARAM_ARG)
yystacksize *= 2;
if (yystacksize > YYMAXDEPTH)
yystacksize = YYMAXDEPTH;
# if YYSTACK_USE_ALLOCA
# if !YYSTACK_USE_ALLOCA
yyfree_stacks = 1;
# endif
yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));