From 5c6f2a0fcae85c9d0de07291fd4d80a9bb527b0d Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sun, 17 Jul 2016 16:26:49 -0700 Subject: [PATCH] Document what hash_si_ptr is --- hash_ptr.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hash_ptr.h b/hash_ptr.h index e1ad2cd..393b04a 100644 --- a/hash_ptr.h +++ b/hash_ptr.h @@ -4,7 +4,8 @@ +----------------------------------------------------------------------+ | Author: Oleg Grenrus | | See CREDITS for contributors | - | This is like hash.h, but the key is always a zend_uintptr_t | + | This defines hash_si_ptr. | + | It is like hash_si, but the key is always a non-zero zend_uintptr_t | +----------------------------------------------------------------------+ */ @@ -78,13 +79,6 @@ int hash_si_ptr_insert (struct hash_si_ptr *h, const zend_uintptr_t key, uint32_ */ int hash_si_ptr_find (struct hash_si_ptr *h, const zend_uintptr_t key, uint32_t * value); -/** Travarses hash_si_ptr. - * Calls traverse_function on every item. Traverse function should not modify hash - * @param h Pointer to hash_si_ptr struct. - * @param traverse_function Function to call on every item of hash_si_ptr. - */ -void hash_si_ptr_traverse (struct hash_si_ptr *h, int (*traverse_function) (const zend_uintptr_t key, uint32_t value)); - /** Returns size of hash_si_ptr. * @param h Pointer to hash_si_ptr struct. * @return Size of hash_si_ptr.