]> git.saurik.com Git - bison.git/blobdiff - src/bison.simple
* src/output.c (output_master_parser): Don't finish action_obstack.
[bison.git] / src / bison.simple
index 7f17cd153c2f7fe30dc89d03ab1c9b4e17863650..9e094384089e96640c5dbd0691b867bafab76565 100644 (file)
 #define yynerrs %%prefix##nerrs
 
 /* Copy the user declarations.  */
+#line %%input_line "%%filename"
 %%prologue
 
+#line %%line "%%skeleton"
 #ifndef __cplusplus
 # ifndef __STDC__
 #  define const
 # define YYDEBUG %%debug
 #endif
 
+#line %%input_line "%%filename"
 #ifndef YYSTYPE
-# define YYSTYPE %%stype
+typedef %%stype YYSTYPE;
 #endif
 
 #ifndef YYLTYPE
@@ -366,7 +369,7 @@ __yy_memcpy (char *to, const char *from, unsigned int count)
 
 \f
 
-#line %%line "%%filename"
+#line %%line "%%skeleton"
 
 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
    into yyparse.  The argument should have type void *.
@@ -758,9 +761,9 @@ yyreduce:
 #endif
   switch (yyn)
     {
-      %%action /* The action file replaces this line.  */
+      %%action
     }
-#line %%line "%%filename"
+#line %%line "%%skeleton"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
@@ -990,5 +993,6 @@ yyabortlab:
   return 1;
 }
 
+#line %%input_line "%%filename"
 %%epilogue