X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6d58c632025cb6928a90e4176577982bfb9c3981..758f7cfc1498ec58ab667a48365155851d66a70a:/src/print_graph.c?ds=sidebyside
diff --git a/src/print_graph.c b/src/print_graph.c
index 7b2afdb5..31e0e382 100644
--- a/src/print_graph.c
+++ b/src/print_graph.c
@@ -18,7 +18,6 @@
along with this program. If not, see . */
#include
-#include
#include "system.h"
#include "LR0.h"
@@ -78,7 +77,7 @@ print_core (struct obstack *oout, state *s)
}
obstack_printf (oout, _("State %d"), s->number);
- obstack_sgrow (oout, "\\n");
+ obstack_sgrow (oout, "\\n\\l");
for (i = 0; i < snritems; i++)
{
item_number *sp;
@@ -144,9 +143,6 @@ print_actions (state const *s, FILE *fgraph)
transitions const *trans = s->transitions;
int i;
- /* Display reductions. */
- output_red (s, s->reductions, fgraph);
-
if (!trans->num && !s->reductions)
return;
@@ -169,6 +165,8 @@ print_actions (state const *s, FILE *fgraph)
TRANSITION_IS_ERROR (trans, i) ? NULL : symbols[sym]->tag,
style, fgraph);
}
+ /* Display reductions. */
+ output_red (s, s->reductions, fgraph);
}