/[bison]/bison/src/conflicts.c
ViewVC logotype

Diff of /bison/src/conflicts.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.98 by eggert, Wed Dec 11 06:25:26 2002 UTC revision 1.99 by eggert, Fri Dec 13 04:45:45 2002 UTC
# Line 304  conflicts_solve (void) Line 304  conflicts_solve (void)
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);
# Line 545  conflicts_print (void) Line 545  conflicts_print (void)
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);

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26