mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
* src/reader.c (copy_definition): Re-use CPP-outed code which
replace precedent remove. * src/bison.simple: Remove #line before %%prologue because %%input-line is wrong at this time.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2001-12-10 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
|
* src/reader.c (copy_definition): Re-use CPP-outed code which
|
||||||
|
replace precedent remove.
|
||||||
|
* src/bison.simple: Remove #line before %%prologue because
|
||||||
|
%%input-line is wrong at this time.
|
||||||
|
|
||||||
2001-12-10 Marc Autret <autret_m@epita.fr>
|
2001-12-10 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
* src/reader.c (symbols_output): Clean up.
|
* src/reader.c (symbols_output): Clean up.
|
||||||
|
|||||||
6
TODO
6
TODO
@@ -1,10 +1,12 @@
|
|||||||
-*- outline -*-
|
-*- outline -*-
|
||||||
|
|
||||||
* src/reader.c
|
* src/reader.c
|
||||||
Check and cleanup for CPP-out code. []
|
Check and cleanup for CPP-out code. [ok]
|
||||||
|
|
||||||
* src/output.c
|
* src/output.c
|
||||||
Check and cleanup for CPP-out code. []
|
Check and cleanup for CPP-out code. [ok]
|
||||||
|
** %%input-line is not correct at this time.
|
||||||
|
Rely with bison.simple.
|
||||||
|
|
||||||
* Broken options ?.
|
* Broken options ?.
|
||||||
** %no-lines []
|
** %no-lines []
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ typedef struct yyltype
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Copy the user declarations. */
|
/* Copy the user declarations. */
|
||||||
#line %%input-line "%%filename"
|
|
||||||
%%prologue
|
%%prologue
|
||||||
|
|
||||||
#line %%line "%%skeleton"
|
#line %%line "%%skeleton"
|
||||||
|
|||||||
@@ -959,6 +959,8 @@ output_parser (const char *skel_filename, struct obstack *oout)
|
|||||||
obstack_sgrow (oout, muscle_value);
|
obstack_sgrow (oout, muscle_value);
|
||||||
else if (!strcmp (muscle_key, "line"))
|
else if (!strcmp (muscle_key, "line"))
|
||||||
obstack_fgrow1 (oout, "%d", line + 1);
|
obstack_fgrow1 (oout, "%d", line + 1);
|
||||||
|
/* How can lineno be correct after having finished reading
|
||||||
|
input file ? --Marc. */
|
||||||
else if (!strcmp (muscle_key, "input-line"))
|
else if (!strcmp (muscle_key, "input-line"))
|
||||||
obstack_fgrow1 (oout, "%d", lineno);
|
obstack_fgrow1 (oout, "%d", lineno);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -437,14 +437,12 @@ copy_definition (void)
|
|||||||
/* -1 while reading a character if prev char was %. */
|
/* -1 while reading a character if prev char was %. */
|
||||||
int after_percent;
|
int after_percent;
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (!no_lines_flag)
|
if (!no_lines_flag)
|
||||||
{
|
{
|
||||||
obstack_fgrow2 (&attrs_obstack, muscle_find ("linef"),
|
obstack_fgrow2 (&attrs_obstack, muscle_find ("linef"),
|
||||||
lineno, quotearg_style (c_quoting_style,
|
lineno, quotearg_style (c_quoting_style,
|
||||||
muscle_find("filename")));
|
muscle_find("filename")));
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
after_percent = 0;
|
after_percent = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user