Lines Matching refs:oldk
55 const void *oldk, *k = (const void *)(long)i; in test_hashmap_generic() local
58 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
66 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
67 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
68 "unexpected k/v: %p=%p\n", oldk, oldv)) in test_hashmap_generic()
107 const void *oldk, *k = (const void *)(long)i; in test_hashmap_generic() local
116 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
118 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
165 const void *oldk, *k; in test_hashmap_generic() local
174 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
178 if (CHECK(oldk != k || oldv != v, "check_old", in test_hashmap_generic()
180 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
182 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
184 (long)oldk, (long)oldv)) in test_hashmap_generic()
201 const void *oldk, *k; in test_hashmap_generic() local
210 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
214 if (CHECK(oldk != k || oldv != v, "elem_check", in test_hashmap_generic()
216 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
218 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()