mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
first stone on using the unified globals accessor
This commit is contained in:
parent
43cdfd9a82
commit
0787cd60ed
4 changed files with 5 additions and 24 deletions
|
@ -82,12 +82,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pcre)
|
|||
ZEND_END_MODULE_GLOBALS(pcre)
|
||||
|
||||
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(pcre);
|
||||
|
||||
#ifdef ZTS
|
||||
# define PCRE_G(v) ZEND_TSRMG(pcre_globals_id, zend_pcre_globals *, v)
|
||||
#else
|
||||
# define PCRE_G(v) (pcre_globals.v)
|
||||
#endif
|
||||
#define PCRE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(pcre, v)
|
||||
|
||||
#else
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue