]> Raphaƫl G. Git Repositories - bbcode/blob - php_bbcode.h
Remove old useless test
[bbcode] / php_bbcode.h
1
2 #ifndef PHP_BBCODE_H
3 #define PHP_BBCODE_H
4
5 extern zend_module_entry bbcode_module_entry;
6 #define phpext_bbcode_ptr &bbcode_module_entry
7
8 #define PHP_BBCODE_NAME "BBCode"
9 #define PHP_BBCODE_VERSION "2.0.0"
10
11 #ifdef PHP_WIN32
12 # define PHP_BBCODE_API __declspec(dllexport)
13 #elif defined(__GNUC__) && __GNUC__ >= 4
14 # define PHP_BBCODE_API __attribute__ ((visibility("default")))
15 #else
16 # define PHP_BBCODE_API
17 #endif
18
19 #ifdef ZTS
20 #include "TSRM.h"
21 #endif
22
23 /*
24 Declare any global variables you may need between the BEGIN
25 and END macros here:
26
27 ZEND_BEGIN_MODULE_GLOBALS(bbcode)
28 zend_long global_value;
29 char *global_string;
30 ZEND_END_MODULE_GLOBALS(bbcode)
31 */
32
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.
36 */
37 #define BBCODE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(bbcode, v)
38
39 #if defined(ZTS) && defined(COMPILE_DL_BBCODE)
40 ZEND_TSRMLS_CACHE_EXTERN()
41 #endif
42
43 #endif /* PHP_BBCODE_H */
44