mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
diagnostics: style changes
* src/complain.h, src/complain.c: Comment changes. * src/scan-skel.l: Reduce scopes. * data/skeletons/bison.m4: Factor diagnostic functions.
This commit is contained in:
@@ -209,22 +209,23 @@ at_basename (int argc, char *argv[], char **out_namep, int *out_linenop)
|
||||
static void
|
||||
at_complain (int argc, char *argv[], char **out_namep, int *out_linenop)
|
||||
{
|
||||
static int indent;
|
||||
warnings w = flag (argv[1]);
|
||||
location loc;
|
||||
location *locp = NULL;
|
||||
if (argc < 4)
|
||||
fail_for_at_directive_too_few_args (argv[0]);
|
||||
|
||||
(void) out_namep;
|
||||
(void) out_linenop;
|
||||
|
||||
if (argc < 4)
|
||||
fail_for_at_directive_too_few_args (argv[0]);
|
||||
warnings w = flag (argv[1]);
|
||||
|
||||
location loc;
|
||||
location *locp = NULL;
|
||||
if (argv[2] && argv[2][0])
|
||||
{
|
||||
boundary_set_from_string (&loc.start, argv[2]);
|
||||
boundary_set_from_string (&loc.end, argv[3]);
|
||||
locp = &loc;
|
||||
}
|
||||
static int indent;
|
||||
if (w & silent)
|
||||
indent += SUB_INDENT;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user