Lines Matching refs:iter
304 struct Curl_hash_iterator *iter) in Curl_hash_start_iterate() argument
307 iter->hash = hash; in Curl_hash_start_iterate()
308 iter->slot_index = 0; in Curl_hash_start_iterate()
309 iter->current_element = NULL; in Curl_hash_start_iterate()
311 iter->init = ITERINIT; in Curl_hash_start_iterate()
316 Curl_hash_next_element(struct Curl_hash_iterator *iter) in Curl_hash_next_element() argument
319 DEBUGASSERT(iter->init == ITERINIT); in Curl_hash_next_element()
320 h = iter->hash; in Curl_hash_next_element()
325 if(iter->current_element) in Curl_hash_next_element()
326 iter->current_element = Curl_node_next(iter->current_element); in Curl_hash_next_element()
329 if(!iter->current_element) { in Curl_hash_next_element()
331 for(i = iter->slot_index; i < h->slots; i++) { in Curl_hash_next_element()
333 iter->current_element = Curl_llist_head(&h->table[i]); in Curl_hash_next_element()
334 iter->slot_index = i + 1; in Curl_hash_next_element()
340 if(iter->current_element) { in Curl_hash_next_element()
341 struct Curl_hash_element *he = Curl_node_elem(iter->current_element); in Curl_hash_next_element()
351 struct Curl_hash_iterator iter;
360 Curl_hash_start_iterate(h, &iter);
362 he = Curl_hash_next_element(&iter);
364 if(iter.slot_index != last_index) {
365 fprintf(stderr, "index %d:", iter.slot_index);
369 last_index = iter.slot_index;
377 he = Curl_hash_next_element(&iter);