summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Minsk <rminsk@users.sourceforge.net>2012-08-08 13:24:06 -0400
committerWill Estes <westes575@gmail.com>2012-08-08 13:24:06 -0400
commitec2fdb85e0bac6e8aeca405094506e4cf8bfc0b6 (patch)
tree835f351d6ae82c167d5bc4f2438d4443a5b45f11
parent11b7c6cea340c2fca9b49ec635a45bd34361afe9 (diff)
put user code after yyguts init; resolves #1744516
Signed-off-by: Will Estes <westes575@gmail.com>
-rw-r--r--flex.skl6
1 files changed, 4 insertions, 2 deletions
diff --git a/flex.skl b/flex.skl
index c981b10..aebf2ae 100644
--- a/flex.skl
+++ b/flex.skl
@@ -1277,8 +1277,6 @@ m4_ifdef( [[M4_YY_NOT_REENTRANT]],
]])
]])
-%% [7.0] user's declarations go here
-
m4_ifdef( [[M4_YY_BISON_LVAL]],
[[
yylval = yylval_param;
@@ -1334,6 +1332,9 @@ m4_ifdef( [[M4_YY_USES_REJECT]],
yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );
}
+ {
+%% [7.0] user's declarations go here
+
while ( 1 ) /* loops until end-of-file is reached */
{
%% [8.0] yymore()-related code goes here
@@ -1491,6 +1492,7 @@ do_action: /* This label is used only to access EOF actions. */
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
+ } /* end of user's declarations */
} /* end of yylex */
%ok-for-header