* src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to

use alloca when we didn't want to, and vice versa.
This commit is contained in:
Paul Eggert
2001-11-27 23:19:14 +00:00
parent b3324f97a8
commit 648185ab4a
2 changed files with 13 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
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.

View File

@@ -106,6 +106,14 @@
If WHAT was malloc'ed (not the original automatic ARRAY), free it. */
#if YYSTACK_USE_ALLOCA
# define YYSTACK_REALLOC(Type, What, Array) \
do { \
Type *old = What; \
What = (Type *) alloca (yystacksize * sizeof (Type)); \
__yy_memcpy ((char *) What, (char *) old, \
(size) * (unsigned int) sizeof (Type)); \
} while (0)
#else
# define YYSTACK_REALLOC(Type, What, Array) \
do { \
Type *old = What; \
What = (Type *) malloc (yystacksize * sizeof (Type)); \
@@ -115,14 +123,6 @@ do { \
if (old != Array) \
free (old); \
} while (0)
#else
# define YYSTACK_REALLOC(Type, What, Array) \
do { \
Type *old = What; \
What = (Type *) alloca (yystacksize * sizeof (Type)); \
__yy_memcpy ((char *) What, (char *) old, \
(size) * (unsigned int) sizeof (Type)); \
} while (0)
#endif
#define YYBISON 1 /* Identify Bison output. */