diff options
| author | Andrei Zmievski <andrei@php.net> | 2001-07-30 15:41:11 +0000 |
|---|---|---|
| committer | Andrei Zmievski <andrei@php.net> | 2001-07-30 15:41:11 +0000 |
| commit | 8fca87adb52eac356effd749f447eae7a805695a (patch) | |
| tree | 76ab0217546d04bd1730486115563ca6257542eb /ext/pcre/php_pcre.h | |
| parent | 33e059062b868bf35c30d34fa2b518c4bc0d7773 (diff) | |
| download | php-git-8fca87adb52eac356effd749f447eae7a805695a.tar.gz | |
Updated to match TSRM changes.
Diffstat (limited to 'ext/pcre/php_pcre.h')
| -rw-r--r-- | ext/pcre/php_pcre.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/ext/pcre/php_pcre.h b/ext/pcre/php_pcre.h index 0d00d09854..f566c263c9 100644 --- a/ext/pcre/php_pcre.h +++ b/ext/pcre/php_pcre.h @@ -54,25 +54,14 @@ typedef struct { #endif } pcre_cache_entry; -typedef struct { +ZEND_BEGIN_MODULE_GLOBALS(pcre) HashTable pcre_cache; -} php_pcre_globals; +ZEND_END_MODULE_GLOBALS(pcre) #ifdef ZTS -# define PCRE_LS_D php_pcre_globals *pcre_globals -# define PCRE_LS_DC , PCRE_LS_D -# define PCRE_LS_C pcre_globals -# define PCRE_LS_CC , PCRE_LS_C -# define PCRE_G(v) (pcre_globals->v) -# define PCRE_LS_FETCH() php_pcre_globals *pcre_globals = ts_resource(pcre_globals_id); +# define PCRE_G(v) TSRMG(pcre_globals_id, zend_pcre_globals *, v) #else -# define PCRE_LS_D -# define PCRE_LS_DC -# define PCRE_LS_C -# define PCRE_LS_CC # define PCRE_G(v) (pcre_globals.v) -# define PCRE_LS_FETCH() -extern ZEND_API php_pcre_globals pcre_globals; #endif #else |
