]> git.saurik.com Git - bison.git/blobdiff - src/print.c
* src/output.c (output_skeleton): Don't disable M4sugar comments
[bison.git] / src / print.c
index 12466c905e4c4de54f55aba2a7fb9c9ae9e35c19..ae2ead9a8072b1da594f8b678804433b2879232d 100644 (file)
@@ -366,7 +366,7 @@ print_reductions (FILE *out, state_t *state)
                  if (redp->rules[j] != default_rule)
                    print_reduction (out, width,
                                     symbols[i]->tag,
-                                    redp->rules[j], TRUE);
+                                    redp->rules[j], true);
                  else
                    defaulted = 1;
                  count++;
@@ -376,18 +376,18 @@ print_reductions (FILE *out, state_t *state)
                  if (defaulted)
                    print_reduction (out, width,
                                     symbols[i]->tag,
-                                    default_rule, TRUE);
+                                    default_rule, true);
                  defaulted = 0;
                  print_reduction (out, width,
                                   symbols[i]->tag,
-                                  redp->rules[j], FALSE);
+                                  redp->rules[j], false);
                }
            }
       }
 
   if (default_rule)
     print_reduction (out, width,
-                    _("$default"), default_rule, TRUE);
+                    _("$default"), default_rule, true);
 }
 
 
@@ -400,11 +400,11 @@ static void
 print_actions (FILE *out, state_t *state)
 {
   /* Print shifts.  */
-  print_transitions (state, out, TRUE);
+  print_transitions (state, out, true);
   print_errs (out, state);
   print_reductions (out, state);
   /* Print gotos.  */
-  print_transitions (state, out, FALSE);
+  print_transitions (state, out, false);
 }
 
 
@@ -422,7 +422,10 @@ print_state (FILE *out, state_t *state)
   print_actions (out, state);
   if ((report_flag & report_solved_conflicts)
       && state->solved_conflicts)
-    fputs (state->solved_conflicts, out);
+    {
+      fputc ('\n', out);
+      fputs (state->solved_conflicts, out);
+    }
 }
 \f
 /*-----------------------------------------.
@@ -548,6 +551,8 @@ print_results (void)
   FILE *out = xfopen (spec_verbose_file, "w");
 
   reduce_output (out);
+  grammar_rules_partial_print (out,
+                              _("Rules never reduced"), rule_never_reduced_p);
   conflicts_output (out);
 
   print_grammar (out);