diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2024-03-05 04:10:29 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2024-03-05 05:33:26 -0500 |
commit | cebd6e2bab56c12d48ed3aa3c562bf9661595394 (patch) | |
tree | 9edc2c0e4c37476b9e59f7be5680f6f244857556 /src/lex.l | |
parent | 4b01408715cd10e3bf02eb1e87531917a09c2645 (diff) |
amend yylineno change
A recent change removed the declaration of yylineno from lex.l,
making the program depend on the version of flex.
Restore the declaration with an ifdef.
Also, remove unused declaration in parse.c
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/lex.l')
-rw-r--r-- | src/lex.l | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -70,6 +70,9 @@ in this Software without prior written authorization from The Open Group. #include "parse.h" #ifdef FLEX_SCANNER +#if (YY_FLEX_MINOR_VERSION == 5) && (YY_FLEX_SUBMINOR_VERSION < 20) +int yylineno; +#endif #undef YY_INPUT #define YY_INPUT(buf,result,size) ((result) = doinput((buf),(size))) |