]> git.saurik.com Git - bison.git/commitdiff
* src/print_graph.c: Use report_flag.
authorAkim Demaille <akim@epita.fr>
Sun, 30 Jun 2002 17:32:02 +0000 (17:32 +0000)
committerAkim Demaille <akim@epita.fr>
Sun, 30 Jun 2002 17:32:02 +0000 (17:32 +0000)
ChangeLog
src/print_graph.c

index d45579e3f0827f562b5d1e1bd2684b77683c636d..78e3477cf4dcfc22d446798c44ea2507f13df603 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 05cb2e6a7996738868d745860e2d83b91b7e0f99..24ddab168b589aac2f2a72c1484b790cf7c80ec2 100644 (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;