Lines Matching refs:he
95 struct curl_hash_element *he = malloc(sizeof(struct curl_hash_element)); in mk_hash_element() local
97 if(he) { in mk_hash_element()
103 he->key = dupkey; in mk_hash_element()
104 he->key_len = key_len; in mk_hash_element()
105 he->ptr = (void *) p; in mk_hash_element()
109 free(he); in mk_hash_element()
110 he = NULL; in mk_hash_element()
113 return he; in mk_hash_element()
126 struct curl_hash_element *he; in Curl_hash_add() local
131 he = (struct curl_hash_element *) le->ptr; in Curl_hash_add()
132 if(h->comp_func(he->key, he->key_len, key, key_len)) { in Curl_hash_add()
139 he = mk_hash_element(key, key_len, p); in Curl_hash_add()
140 if(he) { in Curl_hash_add()
141 if(Curl_llist_insert_next(l, l->tail, he)) { in Curl_hash_add()
151 free(he->key); in Curl_hash_add()
152 free(he); in Curl_hash_add()
162 struct curl_hash_element *he; in Curl_hash_delete() local
166 he = le->ptr; in Curl_hash_delete()
167 if(h->comp_func(he->key, he->key_len, key, key_len)) { in Curl_hash_delete()
180 struct curl_hash_element *he; in Curl_hash_pick() local
186 he = le->ptr; in Curl_hash_pick()
187 if(h->comp_func(he->key, he->key_len, key, key_len)) { in Curl_hash_pick()
188 return he->ptr; in Curl_hash_pick()
260 struct curl_hash_element *he = le->ptr; in Curl_hash_clean_with_criterium() local
263 if(comp == NULL || comp(user, he->ptr)) { in Curl_hash_clean_with_criterium()
325 struct curl_hash_element *he = iter->current_element->ptr; in Curl_hash_next_element() local
326 return he; in Curl_hash_next_element()
339 struct curl_hash_element *he;
349 he = Curl_hash_next_element(&iter);
350 while(he) {
360 func(he->ptr);
362 fprintf(stderr, " [%p]", (void *)he->ptr);
364 he = Curl_hash_next_element(&iter);