X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e8cb70b957244a959fa0dbb4b886dbe5f34283d3..4134cae3c5ff2fc3346ebc5b10d5c25c72c72cfe:/src/output.c diff --git a/src/output.c b/src/output.c index a788343a..eecb8c68 100644 --- a/src/output.c +++ b/src/output.c @@ -1067,23 +1067,15 @@ prepare (void) MACRO_INSERT_INT ("ntbase", ntokens); MACRO_INSERT_INT ("verbose", 0); - MACRO_INSERT_STRING ("filename", infile); - MACRO_INSERT_INT ("nnts", nvars); MACRO_INSERT_INT ("nrules", nrules); MACRO_INSERT_INT ("nstates", nstates); MACRO_INSERT_INT ("ntokens", ntokens); + MACRO_INSERT_INT ("locations_flag", locations_flag); + if (spec_name_prefix) - { - MACRO_INSERT_PREFIX ("yylex", "lex"); - MACRO_INSERT_PREFIX ("yychar", "char"); - MACRO_INSERT_PREFIX ("yylval", "lval"); - MACRO_INSERT_PREFIX ("yydebug", "debug"); - MACRO_INSERT_PREFIX ("yyerror", "error"); - MACRO_INSERT_PREFIX ("yynerrs", "nerrs"); - MACRO_INSERT_PREFIX ("yyparse", "parse"); - } + MACRO_INSERT_STRING ("prefix", spec_name_prefix); } /*----------------------------------------------------------.