mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
* src/output.c (actions_output): Fix. When we use %no-lines,
there is one less line per action.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-16 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
|
* src/output.c (actions_output): Fix. When we use %no-lines,
|
||||||
|
there is one less line per action.
|
||||||
|
|
||||||
2001-12-16 Marc Autret <autret_m@epita.fr>
|
2001-12-16 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
* src/bison.simple: Remove a useless #line directive.
|
* src/bison.simple: Remove a useless #line directive.
|
||||||
|
|||||||
@@ -556,8 +556,11 @@ actions_output (FILE *out, size_t *line)
|
|||||||
rule_table[rule].action,
|
rule_table[rule].action,
|
||||||
yacc_flag ? ";" : "");
|
yacc_flag ? ";" : "");
|
||||||
|
|
||||||
/* We always output 5 '\n' per action. */
|
/* We always output 4 '\n' per action. */
|
||||||
*line += 5;
|
*line += 4;
|
||||||
|
/* Plus one if !no_lines_flag. */
|
||||||
|
if (!no_lines_flag)
|
||||||
|
++*line;
|
||||||
/* Get the number of lines written by the user. */
|
/* Get the number of lines written by the user. */
|
||||||
*line += get_lines_number (rule_table[rule].action);
|
*line += get_lines_number (rule_table[rule].action);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user