Back to index

php5  5.3.10
zend_globals_macros.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | Zend Engine                                                          |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 2.00 of the Zend license,     |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.zend.com/license/2_00.txt.                                |
00011    | If you did not receive a copy of the Zend license and are unable to  |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@zend.com so we can mail you a copy immediately.              |
00014    +----------------------------------------------------------------------+
00015    | Authors: Andi Gutmans <andi@zend.com>                                |
00016    |          Zeev Suraski <zeev@zend.com>                                |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: zend_globals_macros.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef ZEND_GLOBALS_MACROS_H
00023 #define ZEND_GLOBALS_MACROS_H
00024 
00025 typedef struct _zend_compiler_globals zend_compiler_globals;
00026 typedef struct _zend_executor_globals zend_executor_globals;
00027 typedef struct _zend_php_scanner_globals zend_php_scanner_globals;
00028 typedef struct _zend_ini_scanner_globals zend_ini_scanner_globals;
00029 
00030 BEGIN_EXTERN_C()
00031 
00032 /* Compiler */
00033 #ifdef ZTS
00034 # define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v)
00035 int zendparse(void *compiler_globals);
00036 #else
00037 # define CG(v) (compiler_globals.v)
00038 extern ZEND_API struct _zend_compiler_globals compiler_globals;
00039 int zendparse(void);
00040 #endif
00041 
00042 
00043 /* Executor */
00044 #ifdef ZTS
00045 # define EG(v) TSRMG(executor_globals_id, zend_executor_globals *, v)
00046 #else
00047 # define EG(v) (executor_globals.v)
00048 extern ZEND_API zend_executor_globals executor_globals;
00049 #endif
00050 
00051 /* Language Scanner */
00052 #ifdef ZTS
00053 # define LANG_SCNG(v) TSRMG(language_scanner_globals_id, zend_php_scanner_globals *, v)
00054 extern ZEND_API ts_rsrc_id language_scanner_globals_id;
00055 #else
00056 # define LANG_SCNG(v) (language_scanner_globals.v)
00057 extern ZEND_API zend_php_scanner_globals language_scanner_globals;
00058 #endif
00059 
00060 
00061 /* INI Scanner */
00062 #ifdef ZTS
00063 # define INI_SCNG(v) TSRMG(ini_scanner_globals_id, zend_ini_scanner_globals *, v)
00064 extern ZEND_API ts_rsrc_id ini_scanner_globals_id;
00065 #else
00066 # define INI_SCNG(v) (ini_scanner_globals.v)
00067 extern ZEND_API zend_ini_scanner_globals ini_scanner_globals;
00068 #endif
00069 
00070 END_EXTERN_C()
00071 
00072 /* For limited downwards source compatibility */
00073 #define CLS_FETCH()
00074 #define ELS_FETCH()
00075 #define ALS_FETCH()
00076 #define PLS_FETCH()
00077 #define SLS_FETCH()
00078 #define CLS_D
00079 #define ELS_D
00080 #define ALS_D
00081 #define PLS_D
00082 #define SLS_D
00083 #define CLS_DC
00084 #define ELS_DC
00085 #define ALS_DC
00086 #define PLS_DC
00087 #define SLS_DC
00088 #define CLS_C
00089 #define ELS_C
00090 #define ALS_C
00091 #define PLS_C
00092 #define SLS_C
00093 #define CLS_CC
00094 #define ELS_CC
00095 #define ALS_CC
00096 #define PLS_CC
00097 #define SLS_CC
00098 
00099 
00100 #endif /* ZEND_GLOBALS_MACROS_H */
00101 
00102 /*
00103  * Local variables:
00104  * tab-width: 4
00105  * c-basic-offset: 4
00106  * indent-tabs-mode: t
00107  * End:
00108  */