From: Akim Demaille Date: Mon, 4 Mar 2002 12:05:15 +0000 (+0000) Subject: * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused. X-Git-Tag: BISON-1_49a~127 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/0e721e7569828defbeb88572e7a1e331ee665006?ds=sidebyside * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused. * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET): Ditto. --- diff --git a/ChangeLog b/ChangeLog index 6170b5ce..90c60875 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-03-04 Akim Demaille + + * 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 * src/lalr.c (F): Now a bitset*. diff --git a/src/lalr.c b/src/lalr.c index 87e91cd5..5b2761c3 100644 --- a/src/lalr.c +++ b/src/lalr.c @@ -39,7 +39,6 @@ /* All the decorated states, indexed by the state number. */ state_t **states = NULL; -int tokensetsize; short *LAruleno = NULL; bitset *LA = NULL; size_t nLA; @@ -581,8 +580,6 @@ lookaheads_print (FILE *out) void lalr (void) { - tokensetsize = WORDSIZE (ntokens); - initialize_lookaheads (); initialize_LA (); set_goto_map (); diff --git a/src/lalr.h b/src/lalr.h index 74dbbb12..4b57ae30 100644 --- a/src/lalr.h +++ b/src/lalr.h @@ -72,6 +72,4 @@ extern bitset *LA; /* All the states, indexed by the state number. */ extern state_t **states; -extern int tokensetsize; - #endif /* !LALR_H_ */ diff --git a/src/system.h b/src/system.h index 4f95e205..f770b8f4 100644 --- a/src/system.h +++ b/src/system.h @@ -236,19 +236,11 @@ do { \ #endif #if defined (MSDOS) && !defined (__GO32__) -# define BITS_PER_WORD 16 # define MAXTABLE 16383 #else -# define BITS_PER_WORD 32 # define MAXTABLE 32767 #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. | `-----------------------------------------*/