From: Theophile Ranquet Date: Fri, 26 Oct 2012 18:07:08 +0000 (+0000) Subject: graphs: fix spacing refactoring X-Git-Tag: v2.7.90~281 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/32288c8cbd309b29dff45e81d78374a5eb9c006e graphs: fix spacing refactoring * src/print_graph.c (print_lhs, print_core): Here. --- diff --git a/src/print_graph.c b/src/print_graph.c index 5aa3cc62..7b2afdb5 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -58,6 +58,7 @@ print_lhs (struct obstack *oout, rule *previous_rule, rule *r) obstack_sgrow (oout, escape (r->lhs->tag)); obstack_1grow (oout, ':'); } + obstack_1grow (oout, ' '); } static void @@ -98,7 +99,7 @@ print_core (struct obstack *oout, state *s) for (sp = rules[r].rhs; sp < sp1; sp++) obstack_printf (oout, "%s ", escape (symbols[*sp]->tag)); - obstack_sgrow (oout, " ."); + obstack_1grow (oout, '.'); for (/* Nothing */; *sp >= 0; ++sp) obstack_printf (oout, " %s", escape (symbols[*sp]->tag));