projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed91d42
)
graphs: fix spacing refactoring
author
Theophile Ranquet
<ranquet@lrde.epita.fr>
Fri, 26 Oct 2012 18:07:08 +0000
(18:07 +0000)
committer
Theophile Ranquet
<ranquet@lrde.epita.fr>
Fri, 26 Oct 2012 18:28:37 +0000
(18:28 +0000)
* src/print_graph.c (print_lhs, print_core): Here.
src/print_graph.c
patch
|
blob
|
history
diff --git
a/src/print_graph.c
b/src/print_graph.c
index
5aa3cc6
..
7b2afdb
100644
(file)
--- 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));