Skip Menu |
 

Subject: x-deltat.y is not compatible with bison 3
bison 3 removes support for YYLEX_PARAM and YYPARSE_PARAM, which we use
in x-deltat.y. We are supposed to use %lex-param and %parse-param
instead.

bison also warns about %pure_parser, saying we should use %pure-parser
instead. %pure-parser is itself documented as deprecated; the modern
idiom actually seems to be "%define api.pure".
From: ghudson@mit.edu
Subject: git commit

Make x-deltat.y work with bison 3

Bison 3 removed support for YYPARSE_PARAM and YYLEX_PARAM, breaking
x-deltat.y. Use %parse-param and %lex-param instead. (In Bison 3 we
could use just %param, but that doesn't work in 2.x.) The parameter
added by %parse-param is also passed to yyerror, so adjust the macro
we use to suppress yyerror accordingly.

Also use "%define api.pure" instead of "%pure_parser", which was
deprecated in bison 2.3b. (The correct spelling was actually
"%pure-parser", and bison 3 generates a warning about the underscore
spelling.)

Regenerate deltat.c using the new x-deltat.y and bison 3.0.2.

https://github.com/krb5/krb5/commit/ca8207d5ab5482e6d09a52bdb8b139cb5a28a95d
Author: Greg Hudson <ghudson@mit.edu>
Commit: ca8207d5ab5482e6d09a52bdb8b139cb5a28a95d
Branch: master
src/lib/krb5/krb/deltat.c | 1369 +++++++++++++++++++-----------------------
src/lib/krb5/krb/x-deltat.y | 22 +-
2 files changed, 629 insertions(+), 762 deletions(-)