• Home
  • Raw
  • Download

Lines Matching refs:oldv

67 		void *oldv, *v = (void *)(long)(1024 + i);  in test_hashmap_generic()  local
69 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
76 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
77 if (CHECK(oldk != NULL || oldv != NULL, in test_hashmap_generic()
78 "unexpected k/v: %p=%p\n", oldk, oldv)) in test_hashmap_generic()
86 if (CHECK(!hashmap__find(map, k, &oldv), in test_hashmap_generic()
89 if (CHECK(oldv != v, "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
115 void *oldv, *v = (void *)(long)(256 + i); in test_hashmap_generic() local
122 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
124 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
129 if (CHECK(!hashmap__find(map, k, &oldv), in test_hashmap_generic()
132 if (CHECK(oldv != v, "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
168 void *oldv, *v; in test_hashmap_generic() local
176 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), in test_hashmap_generic()
180 if (CHECK(oldk != k || oldv != v, in test_hashmap_generic()
182 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
184 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), in test_hashmap_generic()
186 (long)oldk, (long)oldv)) in test_hashmap_generic()
203 void *oldv, *v; in test_hashmap_generic() local
211 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), in test_hashmap_generic()
215 if (CHECK(oldk != k || oldv != v, in test_hashmap_generic()
217 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
219 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), in test_hashmap_generic()