]> git.saurik.com Git - bison.git/commitdiff
* src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA. BISON-1_29d
authorAkim Demaille <akim@epita.fr>
Wed, 10 Oct 2001 14:59:46 +0000 (14:59 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 10 Oct 2001 14:59:46 +0000 (14:59 +0000)
Use `#if , not `#ifndef'.
Reported by Airy Andre.

ChangeLog
src/bison.simple

index 145a15ece541cf1f9ee7845156c0b14887b8be31..4e7936dcd5d3e9b8f4f0a69f2bafd5b34796f7db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,8 +2,8 @@
 
        Version 1.29d.
        * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
 
        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>
 
 
 2001-10-10  Akim Demaille  <akim@epita.fr>
 
index c62708ff0523e73d879c45b0e6a0803132a0798b..c1b90e98b515fc8ca0085e9ce0eab283323b0881 100644 (file)
@@ -420,7 +420,7 @@ yyparse (YYPARSE_PARAM_ARG)
       yystacksize *= 2;
       if (yystacksize > YYMAXDEPTH)
        yystacksize = YYMAXDEPTH;
       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));
       yyfree_stacks = 1;
 # endif
       yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));