]> granicus.if.org Git - php/commitdiff
MFH: rename macros
authorAntony Dovgal <tony2001@php.net>
Tue, 15 Jan 2008 09:36:05 +0000 (09:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 15 Jan 2008 09:36:05 +0000 (09:36 +0000)
patch by colder

Zend/zend_alloc.c
Zend/zend_hash.h

index 4773311619318f96f08cadd8b44888b5d19c4925..79893085e5cf994ec7558e0cc90ca6f650b25a52 100644 (file)
@@ -389,7 +389,7 @@ typedef struct _zend_mm_free_block {
 
 #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
index d12bbfa4240bafe3d1512cb26d00a56a08e29ff6..8b3e4e806ec4a59b957cb01289558df272790177 100644 (file)
@@ -298,7 +298,7 @@ END_EXTERN_C()
        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 @@ END_EXTERN_C()
 
 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);
 }