* src/reader.c (copy_guard): Use muscle to specify the `#line'

filename.
This commit is contained in:
Pascal Bart
2001-09-01 10:40:54 +00:00
parent 53cdf751a3
commit 682d48cd09
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2001-09-01 Pascal Bart <pascal.bart@epita.fr>
* src/reader.c (copy_guard): Use muscle to specify the `#line'
filename.
2001-09-01 Marc Autret <autret_m@epita.fr>
* tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set

View File

@@ -1201,7 +1201,8 @@ copy_guard (symbol_list *rule, int stack_offset)
obstack_fgrow1 (&guard_obstack, "\ncase %d:\n", nrules);
if (!no_lines_flag)
obstack_fgrow2 (&guard_obstack, "#line %d %s\n",
lineno, quotearg_style (c_quoting_style, infile));
lineno, quotearg_style (c_quoting_style,
macro_find ("filename")));
obstack_1grow (&guard_obstack, '{');
count = 0;