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) |