Support interactive mode in thread-safe builds

This commit is contained in:
Zeev Suraski 2001-05-06 14:36:25 +00:00
parent cd033b1271
commit 1e63f44084
3 changed files with 7 additions and 7 deletions

View file

@ -35,11 +35,7 @@
#define DEBUG_ZEND 0
#ifndef ZTS
# define SUPPORT_INTERACTIVE 1
#else
# define SUPPORT_INTERACTIVE 0
#endif
#define SUPPORT_INTERACTIVE 1
#define FREE_PNODE(znode) zval_dtor(&znode->u.constant);
#define FREE_OP(op, should_free) if (should_free) zval_dtor(&Ts[(op)->u.var].tmp_var);

View file

@ -139,7 +139,7 @@ start:
;
top_statement_list:
top_statement_list { zend_do_extended_info(CLS_C); } top_statement { HANDLE_INTERACTIVE(); }
top_statement_list { zend_do_extended_info(CLS_C); } top_statement { ELS_FETCH(); HANDLE_INTERACTIVE(); }
| /* empty */
;
@ -151,7 +151,7 @@ top_statement:
inner_statement_list:
inner_statement_list { zend_do_extended_info(CLS_C); } inner_statement { HANDLE_INTERACTIVE(); }
inner_statement_list { zend_do_extended_info(CLS_C); } inner_statement { ELS_FETCH(); HANDLE_INTERACTIVE(); }
| /* empty */
;

View file

@ -78,6 +78,10 @@
#define YY_DECL int lex_scan(zval *zendlval CLS_DC)
#endif
#if SUPPORT_INTERACTIVE
#define YY_INTERACTIVE
#endif
#define ECHO { ZEND_WRITE( yytext, yyleng ); }
#ifdef ZTS