summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r--Zend/zend_hash.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 7cc9e2fb2f..2c8a1997a7 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -33,12 +33,12 @@
#define HASH_DEL_KEY 0
#define HASH_DEL_INDEX 1
+typedef ulong (*hash_func_t)(char *arKey, uint nKeyLength);
typedef int (*compare_func_t)(const void *, const void *);
typedef void (*sort_func_t)(void *, size_t, register size_t, compare_func_t);
typedef void (*dtor_func_t)(void *pDest);
typedef int (*apply_func_t)(void *pDest);
typedef int (*apply_func_arg_t)(void *pDest, void *argument);
-typedef ulong (*hash_func_t)(char *arKey, uint nKeyLength);
typedef void (*copy_ctor_func_t)(void *pElement);
struct _hashtable;
@@ -57,10 +57,9 @@ typedef struct bucket {
typedef struct _hashtable {
uint nTableSize;
- uint nHashSizeIndex;
+ uint nTableMask;
uint nNumOfElements;
ulong nNextFreeElement;
- hash_func_t pHashFunction;
Bucket *pInternalPointer; /* Used for element traversal */
Bucket *pListHead;
Bucket *pListTail;