/[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.66 by akim, Sat Jun 15 18:23:12 2002 UTC revision 1.67 by akim, Sat Jun 15 18:23:33 2002 UTC
# Line 371  reduce_output (FILE *out) Line 371  reduce_output (FILE *out)
371    }    }
372    
373    if (nuseless_productions > 0)    if (nuseless_productions > 0)
374      {      grammar_rules_partial_print (out, _("Useless rules"),
375        int i;                                   nrules + 1,
376        fprintf (out, "%s\n\n", _("Useless rules:"));                                   nuseless_productions + nrules + 1);
       for (i = nrules + 1; i < nuseless_productions + nrules + 1; i++)  
         {  
           item_number_t *r;  
           fprintf (out, "#%-4d  ", rules[i].user_number - 1);  
           fprintf (out, "%s:", symbol_tag_get (rules[i].lhs));  
           for (r = rules[i].rhs; *r >= 0; r++)  
             fprintf (out, " %s", symbol_tag_get (symbols[*r]));  
           fputs (";\n", out);  
         }  
       fputs ("\n\n", out);  
     }  
377  }  }
378    
379    

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

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