mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03: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
|
#undef yyerror
|
||||||
#define yyerror(Msg) \
|
#define yyerror(Msg) \
|
||||||
gram_error (&yylloc, Msg)
|
gram_error (&yylloc, Msg)
|
||||||
|
static void gram_error (location_t const *, char const *);
|
||||||
|
|
||||||
#define YYPRINT(File, Type, Value) \
|
#define YYPRINT(File, Type, Value) \
|
||||||
print_token_value (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);
|
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)
|
gram_error (location_t const *loc, char const *msg)
|
||||||
{
|
{
|
||||||
complain_at (*loc, "%s", msg);
|
complain_at (*loc, "%s", msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user