mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
warnings: fusion of complain and complain_at
These functions are very similar, and keeping them seperate makes future improvements difficult, so merge them. This impacts 89 calls. * src/bootstrap.conf: Adjust. * src/complain.c (complain, complain_at): Merge into... (complain): this. (complain_args): Adjust. * src/complain.h, src/conflicts.c, src/files.c, src/getargs.c, * src/gram.c, src/location.c, src/muscle-tab.c, src/parse-gram.y, * src/reader.c, src/reduce.c, src/scan-code.l, src/scan-gram.l, * src/scan-skel.l, src/symlist.c, src/symtab.c: Adjust. Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
committed by
Akim Demaille
parent
a49f4904c3
commit
bb8e56ff67
@@ -786,8 +786,7 @@ add_param (param_type type, char *decl, location loc)
|
||||
}
|
||||
|
||||
if (! name_start)
|
||||
complain_at (loc, complaint,
|
||||
_("missing identifier in parameter declaration"));
|
||||
complain (&loc, complaint, _("missing identifier in parameter declaration"));
|
||||
else
|
||||
{
|
||||
char *name = xmemdup0 (name_start, strspn (name_start, alphanum));
|
||||
@@ -807,8 +806,8 @@ version_check (location const *loc, char const *version)
|
||||
{
|
||||
if (strverscmp (version, PACKAGE_VERSION) > 0)
|
||||
{
|
||||
complain_at (*loc, complaint, "require bison %s, but have %s",
|
||||
version, PACKAGE_VERSION);
|
||||
complain (loc, complaint, "require bison %s, but have %s",
|
||||
version, PACKAGE_VERSION);
|
||||
exit (EX_MISMATCH);
|
||||
}
|
||||
}
|
||||
@@ -816,7 +815,7 @@ version_check (location const *loc, char const *version)
|
||||
static void
|
||||
gram_error (location const *loc, char const *msg)
|
||||
{
|
||||
complain_at (*loc, complaint, "%s", msg);
|
||||
complain (loc, complaint, "%s", msg);
|
||||
}
|
||||
|
||||
char const *
|
||||
|
||||
Reference in New Issue
Block a user