From 05811fd7558459179d1474ee86b72a60d67c3615 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 30 Jun 2002 17:32:02 +0000 Subject: [PATCH] * src/print_graph.c: Use report_flag. --- ChangeLog | 5 +++++ src/print_graph.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d45579e3..78e3477c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-30 Akim Demaille + + * src/print_graph.c: Use report_flag. + + 2002-06-30 Akim Demaille * src/lalr.c (traverse, digraph, matrix_print, transpose): Move diff --git a/src/print_graph.c b/src/print_graph.c index 05cb2e6a..24ddab16 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -51,7 +51,7 @@ print_core (struct obstack *oout, state_t *state) int snritems = state->nitems; /* Output all the items of a state, not only its kernel. */ - if (trace_flag) + if (report_flag & report_itemsets) { closure (sitems, snritems); sitems = itemset; @@ -86,7 +86,8 @@ print_core (struct obstack *oout, state_t *state) obstack_fgrow1 (oout, " %s", symbol_tag_get (symbols[*sp])); /* Experimental feature: display the lookaheads. */ - if (trace_flag && state->nlookaheads) + if ((report_flag & report_lookaheads) + && state->nlookaheads) { int j, k; int nlookaheads = 0; -- 2.45.2