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:
Akim Demaille
2019-12-02 18:56:46 +01:00
parent 8b53f4e022
commit 9e9e49224f
4 changed files with 14 additions and 10 deletions

View File

@@ -225,6 +225,7 @@ warnings_argmatch (char *args)
}
}
/* Color style for this type of message. */
static const char*
severity_style (severity s)
{
@@ -242,6 +243,7 @@ severity_style (severity s)
abort ();
}
/* Prefix for this type of message. */
static const char*
severity_prefix (severity s)
{