[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18-fyi-rm-BITSET-etc.patch
From: |
Akim Demaille |
Subject: |
18-fyi-rm-BITSET-etc.patch |
Date: |
Mon, 04 Mar 2002 13:06:26 +0100 |
Index: ChangeLog
from Akim Demaille <address@hidden>
* src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
* src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
Ditto.
Index: src/lalr.c
--- src/lalr.c Fri, 01 Mar 2002 15:39:15 +0100 akim
+++ src/lalr.c Fri, 01 Mar 2002 15:41:38 +0100 akim
@@ -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 @@
void
lalr (void)
{
- tokensetsize = WORDSIZE (ntokens);
-
initialize_lookaheads ();
initialize_LA ();
set_goto_map ();
Index: src/lalr.h
--- src/lalr.h Fri, 01 Mar 2002 15:24:29 +0100 akim
+++ src/lalr.h Fri, 01 Mar 2002 15:41:44 +0100 akim
@@ -72,6 +72,4 @@
/* All the states, indexed by the state number. */
extern state_t **states;
-extern int tokensetsize;
-
#endif /* !LALR_H_ */
Index: src/system.h
--- src/system.h Mon, 04 Feb 2002 23:18:59 +0100 akim
+++ src/system.h Fri, 01 Mar 2002 15:39:41 +0100 akim
@@ -236,18 +236,10 @@
#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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 18-fyi-rm-BITSET-etc.patch,
Akim Demaille <=