]> granicus.if.org Git - php/commitdiff
Add ZEND_GET_MODULE(name). This is a short-cut for the common
authorSascha Schumann <sas@php.net>
Tue, 2 May 2000 01:33:18 +0000 (01:33 +0000)
committerSascha Schumann <sas@php.net>
Tue, 2 May 2000 01:33:18 +0000 (01:33 +0000)
get_module function.

Zend/zend_API.h

index d151efe0ca9d1e12f1f39281ab9bb7f7ebb5c66c..daab74a0a31d10e43c0a17a46925c54ac348adb0 100644 (file)
@@ -51,6 +51,8 @@
 #define ZEND_GINIT_FUNCTION(module)      int ZEND_GINIT(module)(GINIT_FUNC_ARGS)
 #define ZEND_GSHUTDOWN_FUNCTION(module)  int ZEND_GSHUTDOWN(module)(void)
 
+#define ZEND_GET_MODULE(name) \
+       ZEND_DLEXPORT zend_module_entry *get_module(void) { return &name##_module_entry; }
 
 #define ZEND_BEGIN_MODULE_GLOBALS(module_name)         \
        typedef struct _zend_##module_name##_globals {