summaryrefslogtreecommitdiff
path: root/ext/skeleton/php_skeleton.h
diff options
context:
space:
mode:
authorJouni Ahto <jah@php.net>2000-06-09 03:38:37 +0000
committerJouni Ahto <jah@php.net>2000-06-09 03:38:37 +0000
commit216067b63f23d0514b01013759aefbe825d54425 (patch)
tree4b4c9032042accbcad177d7ddab782cd682066bd /ext/skeleton/php_skeleton.h
parent1868bfdcdf053b7cb2859f03521e50734e746ec4 (diff)
downloadphp-git-216067b63f23d0514b01013759aefbe825d54425.tar.gz
- As Sascha requested.
Diffstat (limited to 'ext/skeleton/php_skeleton.h')
-rw-r--r--ext/skeleton/php_skeleton.h12
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 */
/*