This commit is contained in:
Zeev Suraski 2002-08-15 00:25:27 +00:00
parent 43f17d4c9b
commit 0bb780b384
4 changed files with 16 additions and 3 deletions

View File

@ -388,9 +388,14 @@ static int input YY_PROTO(( TSRMLS_D ));
#endif
#if YY_STACK_USED
#define yy_start_stack_ptr SCNG(yy_start_stack_ptr)
#define yy_start_stack_depth SCNG(yy_start_stack_depth)
#define yy_start_stack SCNG(yy_start_stack)
/*
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
*/
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state TSRMLS_DC ));
#endif
@ -398,7 +403,7 @@ static void yy_push_state YY_PROTO(( int new_state TSRMLS_DC ));
static void yy_pop_state YY_PROTO(( TSRMLS_D ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
static int yy_top_state YY_PROTO(( TSRMLS_D ));
#endif
#else
@ -1495,7 +1500,7 @@ void yyFlexLexer::yy_pop_state(TSRMLS_D)
#ifndef YY_NO_TOP_STATE
%-
static int yy_top_state()
static int yy_top_state(TSRMLS_D)
%+
int yyFlexLexer::yy_top_state()
%*

View File

@ -380,7 +380,9 @@ static void scanner_globals_ctor(zend_scanner_globals *scanner_globals_p TSRMLS_
scanner_globals_p->yy_out = NULL;
scanner_globals_p->_yy_more_flag = 0;
scanner_globals_p->_yy_more_len = 0;
scanner_globals_p->yy_start_stack_ptr = 0;
scanner_globals_p->yy_start_stack_depth = 0;
scanner_globals_p->yy_start_stack = 0;
}

View File

@ -255,6 +255,9 @@ struct _zend_scanner_globals {
char *_yy_last_accepting_cpos;
int _yy_more_flag;
int _yy_more_len;
int yy_start_stack_ptr;
int yy_start_stack_depth;
int *yy_start_stack;
};
#endif /* ZEND_GLOBALS_H */

View File

@ -125,6 +125,9 @@ void startup_scanner(TSRMLS_D)
{
CG(heredoc) = NULL;
CG(heredoc_len)=0;
SCNG(yy_start_stack_ptr) = 0;
SCNG(yy_start_stack_depth) = 0;
SCNG(yy_start_stack) = 0;
}