Lines Matching defs:new_key
1420 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value) {
1433 new_hash = bucket_hash(h, new_key);
1434 if (bucket_scan(h, new_hash, new_key) != IDX_NIL)
1440 e->b.key = new_key;
1447 int set_remove_and_put(Set *s, const void *old_key, const void *new_key) {
1460 new_hash = bucket_hash(s, new_key);
1461 if (bucket_scan(s, new_hash, new_key) != IDX_NIL)
1467 e->key = new_key;
1473 int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_key, void *value) {
1488 new_hash = bucket_hash(h, new_key);
1489 idx_new = bucket_scan(h, new_hash, new_key);
1502 e->b.key = new_key;