-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_heka.h
59 lines (39 loc) · 1.1 KB
/
php_heka.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
57
58
#ifndef PHP_HEKA_H
#define PHP_HEKA_H 1
#include "kernel/globals.h"
#define PHP_HEKA_VERSION "0.0.1"
#define PHP_HEKA_EXTNAME "heka"
ZEND_BEGIN_MODULE_GLOBALS(heka)
/* Memory */
zephir_memory_entry *start_memory;
zephir_memory_entry *active_memory;
/* Virtual Symbol Tables */
zephir_symbol_table *active_symbol_table;
/* Function cache */
HashTable *function_cache;
/* Max recursion control */
unsigned int recursive_lock;
/* Global constants */
zval *global_true;
zval *global_false;
zval *global_null;
ZEND_END_MODULE_GLOBALS(heka)
#ifdef ZTS
#include "TSRM.h"
#endif
ZEND_EXTERN_MODULE_GLOBALS(heka)
#ifdef ZTS
#define ZEPHIR_GLOBAL(v) TSRMG(heka_globals_id, zend_heka_globals *, v)
#else
#define ZEPHIR_GLOBAL(v) (heka_globals.v)
#endif
#ifdef ZTS
#define ZEPHIR_VGLOBAL ((zend_heka_globals *) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(heka_globals_id)])
#else
#define ZEPHIR_VGLOBAL &(heka_globals)
#endif
#define zephir_globals heka_globals
#define zend_zephir_globals zend_heka_globals
extern zend_module_entry heka_module_entry;
#define phpext_heka_ptr &heka_module_entry
#endif