]> granicus.if.org Git - flex/commitdiff
put user code after yyguts init; resolves #1744516
authorRobert Minsk <rminsk@users.sourceforge.net>
Wed, 8 Aug 2012 17:24:06 +0000 (13:24 -0400)
committerWill Estes <westes575@gmail.com>
Wed, 8 Aug 2012 17:24:06 +0000 (13:24 -0400)
Signed-off-by: Will Estes <westes575@gmail.com>
flex.skl

index c981b1082b9a73a4568367268cd3cf36e938dfc3..aebf2ae67dcb9b33de6026881061034793f4f216 100644 (file)
--- 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