mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
* src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
* src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET): Ditto.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2002-03-04 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
|
||||||
|
* src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
|
||||||
|
Ditto.
|
||||||
|
|
||||||
|
|
||||||
2002-03-04 Akim Demaille <akim@epita.fr>
|
2002-03-04 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/lalr.c (F): Now a bitset*.
|
* src/lalr.c (F): Now a bitset*.
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
/* All the decorated states, indexed by the state number. */
|
/* All the decorated states, indexed by the state number. */
|
||||||
state_t **states = NULL;
|
state_t **states = NULL;
|
||||||
|
|
||||||
int tokensetsize;
|
|
||||||
short *LAruleno = NULL;
|
short *LAruleno = NULL;
|
||||||
bitset *LA = NULL;
|
bitset *LA = NULL;
|
||||||
size_t nLA;
|
size_t nLA;
|
||||||
@@ -581,8 +580,6 @@ lookaheads_print (FILE *out)
|
|||||||
void
|
void
|
||||||
lalr (void)
|
lalr (void)
|
||||||
{
|
{
|
||||||
tokensetsize = WORDSIZE (ntokens);
|
|
||||||
|
|
||||||
initialize_lookaheads ();
|
initialize_lookaheads ();
|
||||||
initialize_LA ();
|
initialize_LA ();
|
||||||
set_goto_map ();
|
set_goto_map ();
|
||||||
|
|||||||
@@ -72,6 +72,4 @@ extern bitset *LA;
|
|||||||
/* All the states, indexed by the state number. */
|
/* All the states, indexed by the state number. */
|
||||||
extern state_t **states;
|
extern state_t **states;
|
||||||
|
|
||||||
extern int tokensetsize;
|
|
||||||
|
|
||||||
#endif /* !LALR_H_ */
|
#endif /* !LALR_H_ */
|
||||||
|
|||||||
@@ -236,19 +236,11 @@ do { \
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (MSDOS) && !defined (__GO32__)
|
#if defined (MSDOS) && !defined (__GO32__)
|
||||||
# define BITS_PER_WORD 16
|
|
||||||
# define MAXTABLE 16383
|
# define MAXTABLE 16383
|
||||||
#else
|
#else
|
||||||
# define BITS_PER_WORD 32
|
|
||||||
# define MAXTABLE 32767
|
# define MAXTABLE 32767
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define WORDSIZE(n) (((n) + BITS_PER_WORD - 1) / BITS_PER_WORD)
|
|
||||||
#define SETBIT(x, i) ((x)[(i)/BITS_PER_WORD] |= (1<<((i) % BITS_PER_WORD)))
|
|
||||||
#define RESETBIT(x, i) ((x)[(i)/BITS_PER_WORD] &= ~(1<<((i) % BITS_PER_WORD)))
|
|
||||||
#define BITISSET(x, i) (((x)[(i)/BITS_PER_WORD] & (1<<((i) % BITS_PER_WORD))) != 0)
|
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------------.
|
/*-----------------------------------------.
|
||||||
| Extensions to use for the output files. |
|
| Extensions to use for the output files. |
|
||||||
`-----------------------------------------*/
|
`-----------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user