X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/11b192127cac086338bfaa43f3bab3acda8e3a20..d9fa1b7c4f2379ec16e9bd6b51bc49157066e4db:/src/conflicts.c?ds=inline diff --git a/src/conflicts.c b/src/conflicts.c index 99f096a2..885bd78f 100644 --- a/src/conflicts.c +++ b/src/conflicts.c @@ -1,6 +1,6 @@ /* Find and resolve or report lookahead conflicts for bison, - Copyright (C) 1984, 1989, 1992, 2000-2012 Free Software Foundation, + Copyright (C) 1984, 1989, 1992, 2000-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -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),