-
Notifications
You must be signed in to change notification settings - Fork 8
/
php_collection.h
56 lines (45 loc) · 1.71 KB
/
php_collection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
+----------------------------------------------------------------------+
| Collection Extension |
+----------------------------------------------------------------------+
| Copyright (c) 2016-2018 The Viest |
+----------------------------------------------------------------------+
| http://www.viest.me |
+----------------------------------------------------------------------+
| Author: viest <[email protected]> |
+----------------------------------------------------------------------+
*/
#ifndef PHP_COLLECTION_H
#define PHP_COLLECTION_H
extern zend_module_entry collection_module_entry;
#define phpext_collection_ptr &collection_module_entry
#define PHP_COLLECTION_VERSION "0.1.0"
#ifdef PHP_WIN32
# define PHP_COLLECTION_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_COLLECTION_API __attribute__ ((visibility("default")))
#else
# define PHP_COLLECTION_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#define COLLECTION_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(vtiful_collection_##module)(INIT_FUNC_ARGS_PASSTHRU)
#define COLLECTION_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(vtiful_collection_##module)
#if defined(ZTS) && defined(COMPILE_DL_COLLECTION)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
PHP_MINIT_FUNCTION(collection);
PHP_MSHUTDOWN_FUNCTION(collection);
PHP_RINIT_FUNCTION(collection);
PHP_RSHUTDOWN_FUNCTION(collection);
PHP_MINFO_FUNCTION(collection);
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/