diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1994-12-28 11:54:59 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1994-12-28 11:54:59 +0000 |
commit | 843328fc8672762a00e939ef17519a5a261bef0a (patch) | |
tree | 8cd7ac8abaa3672038569e74a02ed1cc7f30445e /flex.skl | |
parent | 8e14e1b29a711affdbc29f5c091cf9bb5779c234 (diff) |
YY_FLEX_{MAJOR,MINOR}_VERSION
fixed bug in unput trashing yytext even with %array
Diffstat (limited to 'flex.skl')
-rw-r--r-- | flex.skl | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5,7 +5,8 @@ */ #define FLEX_SCANNER -#define YY_FLEX_VERSION 25 +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 %- #include <stdio.h> @@ -930,10 +931,9 @@ void yyFlexLexer::yyunput( int c, register char* yy_bp ) %% update yylineno here, if doing -l - /* Note: the formal parameter *must* be called "yy_bp" for this - * macro to now work correctly. - */ - YY_DO_BEFORE_ACTION; /* set up yytext again */ + yytext_ptr = yy_bp; + yy_hold_char = *yy_cp; + yy_c_buf_p = yy_cp; } |