X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d57650a5ff3d9d1202f6d04de1a10e32cee85499..e68e0410aba6a9b976a1e496aa80ffb3d2095fb9:/src/lalr.h diff --git a/src/lalr.h b/src/lalr.h index 82719d40..696bc98d 100644 --- a/src/lalr.h +++ b/src/lalr.h @@ -24,7 +24,7 @@ #include "bitset.h" #include "bitsetv.h" -/* Import the definition of CORE, SHIFTS and REDUCTIONS. */ +/* Import the definition of CORE, TRANSITIONS and REDUCTIONS. */ # include "state.h" /* Import the definition of RULE_T. */ @@ -49,7 +49,10 @@ void lalr PARAMS ((void)); together and GOTO_MAP[I - NTOKENS] is the index in FROM_STATE and TO_STATE of the first of them. */ -extern short *goto_map; +typedef short goto_number_t; +# define GOTO_NUMBER_MAX ((goto_number_t) INT_MAX) + +extern goto_number_t *goto_map; extern state_number_t *from_state; extern state_number_t *to_state; @@ -71,7 +74,4 @@ extern rule_t **LArule; extern bitsetv LA; -/* All the states, indexed by the state number. */ -extern state_t **states; - #endif /* !LALR_H_ */