Use `#if YYSTACK_USE_ALLOCA', not `#ifdef'.
Reported by Airy Andre.
2001-10-10 Akim Demaille <akim@epita.fr>
Version 1.29d.
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>
2001-10-10 Akim Demaille <akim@epita.fr>
Bison was originally written by Robert Corbett. It would not be what
it is today without the invaluable help of these people:
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
Akim Demaille akim@epita.fr
Albert Chin-A-Young china@thewrittenword.com
Alexander Belopolsky alexb@rentec.com
# endif /* alloca not defined */
#endif /* YYSTACK_USE_ALLOCA not defined */
# 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
#if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
#else
have just been pushed. so pushing a state here evens the stacks.
*/
yyssp++;
have just been pushed. so pushing a state here evens the stacks.
*/
yyssp++;
yysetstate:
*yyssp = yystate;
yysetstate:
*yyssp = yystate;
yystacksize *= 2;
if (yystacksize > YYMAXDEPTH)
yystacksize = YYMAXDEPTH;
yystacksize *= 2;
if (yystacksize > YYMAXDEPTH)
yystacksize = YYMAXDEPTH;
-# ifndef 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));