Lines Matching refs:map

37         pa_hashmap* map;
49 map = pa_hashmap_new(int_trivial_hash_func, int_compare_func);
51 if ((put_ret = pa_hashmap_put(map, &entry.key, &entry)) != 0) {
55 if ((size_ret = pa_hashmap_size(map)) != 1) {
59 if ((get_ret = pa_hashmap_get(map, &lookup_key)) != &entry) {
63 if ((put_ret = pa_hashmap_put(map, &entry.key, &entry)) == 0) {
67 if ((size_ret = pa_hashmap_size(map)) != 1) {
71 if ((get_ret = pa_hashmap_remove(map, &lookup_key)) != &entry) {
75 if ((size_ret = pa_hashmap_size(map)) != 0) {
79 pa_hashmap_free(map);
84 * from the map.*/
87 pa_hashmap* map;
96 map = pa_hashmap_new(int_trivial_hash_func, int_compare_func);
99 pa_hashmap_put(map, &entries[i].key, &entries[i]);
102 if ((size = pa_hashmap_size(map)) != 1000) {
106 pa_hashmap_remove_all(map);
108 if ((size = pa_hashmap_size(map)) != 0) {
112 pa_hashmap_free(map);
120 pa_hashmap* map;
124 map = pa_hashmap_new(int_trivial_hash_func, int_compare_func);
136 if ((put_ret = pa_hashmap_put(map, &entries[i].key, &entries[i])) != 0) {
137 ck_abort_msg("Unexpected failure putting k=%d v=%d into the map", entries[i].key, entries[i].value);
140 if ((size_ret = pa_hashmap_size(map)) != i + 1) {
152 v = (struct int_entry*) pa_hashmap_remove(map, k);
160 if ((size_ret = pa_hashmap_size(map)) != 1000 - i - 1) {
165 pa_hashmap_free(map);
172 pa_hashmap* map;
183 map = pa_hashmap_new(int_trivial_hash_func, int_compare_func);
186 if (pa_hashmap_put(map, &(entries[i].key), &(entries[i])) != 0) {
187 ck_abort_msg("Unexpected failure putting k=%d v=%d into the map", entries[i].key, entries[i].value);
192 PA_HASHMAP_FOREACH (v, map, state) {
200 PA_HASHMAP_FOREACH_BACKWARDS (v, map, state) {
209 pa_hashmap_remove(map, &(entries[i].key));
212 PA_HASHMAP_FOREACH(v, map, state) {
213 ck_abort_msg("Iteration over empty map returned entries");
218 if(pa_hashmap_put(map, &(entries[0].key), &(entries[0])) != 0) {
219 ck_abort_msg("Unexpected failure putting k=%d v=%d into the map", entries[0].key, entries[0].value);
223 PA_HASHMAP_FOREACH(v, map, state) {
233 pa_hashmap_free(map);