]> sourceware.org Git - glibc.git/commit
intl/plural.y: Avoid conflicting declarations of yyerror and yylex
authorAndrea Monaco <andrea.monaco@autistici.org>
Sun, 12 Dec 2021 09:24:28 +0000 (10:24 +0100)
committerArjun Shankar <arjun@redhat.com>
Wed, 22 Dec 2021 13:46:39 +0000 (14:46 +0100)
commitc6d7d6312c21bbcfb236d48bb7c11cedb234389f
treed925a19f712eda759ea052d9a8ba6d98c9fd419d
parent163f625cf9becbb82dfec63a29e566324129c0cd
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>
intl/plural.y
This page took 0.037376 seconds and 5 git commands to generate.