* src/output.c (actions_output): Fix. When we use %no-lines,

there is one less line per action.
This commit is contained in:
Marc Autret
2001-12-16 01:45:19 +00:00
parent f0440388e9
commit fbc8ecb7ef
2 changed files with 10 additions and 2 deletions

View File

@@ -556,8 +556,11 @@ actions_output (FILE *out, size_t *line)
rule_table[rule].action,
yacc_flag ? ";" : "");
/* We always output 5 '\n' per action. */
*line += 5;
/* We always output 4 '\n' per action. */
*line += 4;
/* Plus one if !no_lines_flag. */
if (!no_lines_flag)
++*line;
/* Get the number of lines written by the user. */
*line += get_lines_number (rule_table[rule].action);
}