Lines Matching refs:ctx
26 typedef size_t (*hashmap_hash_fn)(const void *key, void *ctx);
27 typedef bool (*hashmap_equal_fn)(const void *key1, const void *key2, void *ctx);
38 void *ctx; member
46 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument
49 .ctx = (ctx), \
57 hashmap_equal_fn equal_fn, void *ctx);
60 void *ctx);
163 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
168 if (map->equal_fn(cur->key, (_key), map->ctx))
171 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
176 if (map->equal_fn(cur->key, (_key), map->ctx))