summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Langley <mightyjo@gmail.com>2021-07-02 18:49:38 -0400
committerJoseph Langley <mightyjo@gmail.com>2021-07-02 18:49:38 -0400
commit5cccc82072c425bd5c7c2a0082225c7f01e4f67e (patch)
tree7cf67ed3440a99a55f61cad8dcc0ce54d538eab6
parent79da5dfa0fb837f97b1f1d71377a83efa90c8081 (diff)
downloadflex-git-5cccc82072c425bd5c7c2a0082225c7f01e4f67e.tar.gz
chore(skel): Improve comment at state buffer init.
-rwxr-xr-x[-rw-r--r--]src/cpp-flex.skl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpp-flex.skl b/src/cpp-flex.skl
index 10738ba..25e4327 100644..100755
--- 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) ) {