diff options
Diffstat (limited to 'ext/skeleton/php_skeleton.h')
-rw-r--r-- | ext/skeleton/php_skeleton.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/skeleton/php_skeleton.h b/ext/skeleton/php_skeleton.h index 70456f5e3e..fb4b3739e2 100644 --- a/ext/skeleton/php_skeleton.h +++ b/ext/skeleton/php_skeleton.h @@ -32,7 +32,7 @@ #if HAVE__EXTNAME_ extern zend_module_entry _extname__module_entry; -#define _extname__module_ptr &_extname__module_entry +#define phpext__extname__ptr &_extname__module_entry #ifdef PHP_WIN32 #define PHP__EXTNAME__API __declspec(dllexport) @@ -52,6 +52,12 @@ typedef struct { /* Fill in this structure and use entries in it for thread safety instead of using true globals. */ + /* You can use the next one as type if your module registers any + resources. Oh, you can of course rename it to something more + suitable, add list entry types or remove it if it not needed. + It's just an example. + */ + int le__extname_; } php__extname__globals; /* In every function that needs to use variables in php__extname__globals, @@ -71,12 +77,10 @@ typedef struct { #else -#define _extname__module_ptr NULL +#define php__extname__ptr NULL #endif -#define phpext__extname__ptr _extname__module_ptr - #endif /* _PHP__EXTNAME__H */ /* |