Lines Matching refs:e

43   struct dynhds_entry *e;  in entry_new()  local
48 e = calloc(1, sizeof(*e) + namelen + valuelen + 2); in entry_new()
49 if(!e) in entry_new()
51 e->name = p = ((char *)e) + sizeof(*e); in entry_new()
53 e->namelen = namelen; in entry_new()
54 e->value = p += namelen + 1; /* leave a \0 at the end of name */ in entry_new()
56 e->valuelen = valuelen; in entry_new()
58 Curl_strntolower(e->name, e->name, e->namelen); in entry_new()
59 return e; in entry_new()
63 entry_append(struct dynhds_entry *e, in entry_append() argument
67 size_t valuelen2 = e->valuelen + 1 + valuelen; in entry_append()
71 e2 = calloc(1, sizeof(*e) + e->namelen + valuelen2 + 2); in entry_append()
75 memcpy(p, e->name, e->namelen); in entry_append()
76 e2->namelen = e->namelen; in entry_append()
77 e2->value = p += e->namelen + 1; /* leave a \0 at the end of name */ in entry_append()
78 memcpy(p, e->value, e->valuelen); in entry_append()
79 p += e->valuelen; in entry_append()
86 static void entry_free(struct dynhds_entry *e) in entry_free() argument
88 free(e); in entry_free()
230 struct dynhds_entry *e, *e2; in Curl_dynhds_h1_add_line() local
241 e = dynhds->hds[dynhds->hds_len-1]; in Curl_dynhds_h1_add_line()
242 e2 = entry_append(e, line, line_len); in Curl_dynhds_h1_add_line()
246 entry_free(e); in Curl_dynhds_h1_add_line()
384 struct dynhds_entry *e = dynhds->hds[i]; in Curl_dynhds_to_nva() local
385 DEBUGASSERT(e); in Curl_dynhds_to_nva()
386 nva[i].name = (unsigned char *)e->name; in Curl_dynhds_to_nva()
387 nva[i].namelen = e->namelen; in Curl_dynhds_to_nva()
388 nva[i].value = (unsigned char *)e->value; in Curl_dynhds_to_nva()
389 nva[i].valuelen = e->valuelen; in Curl_dynhds_to_nva()