mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(gram_error): Now static. Add static decl.
(print_token_value): Omit parameter names from forward decl, for consistency.
This commit is contained in:
@@ -62,10 +62,11 @@ do { \
|
||||
#undef yyerror
|
||||
#define yyerror(Msg) \
|
||||
gram_error (&yylloc, Msg)
|
||||
static void gram_error (location_t const *, char const *);
|
||||
|
||||
#define YYPRINT(File, Type, Value) \
|
||||
print_token_value (File, Type, &Value)
|
||||
static void print_token_value (FILE *file, int type, YYSTYPE const *value);
|
||||
static void print_token_value (FILE *, int, YYSTYPE const *);
|
||||
|
||||
static void add_param (char const *, char const *, location_t);
|
||||
|
||||
@@ -504,7 +505,7 @@ print_token_value (FILE *file, int type, YYSTYPE const *value)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
gram_error (location_t const *loc, char const *msg)
|
||||
{
|
||||
complain_at (*loc, "%s", msg);
|
||||
|
||||
Reference in New Issue
Block a user