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:
60e3ecc
)
(save_column, default_goto):
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 8 Dec 2004 05:54:51 +0000
(
05:54
+0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 8 Dec 2004 05:54:51 +0000
(
05:54
+0000)
Use goto_number, not int, for goto numbers.
src/tables.c
patch
|
blob
|
history
diff --git
a/src/tables.c
b/src/tables.c
index
d39e2d8
..
a1d1522
100644
(file)
--- a/
src/tables.c
+++ b/
src/tables.c
@@
-471,7
+471,7
@@
token_actions (void)
static void
save_column (symbol_number sym, state_number default_state)
{
-
int
i;
+
goto_number
i;
base_number *sp;
base_number *sp1;
base_number *sp2;
@@
-515,7
+515,7
@@
static state_number
default_goto (symbol_number sym, short int state_count[])
{
state_number s;
-
int
i;
+
goto_number
i;
goto_number m = goto_map[sym - ntokens];
goto_number n = goto_map[sym - ntokens + 1];
state_number default_state = -1;