Lines Matching defs:iter

84     atf_map_citer_t iter;
89 iter = atf_map_find_c(&map, "K1");
90 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
91 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K1") == 0);
92 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V1") == 0);
94 iter = atf_map_find_c(&map, "K2");
95 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
96 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K2") == 0);
97 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V2") == 0);
127 atf_map_iter_t iter;
133 iter = atf_map_find(&map, "K0");
134 ATF_REQUIRE(atf_equal_map_iter_map_iter(iter, atf_map_end(&map)));
136 iter = atf_map_find(&map, "K1");
137 ATF_REQUIRE(!atf_equal_map_iter_map_iter(iter, atf_map_end(&map)));
138 ATF_REQUIRE(strcmp(atf_map_iter_key(iter), "K1") == 0);
139 ATF_REQUIRE(strcmp(atf_map_iter_data(iter), "V1") == 0);
140 strcpy(atf_map_iter_data(iter), "Z1");
142 iter = atf_map_find(&map, "K1");
143 ATF_REQUIRE(!atf_equal_map_iter_map_iter(iter, atf_map_end(&map)));
144 ATF_REQUIRE(strcmp(atf_map_iter_key(iter), "K1") == 0);
145 ATF_REQUIRE(strcmp(atf_map_iter_data(iter), "Z1") == 0);
147 iter = atf_map_find(&map, "K2");
148 ATF_REQUIRE(!atf_equal_map_iter_map_iter(iter, atf_map_end(&map)));
149 ATF_REQUIRE(strcmp(atf_map_iter_key(iter), "K2") == 0);
150 ATF_REQUIRE(strcmp(atf_map_iter_data(iter), "V2") == 0);
165 atf_map_citer_t iter;
171 iter = atf_map_find_c(&map, "K0");
172 ATF_REQUIRE(atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
174 iter = atf_map_find_c(&map, "K1");
175 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
176 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K1") == 0);
177 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V1") == 0);
179 iter = atf_map_find_c(&map, "K2");
180 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
181 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K2") == 0);
182 ATF_REQUIRE(strcmp(atf_map_citer_data(iter), "V2") == 0);
243 atf_map_citer_t iter;
257 iter = atf_map_find_c(&map, "K3");
258 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
259 ptr = atf_map_citer_data(iter);
263 iter = atf_map_find_c(&map, "K3");
264 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
265 ptr = atf_map_citer_data(iter);
283 atf_map_iter_t iter;
291 atf_map_for_each(iter, &map) {
307 atf_map_for_each(iter, &map) {
308 printf("Retrieved item: %d\n", *(int *)atf_map_iter_data(iter));
324 atf_map_citer_t iter;
332 atf_map_for_each_c(iter, &map) {
348 atf_map_for_each_c(iter, &map) {
350 *(const int *)atf_map_citer_data(iter));
371 atf_map_citer_t iter;
377 iter = atf_map_find_c(&map, "K1");
378 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
379 iter = atf_map_find_c(&map, "K2");
380 ATF_REQUIRE(atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
383 iter = atf_map_find_c(&map, "K1");
384 ATF_REQUIRE(!atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));
385 iter = atf_map_find_c(&map, "K2");
386 ATF_REQUIRE(atf_equal_map_citer_map_citer(iter, atf_map_end_c(&map)));