Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/flex/dist/src Fix misindentations in the flex s...



details:   https://anonhg.NetBSD.org/src/rev/af1e7194abdd
branches:  trunk
changeset: 1009525:af1e7194abdd
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Apr 25 18:56:26 2020 +0000

description:
Fix misindentations in the flex skeleton triggered by dtrace's dt_lex.l.
Upstream committed as a631f5da8d4fd60fbde7b06bcf43bc9a155c27d5

diffstat:

 external/bsd/flex/dist/src/flex.skl |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r bbc6d6892a29 -r af1e7194abdd external/bsd/flex/dist/src/flex.skl
--- a/external/bsd/flex/dist/src/flex.skl       Sat Apr 25 18:20:57 2020 +0000
+++ b/external/bsd/flex/dist/src/flex.skl       Sat Apr 25 18:56:26 2020 +0000
@@ -1216,11 +1216,11 @@
 
 m4_ifdef( [[M4_YY_USES_REJECT]],
 [[
-        /* Create the reject buffer large enough to save one state per allowed character. */
-        if ( ! YY_G(yy_state_buf) )
-            YY_G(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE  M4_YY_CALL_LAST_ARG);
-            if ( ! YY_G(yy_state_buf) )
-                YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
+               /* Create the reject buffer large enough to save one state per allowed character. */
+               if ( ! YY_G(yy_state_buf) )
+                       YY_G(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE  M4_YY_CALL_LAST_ARG);
+               if ( ! YY_G(yy_state_buf) )
+                       YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
 ]])
 
                if ( ! YY_G(yy_start) )
@@ -1749,7 +1749,7 @@
 %% [17.0] code to find the next state, and perhaps do backing up, goes here
 
        M4_YY_NOOP_GUTS_VAR();
-       return yy_is_jam ? 0 : yy_current_state;
+return yy_is_jam ? 0 : yy_current_state;
 }
 
 



Home | Main Index | Thread Index | Old Index