diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-06-10 06:48:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-06-10 06:48:51 -0700 |
commit | f4a58d4b385de1cc75c2049b49a6aa5a93be2989 (patch) | |
tree | 1469ecee102e1a74d4819a2138f7db24e7b63681 /parser.l | |
parent | 6ac15da6c977a7f2c8d1be2292fee20b05864fe3 (diff) | |
download | txr-f4a58d4b385de1cc75c2049b49a6aa5a93be2989.tar.gz txr-f4a58d4b385de1cc75c2049b49a6aa5a93be2989.tar.bz2 txr-f4a58d4b385de1cc75c2049b49a6aa5a93be2989.zip |
* parser.l (yylex_destroy): The FLEX_ version are prefixed with YY_
in old flexes too.
Diffstat (limited to 'parser.l')
-rw-r--r-- | parser.l | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -71,10 +71,9 @@ val form_to_ln_hash; static val prepared_error_message; -#ifdef FLEX_MAJOR_VERSION -#define FLEX_NUM_VERSION 1000*FLEX_MAJOR_VERSION + \ - 100*FLEX_MINOR_VERSION + \ - FLEX_SUBMINOR_VERSION +#define FLEX_NUM_VERSION 10000*YY_FLEX_MAJOR_VERSION + \ + 100*YY_FLEX_MINOR_VERSION + \ + YY_FLEX_SUBMINOR_VERSION #if FLEX_NUM_VERSION < 20509 int yylex_destroy(void) @@ -82,7 +81,6 @@ int yylex_destroy(void) return 0; } #endif -#endif void yyerror(const char *s) { |