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

Diff of /bison/src/reduce.c

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

revision 1.75 by akim, Fri Aug 2 08:05:01 2002 UTC revision 1.76 by eggert, Tue Oct 22 04:44:13 2002 UTC
# Line 71  useful_production (rule_number_t r, bits Line 71  useful_production (rule_number_t r, bits
71    
72    for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp)    for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp)
73      if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens))      if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens))
74        return FALSE;        return false;
75    return TRUE;    return true;
76  }  }
77    
78    
# Line 353  reduce_output (FILE *out) Line 353  reduce_output (FILE *out)
353      }      }
354    
355    {    {
356      bool b = FALSE;      bool b = false;
357      int i;      int i;
358      for (i = 0; i < ntokens; i++)      for (i = 0; i < ntokens; i++)
359        if (!bitset_test (V, i) && !bitset_test (V1, i))        if (!bitset_test (V, i) && !bitset_test (V1, i))
360          {          {
361            if (!b)            if (!b)
362              fprintf (out, "%s\n\n", _("Terminals which are not used"));              fprintf (out, "%s\n\n", _("Terminals which are not used"));
363            b = TRUE;            b = true;
364            fprintf (out, "   %s\n", symbols[i]->tag);            fprintf (out, "   %s\n", symbols[i]->tag);
365          }          }
366      if (b)      if (b)

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

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