/[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.27 by akim, Mon Nov 12 09:33:38 2001 UTC revision 1.28 by akim, Wed Nov 14 14:43:58 2001 UTC
# Line 474  conflicts_print (void) Line 474  conflicts_print (void)
474    
475    /* Report the total number of conflicts on STDERR.  */    /* Report the total number of conflicts on STDERR.  */
476    if (src_total || rrc_total)    if (src_total || rrc_total)
477      if (yacc_flag)      {
478        {        if (yacc_flag)
479          /* If invoked with `--yacc', use the output format specified by          {
480             POSIX.  */            /* If invoked with `--yacc', use the output format specified by
481          fprintf (stderr, _("conflicts: "));               POSIX.  */
482          if (src_total > 0)            fprintf (stderr, _("conflicts: "));
483            fprintf (stderr, _(" %d shift/reduce"), src_total);            if (src_total > 0)
484          if (src_total > 0 && rrc_total > 0)              fprintf (stderr, _(" %d shift/reduce"), src_total);
485            fprintf (stderr, ",");            if (src_total > 0 && rrc_total > 0)
486          if (rrc_total > 0)              fprintf (stderr, ",");
487            fprintf (stderr, _(" %d reduce/reduce"), rrc_total);            if (rrc_total > 0)
488          putc ('\n', stderr);              fprintf (stderr, _(" %d reduce/reduce"), rrc_total);
489        }            putc ('\n', stderr);
490      else          }
491        {        else
492          fprintf (stderr, _("%s contains "), infile);          {
493          fputs (conflict_report (src_total, rrc_total), stderr);            fprintf (stderr, _("%s contains "), infile);
494        }            fputs (conflict_report (src_total, rrc_total), stderr);
495            }
496        }
497    
498    if (expected_conflicts != -1    if (expected_conflicts != -1
499        && src_total != expected_conflicts)        && src_total != expected_conflicts)

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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