Skip to content

Commit

Permalink
Correct guarding of GUTS declaration
Browse files Browse the repository at this point in the history
It turns out I had missed some tests for recursive scanners.
  • Loading branch information
taniwha authored and westes committed Oct 19, 2023
1 parent 7efebe2 commit ee2d527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp-flex.skl
Original file line number Diff line number Diff line change
Expand Up @@ -2837,8 +2837,8 @@ m4_ifdef([[M4_MODE_CXX_ONLY]], [[
void yyFlexLexer::yyrestart( std::istream& input_file )
]])
{
m4_ifdef( [[M4_MODE_USES_REJECT]], [[
M4_YY_DECL_GUTS_VAR();
m4_ifdef( [[M4_MODE_USES_REJECT]], [[
size_t new_size = 0;
yy_state_type *new_state_buf = 0;
]] )
Expand Down Expand Up @@ -2903,8 +2903,8 @@ m4_ifdef([[M4_MODE_CXX_ONLY]], [[
void yyFlexLexer::yy_switch_to_buffer( yybuffer new_buffer )
]])
{
m4_ifdef( [[M4_MODE_USES_REJECT]], [[
M4_YY_DECL_GUTS_VAR();
m4_ifdef( [[M4_MODE_USES_REJECT]], [[
size_t new_size = 0;
yy_state_type *new_state_buf = 0;
]] )
Expand Down

0 comments on commit ee2d527

Please sign in to comment.