* src/reader.c (copy_action): Use `filename' muscule with `#line'.
(parse_union_decl): Likewise.
* src/macrotab.c (macro_init): Initialize filename by infile.
+2001-08-31 Pascal Bart <pascal.bart@epita.fr>
+
+ * src/output.c (prepare): Delete the `filename' muscule insertion.
+ * src/reader.c (copy_action): Use `filename' muscule with `#line'.
+ (parse_union_decl): Likewise.
+ * src/macrotab.c (macro_init): Initialize filename by infile.
+
2001-08-31 Marc Autret <autret_m@epita.fr>
* src/bison.simple (YYLSP_NEEDED): New definition.
/* Version and input file. */
macro_insert ("version", VERSION);
- macro_insert ("filename", "a.y");
+ macro_insert ("filename", infile);
/* Types. */
macro_insert ("stype", "int");
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);
if (!no_lines_flag)
obstack_fgrow2 (&attrs_obstack, "\n#line %d %s\n",
- lineno, quotearg_style (c_quoting_style, infile));
+ lineno, quotearg_style (c_quoting_style,
+ macro_find("filename")));
else
obstack_1grow (&attrs_obstack, '\n');
if (!no_lines_flag)
{
sprintf (buf, "#line %d %s\n",
- lineno, quotearg_style (c_quoting_style, infile));
+ lineno, quotearg_style (c_quoting_style,
+ macro_find ("filename")));
obstack_grow (&action_obstack, buf, strlen (buf));
}
obstack_1grow (&action_obstack, '{');