- for (k = 0; k < tokensetsize; ++k)
- lookaheadset[k] = LA (state->lookaheadsp + i)[k] & ~shiftset[k];
+ for (k = 0; k < ntokens; ++k)
+ if (BITISSET (LA (state->lookaheadsp + i), k)
+ && ! bitset_test (shiftset, k))
+ bitset_set (lookaheadset, k);
+ else
+ bitset_reset (lookaheadset, k);