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

ChangeLog
THANKS
src/bison.simple

index ade3974e80766525c2ae3b8aa935309f5be8fa9f..145a15ece541cf1f9ee7845156c0b14887b8be31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 2001-10-10  Akim Demaille  <akim@epita.fr>
 
        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>
 
diff --git a/THANKS b/THANKS
index 7cf068c680f613394063258242615907b8f5908e..08548b7940d2929bb39361142f5369e7f5fd12f8 100644 (file)
--- 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
index be6974d706424bade973b9297ab3f559cb055d20..c62708ff0523e73d879c45b0e6a0803132a0798b 100644 (file)
 # 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));