* src/bison.simple: Remove #line just before %%epilogue. It

is now handled in ...
* src/reader.c (read_additionnal_code): Add the output of a
#line for the epilogue.
This commit is contained in:
Marc Autret
2001-12-11 20:10:22 +00:00
parent e83d80b8ed
commit 710ddc4f18
3 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2001-12-11 Marc Autret <autret_m@epita.fr>
* src/bison.simple: Remove #line just before %%epilogue. It
is now handled in ...
* src/reader.c (read_additionnal_code): Add the output of a
#line for the epilogue.
2001-12-10 Marc Autret <autret_m@epita.fr>
* src/reader.c (copy_definition): Re-use CPP-outed code which

View File

@@ -1102,5 +1102,4 @@ yyreturn:
return yyresult;
}
#line %%input-line "%%filename"
%%epilogue

View File

@@ -1688,6 +1688,13 @@ read_additionnal_code (void)
obstack_init (&el_obstack);
if (!no_lines_flag)
{
obstack_fgrow2 (&el_obstack, muscle_find ("linef"),
lineno, quotearg_style (c_quoting_style,
muscle_find("filename")));
}
while ((c = getc (finput)) != EOF)
obstack_1grow (&el_obstack, c);