summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Langley <mightyjo@gmail.com>2021-06-09 20:45:19 -0400
committerJoseph Langley <mightyjo@gmail.com>2021-06-09 21:46:01 -0400
commit1d128474a79a1e781a67076c751ab773c11c65e2 (patch)
tree70e9947a26bb51c0687820ffc68da0a66e32a976
parent988d379eb082423274381656863c804b00f82427 (diff)
downloadflex-git-1d128474a79a1e781a67076c751ab773c11c65e2.tar.gz
fix(skel): Use yypanic in place of YY_FATAL_ERROR.
yypanic() is new in the c99 and go skeletons.
-rwxr-xr-xsrc/c99-flex.skl2
-rwxr-xr-xsrc/go-flex.skl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/c99-flex.skl b/src/c99-flex.skl
index b01913d..9f48e3c 100755
--- a/src/c99-flex.skl
+++ b/src/c99-flex.skl
@@ -1626,7 +1626,7 @@ m4_ifdef( [[M4_MODE_USES_REJECT]], [[
new_state_buf = (yy_state_type *)yyrealloc( yyscanner->yy_state_buf, (new_size * sizeof(yy_state_type)), yyscanner );
if ( new_state_buf == NULL ) {
- YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
+ yypanic( "out of dynamic memory in yylex()", yyscanner );
}
else {
yyscanner->yy_state_buf = new_state_buf;
diff --git a/src/go-flex.skl b/src/go-flex.skl
index e9ce1f1..9eb42d4 100755
--- a/src/go-flex.skl
+++ b/src/go-flex.skl
@@ -1476,7 +1476,7 @@ m4_ifdef( [[M4_MODE_USES_REJECT]], [[
newStateBuf = (yyStateType *)yyrealloc( yyscanner->yyStateBuf, (new_size * sizeof(yyStateType)), yyscanner );
if ( newStateBuf == NULL ) {
- YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
+ yypanic( "out of dynamic memory in yylex()", yyscanner );
}
else {
yyscanner->yyStateBuf = newStateBuf;