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

Diff of /bison/src/nullable.c

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

revision 1.21 by akim, Sat Dec 15 16:21:44 2001 UTC revision 1.22 by akim, Sat Dec 29 14:15:12 2001 UTC
# Line 57  set_nullable (void) Line 57  set_nullable (void)
57       Hence we must allocate room for useless nonterminals too.  */       Hence we must allocate room for useless nonterminals too.  */
58    shorts **rsets = XCALLOC (shorts *, nvars) - ntokens;    shorts **rsets = XCALLOC (shorts *, nvars) - ntokens;
59    /* This is said to be more elements than we actually use.    /* This is said to be more elements than we actually use.
60       Supposedly nitems - nrules is enough.  But why take the risk?  */       Supposedly NRITEMS - NRULES is enough.  But why take the risk?  */
61    shorts *relts = XCALLOC (shorts, nitems + nvars + 1);    shorts *relts = XCALLOC (shorts, nritems + nvars + 1);
62    
63    if (trace_flag)    if (trace_flag)
64      fprintf (stderr, "Entering set_nullable\n");      fprintf (stderr, "Entering set_nullable\n");

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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