diff options
| author | Andrey Hristov <andrey@php.net> | 1999-07-26 20:09:08 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 1999-07-26 20:09:08 +0000 |
| commit | 1b2c932cc2848da25b38a4e73aa74541a9761beb (patch) | |
| tree | 19c46f9a829a34237c2411cdce3a3c4ca2f4fde1 /ext/standard/syslog.c | |
| parent | 7af5579e3f40ccda2e5b5bf47ff3b2a71327317f (diff) | |
| download | php-git-1b2c932cc2848da25b38a4e73aa74541a9761beb.tar.gz | |
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.
Diffstat (limited to 'ext/standard/syslog.c')
| -rw-r--r-- | ext/standard/syslog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 0e8f0e9c0d..d4792b2856 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -42,7 +42,7 @@ static int syslog_started; static char *syslog_device; static void start_syslog(void); -int php3_minit_syslog(INIT_FUNC_ARGS) +PHP_MINIT_FUNCTION(syslog) { ELS_FETCH(); @@ -104,7 +104,7 @@ int php3_minit_syslog(INIT_FUNC_ARGS) } -int php3_rinit_syslog(INIT_FUNC_ARGS) +PHP_RINIT_FUNCTION(syslog) { if (INI_INT("define_syslog_variables")) { start_syslog(); @@ -116,7 +116,7 @@ int php3_rinit_syslog(INIT_FUNC_ARGS) } -int php3_rshutdown_syslog(SHUTDOWN_FUNC_ARGS) +PHP_RSHUTDOWN_FUNCTION(syslog) { if (syslog_device) { efree(syslog_device); @@ -266,7 +266,7 @@ function_entry syslog_functions[] = { php3_module_entry syslog_module_entry = { - "Syslog", syslog_functions, php3_minit_syslog, NULL, php3_rinit_syslog, php3_rshutdown_syslog, NULL, STANDARD_MODULE_PROPERTIES + "Syslog", syslog_functions, PHP_MINIT(syslog), NULL, PHP_RINIT(syslog), PHP_RSHUTDOWN(syslog), NULL, STANDARD_MODULE_PROPERTIES }; |
