mirror of
https://github.com/php/php-src.git
synced 2024-10-08 10:16:12 +00:00
1b2c932cc2
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.
25 lines
444 B
C
25 lines
444 B
C
#ifndef _PHP3_COM_H
|
|
#define _PHP3_COM_H
|
|
|
|
#if WIN32|WINNT
|
|
|
|
extern PHP_MINIT_FUNCTION(COM);
|
|
extern PHP_MSHUTDOWN_FUNCTION(COM);
|
|
PHP_FUNCTION(COM_load);
|
|
PHP_FUNCTION(COM_invoke);
|
|
|
|
PHP_FUNCTION(com_propget);
|
|
PHP_FUNCTION(com_propput);
|
|
extern php3_module_entry COM_module_entry;
|
|
#define COM_module_ptr &COM_module_entry
|
|
|
|
#else
|
|
|
|
#define COM_module_ptr NULL
|
|
|
|
#endif /* Win32|WINNT */
|
|
|
|
#define phpext_COM_ptr COM_module_ptr
|
|
|
|
#endif /* _PHP3_COM_H */
|