- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathzend_globals_macros.h
73 lines (61 loc) · 2.77 KB
/
zend_globals_macros.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Andi Gutmans <andi@php.net> |
| Zeev Suraski <zeev@php.net> |
+----------------------------------------------------------------------+
*/
#ifndefZEND_GLOBALS_MACROS_H
#defineZEND_GLOBALS_MACROS_H
#include"zend_portability.h"
typedefstruct_zend_compiler_globalszend_compiler_globals;
typedefstruct_zend_executor_globalszend_executor_globals;
typedefstruct_zend_php_scanner_globalszend_php_scanner_globals;
typedefstruct_zend_ini_scanner_globalszend_ini_scanner_globals;
BEGIN_EXTERN_C()
/* Compiler */
#ifdefZTS
# defineCG(v) ZEND_TSRMG_FAST(compiler_globals_offset, zend_compiler_globals *, v)
#else
# defineCG(v) (compiler_globals.v)
externZEND_APIstruct_zend_compiler_globalscompiler_globals;
#endif
ZEND_APIintzendparse(void);
/* Executor */
#ifdefZTS
# defineEG(v) ZEND_TSRMG_FAST(executor_globals_offset, zend_executor_globals *, v)
#else
# defineEG(v) (executor_globals.v)
externZEND_APIzend_executor_globalsexecutor_globals;
#endif
/* Language Scanner */
#ifdefZTS
# defineLANG_SCNG(v) ZEND_TSRMG_FAST(language_scanner_globals_offset, zend_php_scanner_globals *, v)
externZEND_APIts_rsrc_idlanguage_scanner_globals_id;
externZEND_APIsize_tlanguage_scanner_globals_offset;
#else
# defineLANG_SCNG(v) (language_scanner_globals.v)
externZEND_APIzend_php_scanner_globalslanguage_scanner_globals;
#endif
/* INI Scanner */
#ifdefZTS
# defineINI_SCNG(v) ZEND_TSRMG_FAST(ini_scanner_globals_offset, zend_ini_scanner_globals *, v)
externZEND_APIts_rsrc_idini_scanner_globals_id;
externZEND_APIsize_tini_scanner_globals_offset;
#else
# defineINI_SCNG(v) (ini_scanner_globals.v)
externZEND_APIzend_ini_scanner_globalsini_scanner_globals;
#endif
END_EXTERN_C()
#endif/* ZEND_GLOBALS_MACROS_H */