cvs: ZendEngine2 / zend.h zend_compile.c zend_compile.h zend_execute.c zend_language_scanner.l zend_opcode.c

From: Date: Tue, 18 Feb 2003 17:18:28 +0000
Subject: cvs: ZendEngine2 / zend.h zend_compile.c zend_compile.h zend_execute.c zend_language_scanner.l zend_opcode.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-949@lists.php.net to get a copy of this message
zeev Tue Feb 18 12:18:28 2003 EDT Modified files: /ZendEngine2 zend.h zend_compile.c zend_compile.h zend_execute.c zend_language_scanner.l zend_opcode.c Log: Avoid using a C++ reserved word Index: ZendEngine2/zend.h diff -u ZendEngine2/zend.h:1.202 ZendEngine2/zend.h:1.203 --- ZendEngine2/zend.h:1.202 Tue Feb 18 04:37:53 2003 +++ ZendEngine2/zend.h Tue Feb 18 12:18:28 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.h,v 1.202 2003/02/18 09:37:53 wez Exp $ */ +/* $Id: zend.h,v 1.203 2003/02/18 17:18:28 zeev Exp $ */ #ifndef ZEND_H #define ZEND_H @@ -319,7 +319,7 @@ HashTable *static_members; HashTable constants_table; zend_function_entry *builtin_functions; - struct _zend_class_entry *namespace; + struct _zend_class_entry *ns; union _zend_function *constructor; union _zend_function *destructor; Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.368 ZendEngine2/zend_compile.c:1.369 --- ZendEngine2/zend_compile.c:1.368 Sun Feb 16 08:27:33 2003 +++ ZendEngine2/zend_compile.c Tue Feb 18 12:18:28 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.368 2003/02/16 13:27:33 stas Exp $ */ +/* $Id: zend_compile.c,v 1.369 2003/02/18 17:18:28 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -937,7 +937,7 @@ op_array.fn_flags = fn_flags; op_array.scope = CG(active_class_entry); - op_array.namespace = CG(active_namespace); + op_array.ns = CG(active_namespace); if (is_method) { char *short_class_name = CG(active_class_entry)->name; @@ -3222,7 +3222,7 @@ ns->constructor = emalloc(sizeof(zend_op_array)); init_op_array((zend_op_array *)ns->constructor, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC); - ns->constructor->op_array.namespace = CG(active_namespace); + ns->constructor->op_array.ns = CG(active_namespace); ns_token->u.op_array = CG(active_op_array); @@ -3236,7 +3236,7 @@ void zend_do_end_namespace(znode *ns_token TSRMLS_DC) { - zend_namespace *ns = CG(active_op_array)->namespace; + zend_namespace *ns = CG(active_op_array)->ns; int handle = CG(handle_op_arrays); @@ -3245,7 +3245,7 @@ pass_two(CG(active_op_array) TSRMLS_CC); CG(handle_op_arrays) = handle; - CG(active_op_array)->namespace = CG(active_namespace); + CG(active_op_array)->ns = CG(active_namespace); CG(active_namespace) = ns; CG(active_op_array) = ns_token->u.op_array; @@ -3321,7 +3321,7 @@ ce->create_object = NULL; } - ce->namespace = CG(active_namespace); + ce->ns = CG(active_namespace); } /* Index: ZendEngine2/zend_compile.h diff -u ZendEngine2/zend_compile.h:1.213 ZendEngine2/zend_compile.h:1.214 --- ZendEngine2/zend_compile.h:1.213 Tue Feb 18 04:37:53 2003 +++ ZendEngine2/zend_compile.h Tue Feb 18 12:18:28 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.h,v 1.213 2003/02/18 09:37:53 wez Exp $ */ +/* $Id: zend_compile.h,v 1.214 2003/02/18 17:18:28 zeev Exp $ */ #ifndef ZEND_COMPILE_H #define ZEND_COMPILE_H @@ -118,7 +118,7 @@ char *function_name; /* MUST be the third element of this struct! */ zend_class_entry *scope; /* MUST be the fourth element of this struct! */ zend_uint fn_flags; /* MUST be the fifth element of this struct! */ - zend_namespace *namespace; + zend_namespace *ns; zend_uint *refcount; @@ -154,7 +154,7 @@ char *function_name; /* MUST be the third element of this struct! */ zend_class_entry *scope; /* MUST be the fourth element of this struct! */ zend_uint fn_flags; /* MUST be the fifth element of this struct! */ - zend_namespace *namespace; + zend_namespace *ns; void (*handler)(INTERNAL_FUNCTION_PARAMETERS); } zend_internal_function; @@ -170,7 +170,7 @@ char *function_name; zend_class_entry *scope; zend_uint fn_flags; - zend_namespace *namespace; + zend_namespace *ns; } common; zend_op_array op_array; Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.433 ZendEngine2/zend_execute.c:1.434 --- ZendEngine2/zend_execute.c:1.433 Tue Feb 18 04:37:53 2003 +++ ZendEngine2/zend_execute.c Tue Feb 18 12:18:28 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.433 2003/02/18 09:37:53 wez Exp $ */ +/* $Id: zend_execute.c,v 1.434 2003/02/18 17:18:28 zeev Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -1216,8 +1216,8 @@ */ EX(function_state).function_symbol_table = NULL; #endif - if(EG(active_namespace) != op_array->namespace) { - zend_switch_namespace(op_array->namespace TSRMLS_CC); + if(EG(active_namespace) != op_array->ns) { + zend_switch_namespace(op_array->ns TSRMLS_CC); } while (1) { Index: ZendEngine2/zend_language_scanner.l diff -u ZendEngine2/zend_language_scanner.l:1.76 ZendEngine2/zend_language_scanner.l:1.77 --- ZendEngine2/zend_language_scanner.l:1.76 Tue Feb 18 04:37:54 2003 +++ ZendEngine2/zend_language_scanner.l Tue Feb 18 12:18:28 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_language_scanner.l,v 1.76 2003/02/18 09:37:54 wez Exp $ */ +/* $Id: zend_language_scanner.l,v 1.77 2003/02/18 17:18:28 zeev Exp $ */ #define yyleng SCNG(yy_leng) #define yytext SCNG(yy_text) @@ -289,7 +289,7 @@ init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC); CG(in_compilation) = 1; CG(active_op_array) = op_array; - op_array->namespace = CG(active_namespace); + op_array->ns = CG(active_namespace); compiler_result = zendparse(TSRMLS_C); zend_do_return(&retval_znode, 0 TSRMLS_CC); CG(in_compilation) = original_in_compilation; @@ -403,7 +403,7 @@ } else { init_op_array(op_array, ZEND_EVAL_CODE, INITIAL_OP_ARRAY_SIZE TSRMLS_CC); CG(active_op_array) = op_array; - op_array->namespace = CG(active_namespace); + op_array->ns = CG(active_namespace); BEGIN(ST_IN_SCRIPTING); compiler_result = zendparse(TSRMLS_C); Index: ZendEngine2/zend_opcode.c diff -u ZendEngine2/zend_opcode.c:1.82 ZendEngine2/zend_opcode.c:1.83 --- ZendEngine2/zend_opcode.c:1.82 Sun Feb 16 06:12:43 2003 +++ ZendEngine2/zend_opcode.c Tue Feb 18 12:18:28 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_opcode.c,v 1.82 2003/02/16 11:12:43 stas Exp $ */ +/* $Id: zend_opcode.c,v 1.83 2003/02/18 17:18:28 zeev Exp $ */ #include <stdio.h> @@ -78,7 +78,7 @@ op_array->arg_types = NULL; op_array->scope = NULL; - op_array->namespace = NULL; + op_array->ns = NULL; op_array->brk_cont_array = NULL; op_array->last_brk_cont = 0;

« previous php.zend-engine.cvs (#949) next »