]> granicus.if.org Git - flex/commitdiff
YY_FLEX_{MAJOR,MINOR}_VERSION
authorVern Paxson <vern@ee.lbl.gov>
Wed, 28 Dec 1994 11:54:59 +0000 (11:54 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Wed, 28 Dec 1994 11:54:59 +0000 (11:54 +0000)
fixed bug in unput trashing yytext even with %array

flex.skl

index b9e81cbecd144e8a55232da17267ba45a9421005..1bb47b86aea26a930e39c94c19770f8fd23ec982 100644 (file)
--- 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 <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;
        }