summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_locks.h
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-08-31 21:47:26 +0000
committerSterling Hughes <sterling@php.net>2001-08-31 21:47:26 +0000
commit69c7346f0efe129b066c07377e0090ad03513471 (patch)
treea4fd0e84d5f1dbec8b230a211f31a87f1119ed40 /Zend/zend_execute_locks.h
parentf7e7b42d4b0f3ce7c33d02cb58f8a104dfaa082c (diff)
downloadphp-git-69c7346f0efe129b066c07377e0090ad03513471.tar.gz
MFZE1
Diffstat (limited to 'Zend/zend_execute_locks.h')
-rw-r--r--Zend/zend_execute_locks.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/zend_execute_locks.h b/Zend/zend_execute_locks.h
index b0ff6308c0..88381268a2 100644
--- a/Zend/zend_execute_locks.h
+++ b/Zend/zend_execute_locks.h
@@ -5,18 +5,18 @@
static inline void zend_pzval_lock_func(zval *z)
{
- ((z)->refcount++);
+ z->refcount++;
}
#define PZVAL_UNLOCK(z) zend_pzval_unlock_func(z TSRMLS_CC)
static inline void zend_pzval_unlock_func(zval *z TSRMLS_DC)
{
- ((z)->refcount--);
- if (!(z)->refcount) {
- (z)->refcount = 1;
- (z)->is_ref = 0;
- EG(garbage)[EG(garbage_ptr)++] = (z);
+ z->refcount--;
+ if (!z->refcount) {
+ z->refcount = 1;
+ z->is_ref = 0;
+ EG(garbage)[EG(garbage_ptr)++] = z;
}
}