hash_cmp_callback_t *key_compare_cb;
};
+struct hash_iterate_context {
+ struct hash_table *table;
+ struct hash_node *next;
+ size_t pos;
+};
+
static int hash_resize(struct hash_table *table, int grow);
static int direct_cmp(const void *p1, const void *p2)
return table->nodes_count;
}
-struct hash_iterate_context {
- struct hash_table *table;
- struct hash_node *next;
- size_t pos;
-};
-
struct hash_iterate_context *hash_iterate_init(struct hash_table *table)
{
struct hash_iterate_context *ctx;