Lines Matching refs:cur
138 #define hashmap__for_each_entry(map, cur, bkt) \ argument
140 for (cur = map->buckets[bkt]; cur; cur = cur->next)
150 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument
152 for (cur = map->buckets[bkt]; \
153 cur && ({tmp = cur->next; true; }); \
154 cur = tmp)
162 #define hashmap__for_each_key_entry(map, cur, _key) \ argument
163 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
166 cur; \
167 cur = cur->next) \
168 if (map->equal_fn(cur->key, (_key), map->ctx))
170 #define hashmap__for_each_key_entry_safe(map, cur, tmp, _key) \ argument
171 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
173 cur = map->buckets ? map->buckets[bkt] : NULL; }); \
174 cur && ({ tmp = cur->next; true; }); \
175 cur = tmp) \
176 if (map->equal_fn(cur->key, (_key), map->ctx))