From 1b2c932cc2848da25b38a4e73aa74541a9761beb Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 26 Jul 1999 20:09:08 +0000 Subject: More symbol work. I've defined a few macros to help with module/request init/startup function definitions. Basically: PHP_MINIT_FUNCTION(module) PHP_MSHUTDOWN_FUNCTION(module) PHP_RINIT_FUNCTION(module) PHP_RSHUTDOWN_FUNCTION(module) PHP_MINFO_FUNCTION(module) These will expand to proper function prototypes. Now to specify these in the module entry, use: PHP_MINIT(module) PHP_MSHUTDOWN(module) PHP_RINIT(module) PHP_RSHUTDOWN(module) PHP_MINFO(module) I've updated all modules in ext/standard and everything from ext/apache to ext/db. If you can, please update your module to use these macros. --- ext/standard/basic_functions.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ext/standard/basic_functions.h') diff --git a/ext/standard/basic_functions.h b/ext/standard/basic_functions.h index 086a049e6e..10190ebe07 100644 --- a/ext/standard/basic_functions.h +++ b/ext/standard/basic_functions.h @@ -39,10 +39,11 @@ extern php3_module_entry basic_functions_module; #define basic_functions_module_ptr &basic_functions_module -extern int php3_minit_basic(INIT_FUNC_ARGS); -extern int php3_mshutdown_basic(SHUTDOWN_FUNC_ARGS); -extern int php3_rinit_basic(INIT_FUNC_ARGS); -extern int php3_rshutdown_basic(SHUTDOWN_FUNC_ARGS); +PHP_MINIT_FUNCTION(basic); +PHP_MSHUTDOWN_FUNCTION(basic); +PHP_RINIT_FUNCTION(basic); +PHP_RSHUTDOWN_FUNCTION(basic); + PHP_FUNCTION(intval); PHP_FUNCTION(doubleval); PHP_FUNCTION(strval); -- cgit v1.2.1