From: Vern Paxson Date: Wed, 28 Dec 1994 11:54:59 +0000 (+0000) Subject: YY_FLEX_{MAJOR,MINOR}_VERSION X-Git-Tag: flex-2-5-5b~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=843328fc8672762a00e939ef17519a5a261bef0a;p=flex YY_FLEX_{MAJOR,MINOR}_VERSION fixed bug in unput trashing yytext even with %array --- diff --git a/flex.skl b/flex.skl index b9e81cb..1bb47b8 100644 --- a/flex.skl +++ b/flex.skl @@ -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 @@ -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; }