diff options
author | Zeev Suraski <zeev@php.net> | 2000-12-22 12:49:51 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-12-22 12:49:51 +0000 |
commit | 36eaad252fc5fe292cd4f071f76e7879ce21130c (patch) | |
tree | 5b5f4c0f06122a3ac45c6414f3ab1d778027cc9c /Zend/zend_hash.h | |
parent | 0fcce4a77a4783bb2366d562d957da5a9249134f (diff) | |
download | php-git-36eaad252fc5fe292cd4f071f76e7879ce21130c.tar.gz |
Allow get_current_key() not to return the key itself, instead of a duplicate
Diffstat (limited to 'Zend/zend_hash.h')
-rw-r--r-- | Zend/zend_hash.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 85abe7ff61..2d2c6cd75a 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -146,7 +146,7 @@ ZEND_API ulong zend_hash_next_free_element(HashTable *ht); /* traversing */ ZEND_API int zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); ZEND_API int zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos); -ZEND_API int zend_hash_get_current_key_ex(HashTable *ht, char **str_index, ulong *str_length, ulong *num_index, HashPosition *pos); +ZEND_API int zend_hash_get_current_key_ex(HashTable *ht, char **str_index, ulong *str_length, ulong *num_index, zend_bool duplicate, HashPosition *pos); ZEND_API int zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); ZEND_API int zend_hash_get_current_data_ex(HashTable *ht, void **pData, HashPosition *pos); ZEND_API void zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); @@ -156,8 +156,8 @@ ZEND_API void zend_hash_internal_pointer_end_ex(HashTable *ht, HashPosition *pos zend_hash_move_forward_ex(ht, NULL) #define zend_hash_move_backwards(ht) \ zend_hash_move_backwards_ex(ht, NULL) -#define zend_hash_get_current_key(ht, str_index, num_index) \ - zend_hash_get_current_key_ex(ht, str_index, NULL, num_index, NULL) +#define zend_hash_get_current_key(ht, str_index, num_index, duplicate) \ + zend_hash_get_current_key_ex(ht, str_index, NULL, num_index, duplicate, NULL) #define zend_hash_get_current_key_type(ht) \ zend_hash_get_current_key_type_ex(ht, NULL) #define zend_hash_get_current_data(ht, pData) \ |