Lines Matching refs:hds

96   dynhds->hds = NULL;  in Curl_dynhds_init()
106 if(dynhds->hds && dynhds->hds_len) { in Curl_dynhds_free()
108 DEBUGASSERT(dynhds->hds); in Curl_dynhds_free()
110 entry_free(dynhds->hds[i]); in Curl_dynhds_free()
113 Curl_safefree(dynhds->hds); in Curl_dynhds_free()
122 DEBUGASSERT(dynhds->hds); in Curl_dynhds_reset()
124 entry_free(dynhds->hds[i]); in Curl_dynhds_reset()
125 dynhds->hds[i] = NULL; in Curl_dynhds_reset()
144 return (n < dynhds->hds_len) ? dynhds->hds[n] : NULL; in Curl_dynhds_getn()
152 if(dynhds->hds[i]->namelen == namelen && in Curl_dynhds_get()
153 strncasecompare(dynhds->hds[i]->name, name, namelen)) { in Curl_dynhds_get()
154 return dynhds->hds[i]; in Curl_dynhds_get()
192 if(dynhds->hds) { in Curl_dynhds_add()
193 memcpy(nhds, dynhds->hds, in Curl_dynhds_add()
195 Curl_safefree(dynhds->hds); in Curl_dynhds_add()
197 dynhds->hds = nhds; in Curl_dynhds_add()
200 dynhds->hds[dynhds->hds_len++] = entry; in Curl_dynhds_add()
241 e = dynhds->hds[dynhds->hds_len-1]; in Curl_dynhds_h1_add_line()
245 dynhds->hds[dynhds->hds_len-1] = e2; in Curl_dynhds_h1_add_line()
299 if((namelen == dynhds->hds[i]->namelen) && in Curl_dynhds_count_name()
300 strncasecompare(name, dynhds->hds[i]->name, namelen)) in Curl_dynhds_count_name()
327 if((namelen == dynhds->hds[i]->namelen) && in Curl_dynhds_remove()
328 strncasecompare(name, dynhds->hds[i]->name, namelen)) { in Curl_dynhds_remove()
331 dynhds->strs_len -= (dynhds->hds[i]->namelen + in Curl_dynhds_remove()
332 dynhds->hds[i]->valuelen); in Curl_dynhds_remove()
333 entry_free(dynhds->hds[i]); in Curl_dynhds_remove()
336 memmove(&dynhds->hds[i], &dynhds->hds[i + 1], in Curl_dynhds_remove()
337 len * sizeof(dynhds->hds[i])); in Curl_dynhds_remove()
363 (int)dynhds->hds[i]->namelen, dynhds->hds[i]->name, in Curl_dynhds_h1_dprint()
364 (int)dynhds->hds[i]->valuelen, dynhds->hds[i]->value); in Curl_dynhds_h1_dprint()
384 struct dynhds_entry *e = dynhds->hds[i]; in Curl_dynhds_to_nva()