summaryrefslogtreecommitdiffstats
path: root/src/translators/btparse/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/translators/btparse/err.h')
-rw-r--r--src/translators/btparse/err.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/translators/btparse/err.h b/src/translators/btparse/err.h
index d16615d..a9ba6da 100644
--- a/src/translators/btparse/err.h
+++ b/src/translators/btparse/err.h
@@ -61,13 +61,13 @@
* hidden and does not need to be saved during a "save state" operation
*/
/* maximum of 32 bits/unsigned int and must be 8 bits/byte */
-static SetWordType bitmask[] = {
+static SetWordType bittqmask[] = {
0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080
};
void
-zzresynch(SetWordType *wd,SetWordType mask)
+zzresynch(SetWordType *wd,SetWordType tqmask)
{
static int consumed = 1;
@@ -77,10 +77,10 @@ zzresynch(SetWordType *wd,SetWordType mask)
if ( !consumed ) {zzCONSUME; return;}
/* if current token is in resynch set, we've got what we wanted */
- if ( wd[LA(1)]&mask || LA(1) == zzEOF_TOKEN ) {consumed=0; return;}
+ if ( wd[LA(1)]&tqmask || LA(1) == zzEOF_TOKEN ) {consumed=0; return;}
/* scan until we find something in the resynch set */
- while ( !(wd[LA(1)]&mask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;}
+ while ( !(wd[LA(1)]&tqmask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;}
consumed=1;
}
@@ -237,11 +237,11 @@ zzedecode(SetWordType *a)
if ( zzset_deg(a)>1 ) fprintf(stderr, " {");
do {
register SetWordType t = *p;
- register SetWordType *b = &(bitmask[0]);
+ register SetWordType *b = &(bittqmask[0]);
do {
if ( t & *b ) fprintf(stderr, " %s", zztokens[e]);
e++;
- } while (++b < &(bitmask[sizeof(SetWordType)*8]));
+ } while (++b < &(bittqmask[sizeof(SetWordType)*8]));
} while (++p < endp);
if ( zzset_deg(a)>1 ) fprintf(stderr, " }");
}
@@ -271,7 +271,7 @@ zzsyn(char *text, int tok, char *egroup, SetWordType *eset, int etok, int k, cha
int
zzset_el(unsigned b, SetWordType *p)
{
- return( p[BSETDIVWORD(b)] & bitmask[BSETMODWORD(b)] );
+ return( p[BSETDIVWORD(b)] & bittqmask[BSETMODWORD(b)] );
}
int
@@ -289,10 +289,10 @@ zzset_deg(SetWordType *a)
while ( p < endp )
{
register SetWordType t = *p;
- register SetWordType *b = &(bitmask[0]);
+ register SetWordType *b = &(bittqmask[0]);
do {
if (t & *b) ++degree;
- } while (++b < &(bitmask[sizeof(SetWordType)*8]));
+ } while (++b < &(bittqmask[sizeof(SetWordType)*8]));
p++;
}