X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c51d1a1973f08d7a7f30d4efe44268ffc618eea0..5f7e08323a452b0b55ad94b8c866970a2929d9ad:/src/bison.simple diff --git a/src/bison.simple b/src/bison.simple index 5b980d18..eb94f301 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -98,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 @@ -111,8 +115,10 @@ # define YYDEBUG %%debug #endif +#line %%input_line "%%filename" #ifndef YYSTYPE -# define YYSTYPE %%stype +typedef %%stype yystype; +# define YYSTYPE yystype #endif #ifndef YYLTYPE @@ -511,13 +517,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) @@ -760,7 +766,7 @@ yyreduce: #endif switch (yyn) { - %%action /* The action file replaces this line. */ + %%action } #line %%line "%%skeleton" @@ -994,4 +1000,3 @@ yyabortlab: #line %%input_line "%%filename" %%epilogue -