X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d87ea54cf6cc98d52356c138bd142d1b450bbc9a..bcf54c336eb1ed48e229448790ec1300fbef0a82:/src/conflicts.c diff --git a/src/conflicts.c b/src/conflicts.c index 99f096a2..2ea6de1b 100644 --- a/src/conflicts.c +++ b/src/conflicts.c @@ -561,7 +561,7 @@ conflicts_print (void) { if (! glr_parser && expected_rr_conflicts != -1) { - complain (Wother, _("%%expect-rr applies only to GLR parsers")); + complain (NULL, Wother, _("%%expect-rr applies only to GLR parsers")); expected_rr_conflicts = -1; } @@ -569,7 +569,7 @@ conflicts_print (void) different strings to translate. */ { int total = count_sr_conflicts (); - // If %expect is not used, but %expect-rr is, then expect 0 sr. + /* If %expect is not used, but %expect-rr is, then expect 0 sr. */ int expected = (expected_sr_conflicts == -1 && expected_rr_conflicts != -1) ? 0 @@ -577,12 +577,12 @@ conflicts_print (void) if (expected != -1) { if (expected != total) - complain (complaint, + complain (NULL, complaint, _("shift/reduce conflicts: %d found, %d expected"), total, expected); } else if (total) - complain (Wconflicts_sr, + complain (NULL, Wconflicts_sr, ngettext ("%d shift/reduce conflict", "%d shift/reduce conflicts", total), @@ -591,7 +591,7 @@ conflicts_print (void) { int total = count_rr_conflicts (true); - // If %expect-rr is not used, but %expect is, then expect 0 rr. + /* If %expect-rr is not used, but %expect is, then expect 0 rr. */ int expected = (expected_rr_conflicts == -1 && expected_sr_conflicts != -1) ? 0 @@ -599,12 +599,12 @@ conflicts_print (void) if (expected != -1) { if (expected != total) - complain (complaint, + complain (NULL, complaint, _("reduce/reduce conflicts: %d found, %d expected"), total, expected); } else if (total) - complain (Wconflicts_rr, + complain (NULL, Wconflicts_rr, ngettext ("%d reduce/reduce conflict", "%d reduce/reduce conflicts", total),