108 |
# define YYSTACK_REALLOC(Type, What, Array) \ |
# define YYSTACK_REALLOC(Type, What, Array) \ |
109 |
do { \ |
do { \ |
110 |
Type *old = What; \ |
Type *old = What; \ |
111 |
What = (Type *) malloc (yystacksize * sizeof (Type)); \ |
What = (Type *) alloca (yystacksize * sizeof (Type)); \ |
112 |
__yy_memcpy ((char *) What, (char *) old, \ |
__yy_memcpy ((char *) What, (char *) old, \ |
113 |
(size) * (unsigned int) sizeof (Type)); \ |
(size) * (unsigned int) sizeof (Type)); \ |
|
yyfree_stacks = 1; \ |
|
|
if (old != Array) \ |
|
|
free (old); \ |
|
114 |
} while (0) |
} while (0) |
115 |
#else |
#else |
116 |
# define YYSTACK_REALLOC(Type, What, Array) \ |
# define YYSTACK_REALLOC(Type, What, Array) \ |
117 |
do { \ |
do { \ |
118 |
Type *old = What; \ |
Type *old = What; \ |
119 |
What = (Type *) alloca (yystacksize * sizeof (Type)); \ |
What = (Type *) malloc (yystacksize * sizeof (Type)); \ |
120 |
__yy_memcpy ((char *) What, (char *) old, \ |
__yy_memcpy ((char *) What, (char *) old, \ |
121 |
(size) * (unsigned int) sizeof (Type)); \ |
(size) * (unsigned int) sizeof (Type)); \ |
122 |
|
yyfree_stacks = 1; \ |
123 |
|
if (old != Array) \ |
124 |
|
free (old); \ |
125 |
} while (0) |
} while (0) |
126 |
#endif |
#endif |
127 |
|
|