]> git.saurik.com Git - bison.git/blobdiff - src/bison.simple
* src/bison.simple: Fix debug.
[bison.git] / src / bison.simple
index 67ac9a359d92075107ed3f0bab6eea252f52b161..872ee38b6d3c527cdfefa62626c9151075dfe32b 100644 (file)
 # 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
 
@@ -149,10 +149,12 @@ typedef struct yyltype
 # define YYLTYPE %%ltype
 #endif
 
-#ifndef YYERROR_VERBOSE
-# define YYERROR_VERBOSE %%verbose
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
 #endif
 
+#define YYERROR_VERBOSE %%error_verbose
+
 /* Tokens.  */
 %%tokendef