mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
intl/plural.y: Avoid conflicting declarations of yyerror and yylex
bison-3.8 includes these lines in the generated intl/plural.c: #if !defined __gettexterror && !defined YYERROR_IS_DECLARED void __gettexterror (struct parse_args *arg, const char *msg); #endif #if !defined __gettextlex && !defined YYLEX_IS_DECLARED int __gettextlex (YYSTYPE *yylvalp, struct parse_args *arg); #endif Those default prototypes provided by bison conflict with the declarations later on in plural.y. This patch solves the issue. Reviewed-by: Arjun Shankar <arjun@redhat.com>
This commit is contained in:
parent
163f625cf9
commit
c6d7d6312c
@ -40,6 +40,11 @@
|
||||
# define __gettextparse PLURAL_PARSE
|
||||
#endif
|
||||
|
||||
/* Later we provide those prototypes. Without these macros, bison may
|
||||
generate its own prototypes with possible conflicts. */
|
||||
#define YYLEX_IS_DECLARED
|
||||
#define YYERROR_IS_DECLARED
|
||||
|
||||
%}
|
||||
%parse-param {struct parse_args *arg}
|
||||
%lex-param {struct parse_args *arg}
|
||||
|
Loading…
Reference in New Issue
Block a user