glibc/intl
Andrea Monaco 41fddc064d 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>
(cherry picked from commit c6d7d6312c)
2021-12-23 13:48:04 +01:00
..
bindtextdom.c
dcgettext.c
dcigettext.c
dcngettext.c
Depend
dgettext.c
dngettext.c
eval-plural.h
explodename.c
finddomain.c
gettext.c
gettextP.h
gmo.h
hash-string.c
hash-string.h
l10nflist.c
libintl.h
loadinfo.h
loadmsgcat.c
locale.alias
localealias.c
Makefile
ngettext.c
plural-exp.c
plural-exp.h
plural.y intl/plural.y: Avoid conflicting declarations of yyerror and yylex 2021-12-23 13:48:04 +01:00
po2test.awk
textdomain.c
translit.po
tst-codeset.c
tst-gettext2.c
tst-gettext2.sh
tst-gettext3.c
tst-gettext4-de.po
tst-gettext4-fr.po
tst-gettext4.c
tst-gettext4.sh
tst-gettext5.c
tst-gettext6.c
tst-gettext6.sh
tst-gettext.c
tst-gettext.sh
tst-ngettext.c
tst-translit.c
tst-translit.sh
tstcodeset.po
tstlang1.po
tstlang2.po
Versions