From 1d128474a79a1e781a67076c751ab773c11c65e2 Mon Sep 17 00:00:00 2001 From: Joseph Langley Date: Wed, 9 Jun 2021 20:45:19 -0400 Subject: fix(skel): Use yypanic in place of YY_FATAL_ERROR. yypanic() is new in the c99 and go skeletons. --- src/c99-flex.skl | 2 +- src/go-flex.skl | 2 +- 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; -- cgit v1.2.1