5 extern zend_module_entry bbcode_module_entry
;
6 #define phpext_bbcode_ptr &bbcode_module_entry
8 #define PHP_BBCODE_NAME "BBCode"
9 #define PHP_BBCODE_VERSION "2.0.0"
12 # define PHP_BBCODE_API __declspec(dllexport)
13 #elif defined(__GNUC__) && __GNUC__ >= 4
14 # define PHP_BBCODE_API __attribute__ ((visibility("default")))
16 # define PHP_BBCODE_API
24 Declare any global variables you may need between the BEGIN
27 ZEND_BEGIN_MODULE_GLOBALS(bbcode)
28 zend_long global_value;
30 ZEND_END_MODULE_GLOBALS(bbcode)
33 /* Always refer to the globals in your function as BBCODE_G(variable).
34 You are encouraged to rename these macros something shorter, see
35 examples in any other php module directory.
37 #define BBCODE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(bbcode, v)
39 #if defined(ZTS) && defined(COMPILE_DL_BBCODE)
40 ZEND_TSRMLS_CACHE_EXTERN()
43 #endif /* PHP_BBCODE_H */