summaryrefslogtreecommitdiff
path: root/ecp/src/ecp/htable/hashtable_itr.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/src/ecp/htable/hashtable_itr.h')
-rwxr-xr-xecp/src/ecp/htable/hashtable_itr.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/ecp/src/ecp/htable/hashtable_itr.h b/ecp/src/ecp/htable/hashtable_itr.h
index 47b29cc..04f462f 100755
--- a/ecp/src/ecp/htable/hashtable_itr.h
+++ b/ecp/src/ecp/htable/hashtable_itr.h
@@ -21,38 +21,29 @@ struct hashtable_itr
/* hashtable_iterator
*/
-int
-hashtable_iterator(struct hashtable_itr *, struct hashtable *h);
+void
+hashtable_iterator(struct hashtable_itr *i, struct hashtable *h);
/*****************************************************************************/
/* hashtable_iterator_key
* - return the key of the (key,value) pair at the current position */
-extern inline void *
-hashtable_iterator_key(struct hashtable_itr *i)
-{
- return i->e->k;
-}
+void *
+hashtable_iterator_key(struct hashtable_itr *i);
/*****************************************************************************/
/* hashtable_iterator_value
* - return the value of the (key,value) pair at the current position */
-extern inline void *
-hashtable_iterator_value(struct hashtable_itr *i)
-{
- return i->e->v;
-}
+void *
+hashtable_iterator_value(struct hashtable_itr *i);
/*****************************************************************************/
/* hashtable_iterator_entry
* - return the hash table entry at the current position */
-extern inline struct entry *
-hashtable_iterator_entry(struct hashtable_itr *i)
-{
- return i->e;
-}
+struct entry *
+hashtable_iterator_entry(struct hashtable_itr *i);
/*****************************************************************************/
/* advance - advance the iterator to the next element