diff options
| author | Zeev Suraski <zeev@php.net> | 1999-07-09 20:43:59 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-07-09 20:43:59 +0000 |
| commit | 2a6da7814c27a7e851c8c7a883441ae9d34cd95c (patch) | |
| tree | 5c925cb62a111269c85ace3551b928356b1ca341 /Zend/zend_compile.h | |
| parent | 6ec1acbe32e4a1a9a94a0e623816d25809ce9a2b (diff) | |
| download | php-git-2a6da7814c27a7e851c8c7a883441ae9d34cd95c.tar.gz | |
Step 4:
Move to a 7-bit counter (not fully implemented yet)
Diffstat (limited to 'Zend/zend_compile.h')
| -rw-r--r-- | Zend/zend_compile.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 806ce24fac..1ed2b1b644 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -545,11 +545,11 @@ int zendlex(znode *zendlval CLS_DC); #define ZEND_CTOR_CALL 1<<1 -/* Extended attributes for zval */ -#define ZEND_EA_IS_REF (0<<1L) -#define ZEND_EA_LOCKED (0<<2L) +#define PZVAL_IS_REF(z) ((z)->EA.is_ref) +#define PZVAL_IS_LOCKED(z) ((z)->EA.locks>0) + +#define PZVAL_LOCK(z) (z)->EA.locks++ +#define PZVAL_UNLOCK(z) (z)->EA.locks-- -#define PZVAL_IS_REF(z) ((z)->EA & ZEND_EA_IS_REF) -#define PZVAL_IS_LOCKED(z) ((z)->EA & ZEND_EA_LOCKED) #endif /* _COMPILE_H */ |
