From 5cccc82072c425bd5c7c2a0082225c7f01e4f67e Mon Sep 17 00:00:00 2001 From: Joseph Langley Date: Fri, 2 Jul 2021 18:49:38 -0400 Subject: chore(skel): Improve comment at state buffer init. --- src/cpp-flex.skl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/cpp-flex.skl diff --git a/src/cpp-flex.skl b/src/cpp-flex.skl old mode 100644 new mode 100755 index 10738ba..25e4327 --- a/src/cpp-flex.skl +++ b/src/cpp-flex.skl @@ -1907,7 +1907,9 @@ m4_ifdef([[M4_MODE_CXX_ONLY]], [[ m4_ifdef( [[M4_MODE_USES_REJECT]], [[ - /* Create the reject buffer large enough to save one state per allowed character. */ + /* Create the reject buffer large enough to save one state per allowed character. + * If the reject buffer already exists, keep using it. + */ if ( ! YY_G(yy_state_buf) ) { YY_G(yy_state_buf) = (yy_state_type *)yyalloc( ((YY_CURRENT_BUFFER_LVALUE->yy_buf_size + YY_STATE_BUF_EXTRA_SPACE) * sizeof(yy_state_type)) M4_YY_CALL_LAST_ARG); if ( ! YY_G(yy_state_buf) ) { -- cgit v1.2.1