minor name changes to make more sense

This commit is contained in:
Nils O. Selåsdal
2013-12-01 21:12:18 +01:00
parent 2ac412917a
commit 96934d7cf7
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -83,7 +83,7 @@ static inline struct UHNode *uc_htable_first_bucket(const struct UHTable *table,
* Get the next node in the bucket.
* @return next node or NULL
*/
static inline struct UHNode *uc_htable_next_bucket(const struct UHNode *node)
static inline struct UHNode *uc_htable_next_in_bucket(const struct UHNode *node)
{
return node->next;
}
@@ -112,7 +112,7 @@ static inline struct UHNode *uc_htable_next_hash(const struct UHNode *node)
//internal helper
struct UHNode *uc_htable_iter_hlp(struct UHTable *table, size_t bucket);
struct UHNode *uc_htable_iter_hlp(struct UHTable *table, size_t start_bucket);
/** Get the first node in the hash table
*
@@ -151,7 +151,7 @@ void uc_htable_swap(struct UHTable *a, struct UHTable *b);
#define UC_HTABLE_FOREACH_BUCKET(table, node_iter, hash)\
for ((node_iter) = uc_htable_first_bucket((table), (hash));\
(node_iter) != NULL;\
(node_iter) = uc_htable_next_bucket((node_iter)))
(node_iter) = uc_htable_next_in_bucket((node_iter)))
/**
* Iterate over all nodes that has the given hash.