From: Akim Demaille Date: Sun, 30 Jun 2002 17:32:02 +0000 (+0000) Subject: * src/print_graph.c: Use report_flag. X-Git-Tag: BISON-1_49b~106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05811fd7558459179d1474ee86b72a60d67c3615;p=platform%2Fupstream%2Fbison.git * src/print_graph.c: Use report_flag. --- diff --git a/ChangeLog b/ChangeLog index d45579e..78e3477 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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 to... * src/relation.h, src/relation.c (traverse, relation_digraph) diff --git a/src/print_graph.c b/src/print_graph.c index 05cb2e6..24ddab1 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;