minor name changes to make more sense
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user