From: jannick0 Date: Mon, 8 Jan 2018 09:04:23 +0000 (+0100) Subject: scanner: fix default of yy_top_state() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3971b6146aab12e1c54945dcb47ae92a25a3f3c3;p=flex scanner: fix default of yy_top_state() extend fix when `YY_G` is used (reentrant scanner). --- diff --git a/src/flex.skl b/src/flex.skl index 05729df..d9cdcc0 100644 --- a/src/flex.skl +++ b/src/flex.skl @@ -2465,7 +2465,7 @@ m4_ifdef( [[M4_YY_NO_TOP_STATE]],, %endif { M4_YY_DECL_GUTS_VAR(); - return yy_start_stack_ptr > 0 ? YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr) - 1] : YY_START; + return YY_G(yy_start_stack_ptr) > 0 ? YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr) - 1] : YY_START; } ]])