304 |
{ |
{ |
305 |
state_number i; |
state_number i; |
306 |
/* List of lookaheads on which we explicitly raise a syntax error. */ |
/* List of lookaheads on which we explicitly raise a syntax error. */ |
307 |
symbol **errors = XMALLOC (symbol *, ntokens + 1); |
symbol **errors = MALLOC (errors, ntokens + 1); |
308 |
|
|
309 |
conflicts = XCALLOC (char, nstates); |
CALLOC (conflicts, nstates); |
310 |
shiftset = bitset_create (ntokens, BITSET_FIXED); |
shiftset = bitset_create (ntokens, BITSET_FIXED); |
311 |
lookaheadset = bitset_create (ntokens, BITSET_FIXED); |
lookaheadset = bitset_create (ntokens, BITSET_FIXED); |
312 |
obstack_init (&solved_conflicts_obstack); |
obstack_init (&solved_conflicts_obstack); |
545 |
void |
void |
546 |
conflicts_free (void) |
conflicts_free (void) |
547 |
{ |
{ |
548 |
XFREE (conflicts); |
free (conflicts); |
549 |
bitset_free (shiftset); |
bitset_free (shiftset); |
550 |
bitset_free (lookaheadset); |
bitset_free (lookaheadset); |
551 |
obstack_free (&solved_conflicts_obstack, NULL); |
obstack_free (&solved_conflicts_obstack, NULL); |