* src/files.c (output_files): Free the output_obstack.

* src/main.c (main): Call print and print_graph conditionally.
* src/print.c (print): Work unconditionally.
* src/print_graph.c (print_graph): Work unconditionally.
* src/conflicts.c (log_resolution): Output only if verbose_flag.
This commit is contained in:
Akim Demaille
2001-12-17 17:31:10 +00:00
parent 367c7a47d4
commit 64d15509b6
6 changed files with 45 additions and 38 deletions

View File

@@ -40,10 +40,11 @@ static unsigned *lookaheadset = NULL;
static inline void
log_resolution (int state, int LAno, int token, char *resolution)
{
obstack_fgrow4 (&output_obstack,
_("\
if (verbose_flag)
obstack_fgrow4 (&output_obstack,
_("\
Conflict in state %d between rule %d and token %s resolved as %s.\n"),
state, LAruleno[LAno], tags[token], resolution);
state, LAruleno[LAno], tags[token], resolution);
}