* src/print_graph.c: Use report_flag.

This commit is contained in:
Akim Demaille
2002-06-30 17:32:02 +00:00
parent 0e4d575330
commit 05811fd755
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2002-06-30 Akim Demaille <akim@epita.fr>
* src/print_graph.c: Use report_flag.
2002-06-30 Akim Demaille <akim@epita.fr>
* src/lalr.c (traverse, digraph, matrix_print, transpose): Move

View File

@@ -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;