diff options
author | Andrei Zmievski <andrei@php.net> | 1999-11-04 21:02:35 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 1999-11-04 21:02:35 +0000 |
commit | 3964c92f8b1c8949eddf654e3783aca11178a39b (patch) | |
tree | e79128fb12465f57e88298676ee341aef59e1a02 /Zend | |
parent | 0d5a9358f0cc00d6e5c1e82bc8bc15c06123a196 (diff) | |
download | php-git-3964c92f8b1c8949eddf654e3783aca11178a39b.tar.gz |
Made zend_hash_rehash() callable from outside.
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_hash.c | 3 | ||||
-rw-r--r-- | Zend/zend_hash.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 012aa78365..9eb2b6cf97 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -60,7 +60,6 @@ static uint PrimeNumbers[] = {5, 11, 19, 53, 107, 223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793, 2097397, 4194103, 8388857, 16777447, 33554201, 67108961, 134217487, 268435697, 536870683, 1073741621, 2147483399}; static int if_full_do_resize(HashTable *ht); -static int zend_hash_rehash(HashTable *ht); static uint nNumPrimeNumbers = sizeof(PrimeNumbers) / sizeof(ulong); @@ -655,7 +654,7 @@ static int if_full_do_resize(HashTable *ht) return SUCCESS; } -static int zend_hash_rehash(HashTable *ht) +ZEND_API int zend_hash_rehash(HashTable *ht) { Bucket *p; uint nIndex; diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index b0866f4455..782a59271c 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -161,6 +161,7 @@ ZEND_API int zend_hash_minmax(HashTable *ht, int (*compar) (const void *, const ZEND_API int zend_hash_num_elements(HashTable *ht); +ZEND_API int zend_hash_rehash(HashTable *ht); ZEND_API ulong hashpjw(char *arKey, uint nKeyLength); |