mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
warnings: factoring: complaints
* src/complain.c (error_message): Accept warning categories (an integer) as argument. Location is a 'const location *' instead of 'location *'. (ERROR_MESSAGE): Delete it. * src/complain.c, src/complain.h (complains): New function. (complain, complain_at, complain_at_indent): Generic functions for complaints. Call 'complains'. (warn_at, warn_at_indent, warn, yacc_at, midrule_value_at) (fatal_at, fatal): Delete them. Adjust dependencies. * src/complain.h (enum warnings): New fields 'complaint' and 'fatal'. * bootstrap.conf (XGETTEXT_OPTIONS): Adjust.
This commit is contained in:
committed by
Akim Demaille
parent
d0f11c1b62
commit
6fb8b25619
@@ -401,7 +401,8 @@ skeleton_arg (char const *arg, int prio, location loc)
|
||||
skeleton = arg;
|
||||
}
|
||||
else if (prio == skeleton_prio)
|
||||
complain_at (loc, _("multiple skeleton declarations are invalid"));
|
||||
complain_at (loc, complaint,
|
||||
_("multiple skeleton declarations are invalid"));
|
||||
}
|
||||
|
||||
void
|
||||
@@ -426,7 +427,7 @@ language_argmatch (char const *arg, int prio, location loc)
|
||||
else
|
||||
return;
|
||||
|
||||
complain_at (loc, msg, quotearg_colon (arg));
|
||||
complain_at (loc, complaint, msg, quotearg_colon (arg));
|
||||
}
|
||||
|
||||
/*----------------------.
|
||||
|
||||
Reference in New Issue
Block a user