mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
yacc.c: install backward compatibility for YYERRCODE
Some people have been using that symbol. Some even have #defined it themselves. https://lists.gnu.org/r/bison-patches/2020-04/msg00138.html Let's provide backward compatibility, having it point to YYUNDEF, so that an error message is generated. * data/skeletons/yacc.c (YYERRCODE): New, at the exact same location it was defined before.
This commit is contained in:
6
TODO
6
TODO
@@ -27,12 +27,10 @@ Beware that returning 0 is unclear: does it mean there are no possible
|
||||
lookahead, or that there are too many?
|
||||
|
||||
** YYerror
|
||||
yacc.c should `#define YYERRCODE YYerror` in the *.c for sake of the
|
||||
projects that used it. In particular
|
||||
|
||||
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=gettext-runtime/intl/plural.y;h=a712255af4f2f739c93336d4ff6556d932a426a5;hb=HEAD
|
||||
|
||||
should be updated.
|
||||
should be updated to not use YYERRCODE. Returning an undef token is good
|
||||
enough.
|
||||
|
||||
** Java
|
||||
*** Examples
|
||||
|
||||
Reference in New Issue
Block a user