/* FIXME. */
static inline void
-output_table_data (struct obstack* oout,
- short* table_data,
+output_table_data (struct obstack *oout,
+ short *table_data,
short first,
short begin,
short end)
}
fskel = xfopen (skeleton, "r");
- /* New output code. */
+ /* New output code. */
line = 1;
c = getc (fskel);
while (c != EOF)
}
else if ((c = getc (fskel)) == '%')
{
- /* Read the macro. */
- const char* macro_key = 0;
- const char* macro_value = 0;
+ /* Read the macro. */
+ const char *macro_key = 0;
+ const char *macro_value = 0;
while (isalnum (c = getc (fskel)) || c == '_')
obstack_1grow (¯o_obstack, c);
obstack_1grow (¯o_obstack, 0);
- /* Output the right value, or see if it's something special. */
+ /* Output the right value, or see if it's something special. */
macro_key = obstack_finish (¯o_obstack);
macro_value = macro_find (macro_key);
if (macro_value)
obstack_1grow (&table_obstack, '%');
}
- /* End. */
+ /* End. */
xfclose (fskel);
}
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);
}
/*----------------------------------------------------------.