X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9e644e648d544ef79756cfb58098ec6f233bc451..490abf53b1391c2bc49564bff71ac400880323ad:/src/bison.simple?ds=sidebyside diff --git a/src/bison.simple b/src/bison.simple index 7f17cd15..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 @@ -366,7 +373,7 @@ __yy_memcpy (char *to, const char *from, unsigned int count) -#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 *. @@ -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,9 +765,9 @@ yyreduce: #endif switch (yyn) { - %%action /* The action file replaces this line. */ + %%action } -#line %%line "%%filename" +#line %%line "%%skeleton" yyvsp -= yylen; yyssp -= yylen; @@ -990,5 +997,5 @@ yyabortlab: return 1; } +#line %%input_line "%%filename" %%epilogue -