projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Point to an official beta.
[bison.git]
/
src
/
print_graph.c
diff --git
a/src/print_graph.c
b/src/print_graph.c
index 252a2f60ade59fe279b62b8e7eacd464b49d3a5d..15861f3525d0ade79bb43c1affcb25522232b171 100644
(file)
--- a/
src/print_graph.c
+++ b/
src/print_graph.c
@@
-50,22
+50,22
@@
static void
print_core (state_t *state, struct obstack *node_obstack)
{
int i;
print_core (state_t *state, struct obstack *node_obstack)
{
int i;
-
shor
t *sitems = state->items;
- int snitems = state->nitems;
+
item_number_
t *sitems = state->items;
+ int sn
r
items = state->nitems;
/* Output all the items of a state, not only its kernel. */
if (trace_flag)
{
/* Output all the items of a state, not only its kernel. */
if (trace_flag)
{
- closure (sitems, snitems);
+ closure (sitems, sn
r
items);
sitems = itemset;
sitems = itemset;
- sn
items = n
itemset;
+ sn
ritems = nr
itemset;
}
obstack_fgrow1 (node_obstack, "state %2d\n", state->number);
}
obstack_fgrow1 (node_obstack, "state %2d\n", state->number);
- for (i = 0; i < snitems; i++)
+ for (i = 0; i < sn
r
items; i++)
{
{
-
shor
t *sp;
-
shor
t *sp1;
+
item_number_
t *sp;
+
item_number_
t *sp1;
int rule;
sp1 = sp = ritem + sitems[i];
int rule;
sp1 = sp = ritem + sitems[i];
@@
-78,7
+78,7
@@
print_core (state_t *state, struct obstack *node_obstack)
if (i)
obstack_1grow (node_obstack, '\n');
obstack_fgrow1 (node_obstack, " %s -> ",
if (i)
obstack_1grow (node_obstack, '\n');
obstack_fgrow1 (node_obstack, " %s -> ",
- escape (
symbols[rules[rule].lhs]
->tag));
+ escape (
rules[rule].lhs
->tag));
for (sp = rules[rule].rhs; sp < sp1; sp++)
obstack_fgrow1 (node_obstack, "%s ", escape (symbols[*sp]->tag));
for (sp = rules[rule].rhs; sp < sp1; sp++)
obstack_fgrow1 (node_obstack, "%s ", escape (symbols[*sp]->tag));
@@
-114,7
+114,7
@@
print_actions (state_t *state, const char *node_name)
if (!SHIFT_IS_DISABLED (shiftp, i))
{
int state1 = shiftp->shifts[i];
if (!SHIFT_IS_DISABLED (shiftp, i))
{
int state1 = shiftp->shifts[i];
-
in
t symbol = states[state1]->accessing_symbol;
+
token_number_
t symbol = states[state1]->accessing_symbol;
new_edge (&edge);
new_edge (&edge);