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/crypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/standard/crypt.c') diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index c241a0fef2..36eab9be96 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -54,7 +54,7 @@ function_entry crypt_functions[] = { }; php3_module_entry crypt_module_entry = { - "Crypt", crypt_functions, php_minit_crypt, NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES + "Crypt", crypt_functions, PHP_MINIT(crypt), NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES }; @@ -90,7 +90,7 @@ php3_module_entry crypt_module_entry = { #endif #endif -int php_minit_crypt(INIT_FUNC_ARGS) +PHP_MINIT_FUNCTION(crypt) { ELS_FETCH(); -- cgit v1.2.1