-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp_aql.h
More file actions
43 lines (34 loc) · 1.05 KB
/
php_aql.h
File metadata and controls
43 lines (34 loc) · 1.05 KB
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
/*
+----------------------------------------------------------------------+
| AQL - Abstract Query Language |
+----------------------------------------------------------------------+
| Copyright (c) Edmond Dantes |
+----------------------------------------------------------------------+
*/
#ifndef PHP_AQL_H
#define PHP_AQL_H
extern zend_module_entry aql_module_entry;
#define phpext_aql_ptr &aql_module_entry
#define PHP_AQL_VERSION "0.1.0"
#ifdef PHP_WIN32
# define PHP_AQL_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_AQL_API __attribute__ ((visibility("default")))
#else
# define PHP_AQL_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
ZEND_BEGIN_MODULE_GLOBALS(aql)
zend_bool enabled;
ZEND_END_MODULE_GLOBALS(aql)
#ifdef ZTS
#define AQL_G(v) TSRMG(aql_globals_id, zend_aql_globals *, v)
#else
#define AQL_G(v) (aql_globals.v)
#endif
#if defined(ZTS) && defined(COMPILE_DL_AQL)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
#endif /* PHP_AQL_H */