diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-23 09:28:59 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-23 09:28:59 (GMT) |
commit | 1ac45af71170b6dfea9be3a0defdf702315ca5a4 (patch) | |
tree | 63e7aab7a48caf0b6d546175b4ffe0d270a6c4f1 /generic | |
parent | 1ccd554233f429484eb8abcae299e27095d5db61 (diff) | |
download | tcl-1ac45af71170b6dfea9be3a0defdf702315ca5a4.zip tcl-1ac45af71170b6dfea9be3a0defdf702315ca5a4.tar.gz tcl-1ac45af71170b6dfea9be3a0defdf702315ca5a4.tar.bz2 |
avoid %pure-parser deprecation warning from Bison 3.4
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclDate.c | 6 | ||||
-rw-r--r-- | generic/tclGetDate.y | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclDate.c b/generic/tclDate.c index 544517e..052e54c 100644 --- a/generic/tclDate.c +++ b/generic/tclDate.c @@ -102,9 +102,6 @@ typedef enum _MERIDIAN { MERam, MERpm, MER24 } MERIDIAN; - - - /* * yyparse will accept a 'struct DateInfo' as its parameter; that's where the * parsed fields will be returned. @@ -210,6 +207,9 @@ typedef enum _DSTMODE { DSTon, DSToff, DSTmaybe } DSTMODE; + + + # ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus # define YY_NULLPTR nullptr diff --git a/generic/tclGetDate.y b/generic/tclGetDate.y index c87d21c..d38235a 100644 --- a/generic/tclGetDate.y +++ b/generic/tclGetDate.y @@ -16,7 +16,7 @@ %parse-param {DateInfo* info} %lex-param {DateInfo* info} -%pure-parser +%define api.pure /* %error-verbose would be nice, but our token names are meaningless */ %locations |