cvs: ZendEngine2 / zend_ini.h zend_ini_entry.h zend_modules.h

From: Date: Sun, 12 Jan 2003 13:00:29 +0000
Subject: cvs: ZendEngine2 / zend_ini.h zend_ini_entry.h zend_modules.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-795@lists.php.net to get a copy of this message
phanto Sun Jan 12 08:00:29 2003 EDT Added files: /ZendEngine2 zend_ini_entry.h Modified files: /ZendEngine2 zend_ini.h zend_modules.h Log: added zend_ini_entry to zend_modules_entry as discussed with zeev Index: ZendEngine2/zend_ini.h diff -u ZendEngine2/zend_ini.h:1.22 ZendEngine2/zend_ini.h:1.23 --- ZendEngine2/zend_ini.h:1.22 Sun Jan 12 07:39:06 2003 +++ ZendEngine2/zend_ini.h Sun Jan 12 08:00:27 2003 @@ -56,31 +56,7 @@ #endif -typedef struct _zend_ini_entry zend_ini_entry; - -#define ZEND_INI_MH(name) int name(zend_ini_entry *entry, char *new_value, uint new_value_length, void *mh_arg1, void *mh_arg2, void *mh_arg3, int stage TSRMLS_DC) -#define ZEND_INI_DISP(name) void name(zend_ini_entry *ini_entry, int type) - -struct _zend_ini_entry { - int module_number; - int modifyable; - char *name; - uint name_length; - ZEND_INI_MH((*on_modify)); - void *mh_arg1; - void *mh_arg2; - void *mh_arg3; - - char *value; - uint value_length; - - char *orig_value; - uint orig_value_length; - int modified; - - void (*displayer)(zend_ini_entry *ini_entry, int type); -}; - +#include "zend_ini_entry.h" ZEND_API int zend_ini_startup(TSRMLS_D); ZEND_API int zend_ini_shutdown(TSRMLS_D); Index: ZendEngine2/zend_modules.h diff -u ZendEngine2/zend_modules.h:1.46 ZendEngine2/zend_modules.h:1.47 --- ZendEngine2/zend_modules.h:1.46 Tue Dec 31 10:54:08 2002 +++ ZendEngine2/zend_modules.h Sun Jan 12 08:00:28 2003 @@ -22,6 +22,7 @@ #define MODULES_H #include "zend.h" +#include "zend_ini_entry.h" #define INIT_FUNC_ARGS int type, int module_number TSRMLS_DC #define INIT_FUNC_ARGS_PASSTHRU type, module_number TSRMLS_CC @@ -41,7 +42,8 @@ #define USING_ZTS 0 #endif -#define STANDARD_MODULE_HEADER sizeof(zend_module_entry), ZEND_MODULE_API_NO, ZEND_DEBUG, USING_ZTS +#define STANDARD_MODULE_HEADER sizeof(zend_module_entry), ZEND_MODULE_API_NO, ZEND_DEBUG, USING_ZTS, NULL +#define ZE2_STANDARD_MODULE_HEADER sizeof(zend_module_entry), ZEND_MODULE_API_NO, ZEND_DEBUG, USING_ZTS, &ini_entries #define STANDARD_MODULE_PROPERTIES_EX 0, 0, 0, NULL, 0 @@ -60,6 +62,7 @@ unsigned int zend_api; unsigned char zend_debug; unsigned char zts; + zend_ini_entry *ini_entry; char *name; zend_function_entry *functions; int (*module_startup_func)(INIT_FUNC_ARGS); Index: ZendEngine2/zend_ini_entry.h +++ ZendEngine2/zend_ini_entry.h /* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend license, | | that is bundled with this package in the file LICENSE, and is | | available at through the world-wide-web at | | http://www.zend.com/license/2_00.txt. | | If you did not receive a copy of the Zend license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@zend.com so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Author: Harald Radi <harald.radi@nme.at> | +----------------------------------------------------------------------+ */ #ifndef ZEND_INI_ENTRY_H #define ZEND_INI_ENTRY_H #define ZEND_INI_MH(name) int name(zend_ini_entry *entry, char *new_value, uint new_value_length, void *mh_arg1, void *mh_arg2, void *mh_arg3, int stage TSRMLS_DC) #define ZEND_INI_DISP(name) void name(zend_ini_entry *ini_entry, int type) typedef struct _zend_ini_entry zend_ini_entry; struct _zend_ini_entry { int module_number; int modifyable; char *name; uint name_length; ZEND_INI_MH((*on_modify)); void *mh_arg1; void *mh_arg2; void *mh_arg3; char *value; uint value_length; char *orig_value; uint orig_value_length; int modified; void (*displayer)(zend_ini_entry *ini_entry, int type); }; #endif /* ZEND_INI_ENTRY_H */

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