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

Diff of /bison/src/LR0.c

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

revision 1.47 by akim, Thu Dec 27 18:11:06 2001 UTC revision 1.48 by akim, Thu Dec 27 18:13:31 2001 UTC
# Line 68  allocate_itemsets (void) Line 68  allocate_itemsets (void)
68    int count = 0;    int count = 0;
69    short *symbol_count = XCALLOC (short, nsyms + nuseless_nonterminals);    short *symbol_count = XCALLOC (short, nsyms + nuseless_nonterminals);
70    
71    for (i = 0; ritem[i]; ++i)    for (i = 0; i < nritems; ++i)
72      if (ritem[i] > 0)      if (ritem[i] >= 0)
73        {        {
74          count++;          count++;
75          symbol_count[ritem[i]]++;          symbol_count[ritem[i]]++;
# Line 152  new_itemsets (void) Line 152  new_itemsets (void)
152    for (i = 0; i < nitemset; ++i)    for (i = 0; i < nitemset; ++i)
153      {      {
154        int symbol = ritem[itemset[i]];        int symbol = ritem[itemset[i]];
155        if (symbol > 0)        if (symbol >= 0)
156          {          {
157            if (!kernel_size[symbol])            if (!kernel_size[symbol])
158              {              {

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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