Searched refs:HASHMAP_BASE (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/basic/ |
D | hashmap.h | 67 #define HASHMAP_BASE(h) \ macro 102 return (void*) _hashmap_free(HASHMAP_BASE(h), NULL, NULL); in hashmap_free() 105 return (void*) _hashmap_free(HASHMAP_BASE(h), NULL, NULL); in ordered_hashmap_free() 109 return (void*) _hashmap_free(HASHMAP_BASE(h), NULL, free); in hashmap_free_free() 112 return (void*) _hashmap_free(HASHMAP_BASE(h), NULL, free); in ordered_hashmap_free_free() 116 return (void*) _hashmap_free(HASHMAP_BASE(h), free, NULL); in hashmap_free_free_key() 119 return (void*) _hashmap_free(HASHMAP_BASE(h), free, NULL); in ordered_hashmap_free_free_key() 123 return (void*) _hashmap_free(HASHMAP_BASE(h), free, free); in hashmap_free_free_free() 126 return (void*) _hashmap_free(HASHMAP_BASE(h), free, free); in ordered_hashmap_free_free_free() 133 #define hashmap_copy(h) ((Hashmap*) _hashmap_copy(HASHMAP_BASE(h) HASHMAP_DEBUG_SRC_ARGS)) [all …]
|
D | set.h | 20 return (Set*) _hashmap_free(HASHMAP_BASE(s), NULL, NULL); in set_free() 24 return (Set*) _hashmap_free(HASHMAP_BASE(s), free, NULL); in set_free_free() 29 #define set_copy(s) ((Set*) _hashmap_copy(HASHMAP_BASE(s) HASHMAP_DEBUG_SRC_ARGS)) 38 return _hashmap_get(HASHMAP_BASE((Set *) s), key); in set_get() 43 return _hashmap_contains(HASHMAP_BASE((Set *) s), key); in set_contains() 47 return _hashmap_remove(HASHMAP_BASE(s), key); in set_remove() 57 return _hashmap_reserve(HASHMAP_BASE(h), entries_add); in set_reserve() 61 return _hashmap_move(HASHMAP_BASE(s), HASHMAP_BASE(other)); in set_move() 65 return _hashmap_move_one(HASHMAP_BASE(s), HASHMAP_BASE(other), key); in set_move_one() 69 return _hashmap_size(HASHMAP_BASE((Set *) s)); in set_size() [all …]
|
D | hashmap.c | 348 #define bucket_hash(h, p) base_bucket_hash(HASHMAP_BASE(h), p) 353 #define hashmap_set_dirty(h) base_set_dirty(HASHMAP_BASE(h)) 380 return (struct plain_hashmap_entry*) bucket_at(HASHMAP_BASE(h), idx); in plain_bucket_at() 384 return (struct ordered_hashmap_entry*) bucket_at(HASHMAP_BASE(h), idx); in ordered_bucket_at() 388 return (struct set_entry*) bucket_at(HASHMAP_BASE(h), idx); in set_bucket_at() 574 #define remove_entry(h, idx) base_remove_entry(HASHMAP_BASE(h), idx) 602 idx = prev_idx(HASHMAP_BASE(h), idx); in hashmap_iterate_in_insertion_order() 1058 hashmap_base_put_boldly(HASHMAP_BASE(h), idx, swap, may_resize) 1227 #define bucket_scan(h, idx, key) base_bucket_scan(HASHMAP_BASE(h), idx, key) 1504 old_key = bucket_at(HASHMAP_BASE(h), idx_old)->key; in hashmap_remove_and_replace() [all …]
|
D | ordered-set.h | 74 return _hashmap_get_strv(HASHMAP_BASE((OrderedHashmap*) s)); in ordered_set_get_strv()
|