mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Allow C++ extensions to use CG(), EG() ... (Caroline)
This commit is contained in:
parent
a6fa18ac7d
commit
a909db6d9c
@ -27,12 +27,12 @@ typedef struct _zend_executor_globals zend_executor_globals;
|
||||
typedef struct _zend_scanner_globals zend_scanner_globals;
|
||||
typedef struct _zend_unicode_globals zend_unicode_globals;
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
|
||||
/* Compiler */
|
||||
#ifdef ZTS
|
||||
# define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v)
|
||||
BEGIN_EXTERN_C()
|
||||
int zendparse(void *compiler_globals);
|
||||
END_EXTERN_C()
|
||||
#else
|
||||
# define CG(v) (compiler_globals.v)
|
||||
extern ZEND_API struct _zend_compiler_globals compiler_globals;
|
||||
@ -77,6 +77,7 @@ extern ZEND_API ts_rsrc_id unicode_globals_id;
|
||||
extern ZEND_API zend_unicode_globals unicode_globals;
|
||||
#endif
|
||||
|
||||
END_EXTERN_C()
|
||||
|
||||
/* For limited downwards source compatibility */
|
||||
#define CLS_FETCH()
|
||||
|
Loading…
Reference in New Issue
Block a user