cvs: ZendEngine2(PHP_5_3) / zend_alloc.c zend_hash.h
| From: | Antony Dovgal | Date: | Tue, 15 Jan 2008 09:36:05 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_3) / zend_alloc.c zend_hash.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-6270@lists.php.net to get a copy of this message | ||
tony2001 Tue Jan 15 09:36:05 2008 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_alloc.c zend_hash.h
Log:
MFH: rename macros
patch by colder
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.144.2.3.2.43.2.7&r2=1.144.2.3.2.43.2.8&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.144.2.3.2.43.2.7 ZendEngine2/zend_alloc.c:1.144.2.3.2.43.2.8
--- ZendEngine2/zend_alloc.c:1.144.2.3.2.43.2.7 Mon Dec 31 07:17:04 2007
+++ ZendEngine2/zend_alloc.c Tue Jan 15 09:36:04 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.c,v 1.144.2.3.2.43.2.7 2007/12/31 07:17:04 sebastian Exp $ */
+/* $Id: zend_alloc.c,v 1.144.2.3.2.43.2.8 2008/01/15 09:36:04 tony2001 Exp $ */
#include "zend.h"
#include "zend_alloc.h"
@@ -389,7 +389,7 @@
#define ZEND_MM_NUM_BUCKETS (sizeof(size_t) << 3)
-#define ZEND_MM_CACHE 1
+#define ZEND_MM_CACHE 0
#define ZEND_MM_CACHE_SIZE (ZEND_MM_NUM_BUCKETS * 2 * 1024)
#ifndef ZEND_MM_CACHE_STAT
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_hash.h?r1=1.78.2.2.2.2.2.2&r2=1.78.2.2.2.2.2.3&diff_format=u
Index: ZendEngine2/zend_hash.h
diff -u ZendEngine2/zend_hash.h:1.78.2.2.2.2.2.2 ZendEngine2/zend_hash.h:1.78.2.2.2.2.2.3
--- ZendEngine2/zend_hash.h:1.78.2.2.2.2.2.2 Mon Dec 31 07:17:04 2007
+++ ZendEngine2/zend_hash.h Tue Jan 15 09:36:05 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_hash.h,v 1.78.2.2.2.2.2.2 2007/12/31 07:17:04 sebastian Exp $ */
+/* $Id: zend_hash.h,v 1.78.2.2.2.2.2.3 2008/01/15 09:36:05 tony2001 Exp $ */
#ifndef ZEND_HASH_H
#define ZEND_HASH_H
@@ -298,7 +298,7 @@
zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
-#define HANDLE_NUMERIC(key, length, func) { \
+#define ZEND_HANDLE_NUMERIC(key, length, func) { \
register const char *tmp=key; \
\
if (*tmp=='-') { \
@@ -336,34 +336,34 @@
static inline int zend_symtable_update(HashTable *ht, const char *arKey, uint nKeyLength, void
*pData, uint nDataSize, void **pDest) \
{
- HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
+ ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_update(ht, idx, pData, nDataSize, pDest));
return zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest);
}
static inline int zend_symtable_del(HashTable *ht, const char *arKey, uint nKeyLength)
{
- HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx))
+ ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_del(ht, idx))
return zend_hash_del(ht, arKey, nKeyLength);
}
static inline int zend_symtable_find(HashTable *ht, const char *arKey, uint nKeyLength, void
**pData)
{
- HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
+ ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_find(ht, idx, pData));
return zend_hash_find(ht, arKey, nKeyLength, pData);
}
static inline int zend_symtable_exists(HashTable *ht, const char *arKey, uint nKeyLength)
{
- HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
+ ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_index_exists(ht, idx));
return zend_hash_exists(ht, arKey, nKeyLength);
}
static inline int zend_symtable_update_current_key(HashTable *ht, const char *arKey, uint
nKeyLength)
{
- HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key(ht, HASH_KEY_IS_LONG, NULL, 0,
idx));
+ ZEND_HANDLE_NUMERIC(arKey, nKeyLength, zend_hash_update_current_key(ht, HASH_KEY_IS_LONG, NULL, 0,
idx));
return zend_hash_update_current_key(ht, HASH_KEY_IS_STRING, arKey, nKeyLength, 0);
}