summaryrefslogtreecommitdiff
path: root/flex.skl
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-11-29 03:29:10 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-11-29 03:29:10 +0000
commit1c18c5a7a8fc70f1bb12119997641208caecaed8 (patch)
treec3c90a30ab748b85f2079d120a06244a184653da /flex.skl
parentfa0ece3b4ae39613b41e6583b13dcf9468a58b15 (diff)
Fixed bug in yyless definition where argument was not enclosed in parentheses.
Diffstat (limited to 'flex.skl')
-rw-r--r--flex.skl5
1 files changed, 3 insertions, 2 deletions
diff --git a/flex.skl b/flex.skl
index d2689be..874f635 100644
--- a/flex.skl
+++ b/flex.skl
@@ -299,10 +299,11 @@ extern FILE *yyin, *yyout;
do \
{ \
/* Undo effects of setting up yytext. */ \
- YY_LESS_LINENO(n);\
+ int yyless_macro_arg = (n); \
+ YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = YY_G(yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
- YY_G(yy_c_buf_p) = yy_cp = yy_bp + n - YY_MORE_ADJ; \
+ YY_G(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )