X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f508cb0ac9a43d70b186255021420a27b3225f48..490abf53b1391c2bc49564bff71ac400880323ad:/src/bison.simple diff --git a/src/bison.simple b/src/bison.simple index 2e44e86c..56e63c17 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -44,8 +44,10 @@ #define yynerrs %%prefix##nerrs /* Copy the user declarations. */ +#line %%input_line "%%filename" %%prologue +#line %%line "%%skeleton" #ifndef __cplusplus # ifndef __STDC__ # define const @@ -96,6 +98,10 @@ # endif /* alloca not defined */ #endif /* YYSTACK_USE_ALLOCA not defined */ +#ifndef YYSTACK_USE_ALLOCA +# define YYSTACK_USE_ALLOCA 0 +#endif + #if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca #else @@ -109,8 +115,9 @@ # define YYDEBUG %%debug #endif +#line %%input_line "%%filename" #ifndef YYSTYPE -# define YYSTYPE %%stype +typedef %%stype YYSTYPE; #endif #ifndef YYLTYPE @@ -509,13 +516,13 @@ yyparse (YYPARSE_PARAM_ARG) /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ -yynewstate: + yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yyssp++; -yysetstate: + yysetstate: *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) @@ -758,7 +765,7 @@ yyreduce: #endif switch (yyn) { - %%action /* The action file replaces this line. */ + %%action } #line %%line "%%skeleton" @@ -990,5 +997,5 @@ yyabortlab: return 1; } +#line %%input_line "%%filename" %%epilogue -