+2001-11-27 Paul Eggert <eggert@twinsun.com>
+
+ * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
+ use alloca when we didn't want to, and vice versa.
+
2001-11-27 Marc Autret <autret_m@epita.fr>
* src/muscle_tab.c (muscle_init): Remove 'verbose' muscle initialization.
# define YYSTACK_REALLOC(Type, What, Array) \
do { \
Type *old = What; \
- What = (Type *) malloc (yystacksize * sizeof (Type)); \
+ What = (Type *) alloca (yystacksize * sizeof (Type)); \
__yy_memcpy ((char *) What, (char *) old, \
(size) * (unsigned int) sizeof (Type)); \
- yyfree_stacks = 1; \
- if (old != Array) \
- free (old); \
} while (0)
#else
# define YYSTACK_REALLOC(Type, What, Array) \
do { \
Type *old = What; \
- What = (Type *) alloca (yystacksize * sizeof (Type)); \
+ What = (Type *) malloc (yystacksize * sizeof (Type)); \
__yy_memcpy ((char *) What, (char *) old, \
(size) * (unsigned int) sizeof (Type)); \
+ yyfree_stacks = 1; \
+ if (old != Array) \
+ free (old); \
} while (0)
#endif