graphs: stylistic changes.

* src/graphviz.c (output_red): Comment and formatting changes.
This commit is contained in:
Akim Demaille
2012-10-11 16:58:03 +02:00
parent d79683fa95
commit 43eb7674aa

View File

@@ -144,12 +144,12 @@ output_red (state const *s, reductions const *reds, FILE *fout)
} }
obstack_sgrow (&oout, "\" style=solid]\n"); obstack_sgrow (&oout, "\" style=solid]\n");
/* Then, print the reduction's representation. This most be done later /* Then, print the reduction's representation. Done later since
because the we need the previously determined boolean to know if this we need to know whether this reduction is disabled. */
reduction is disabled or not. */ obstack_printf (&oout,
obstack_printf (&oout, " \"%dR%d\" " " \"%dR%d\" "
"[style=filled shape=diamond fillcolor=%s " "[style=filled shape=diamond fillcolor=%s "
"label=\"R%d\"]\n", "label=\"R%d\"]\n",
source, ruleno, source, ruleno,
disabled ? "firebrick1" : "yellowgreen", disabled ? "firebrick1" : "yellowgreen",
ruleno); ruleno);