summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-02-13 13:22:02 +0000
committerAndi Gutmans <andi@php.net>2000-02-13 13:22:02 +0000
commitbb302a755c9d080bc90826bbdda1fd1adf5e3b3b (patch)
tree5fc5a3c159c6bbf6650f2f51d6a56ec68dec90e0 /Zend/zend_hash.h
parent920b7b2841232f270cf88b35ecd0a4b60fd733a0 (diff)
downloadphp-git-bb302a755c9d080bc90826bbdda1fd1adf5e3b3b.tar.gz
- Make startup a bit faster by changing some hash_update()'s and hash_add()'s
to hash_update_ptr()/hash_add_ptr()
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 8b85a24b67..f7dbe86a35 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -89,6 +89,8 @@ ZEND_API int zend_hash_add_or_update(HashTable *ht, char *arKey, uint nKeyLength
zend_hash_add_or_update(ht,arKey,nKeyLength,pData,nDataSize,pDest,HASH_ADD)
#define zend_hash_update_ptr(ht,arKey,nKeyLength,pData,nDataSize,pDest) \
zend_hash_add_or_update(ht,arKey,nKeyLength,pData,0,pDest,(HASH_UPDATE|HASH_ADD_PTR))
+#define zend_hash_add_ptr(ht,arKey,nKeyLength,pData,nDataSize,pDest) \
+ zend_hash_add_or_update(ht,arKey,nKeyLength,pData,nDataSize,pDest,(HASH_ADD|HASH_ADD_PTR))
ZEND_API int zend_hash_quick_add_or_update(HashTable *ht, char *arKey, uint nKeyLength, ulong h, void *pData, uint nDataSize, void **pDest,int flag);
#define zend_hash_quick_update(ht,arKey,nKeyLength,h,pData,nDataSize,pDest) \