Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Document what hash_si_ptr is
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonAndre committed Jul 24, 2016
1 parent 2c269c3 commit 5c6f2a0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions hash_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
+----------------------------------------------------------------------+
| Author: Oleg Grenrus <[email protected]> |
| 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 |
+----------------------------------------------------------------------+
*/

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5c6f2a0

Please sign in to comment.