summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-06-10 06:48:51 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-06-10 06:48:51 -0700
commitf4a58d4b385de1cc75c2049b49a6aa5a93be2989 (patch)
tree1469ecee102e1a74d4819a2138f7db24e7b63681 /parser.l
parent6ac15da6c977a7f2c8d1be2292fee20b05864fe3 (diff)
downloadtxr-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.l8
1 files changed, 3 insertions, 5 deletions
diff --git a/parser.l b/parser.l
index fa3c88cb..0613e643 100644
--- a/parser.l
+++ b/parser.l
@@ -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)
{