Lines Matching refs:mem
65 memory *mem = (memory*) ctx; in grow_buffer() local
66 char *ptr = realloc(mem->buf, mem->size + realsize); in grow_buffer()
72 mem->buf = ptr; in grow_buffer()
73 memcpy(&(mem->buf[mem->size]), contents, realsize); in grow_buffer()
74 mem->size += realsize; in grow_buffer()
87 memory *mem = malloc(sizeof(memory)); in make_handle() local
88 mem->size = 0; in make_handle()
89 mem->buf = malloc(1); in make_handle()
91 curl_easy_setopt(handle, CURLOPT_WRITEDATA, mem); in make_handle()
92 curl_easy_setopt(handle, CURLOPT_PRIVATE, mem); in make_handle()
120 size_t follow_links(CURLM *multi_handle, memory *mem, char *url) in follow_links() argument
124 htmlDocPtr doc = htmlReadMemory(mem->buf, mem->size, url, NULL, opts); in follow_links()
201 memory *mem; in main() local
202 curl_easy_getinfo(handle, CURLINFO_PRIVATE, &mem); in main()
211 if(is_html(ctype) && mem->size > 100) { in main()
213 pending += follow_links(multi_handle, mem, url); in main()
227 free(mem->buf); in main()
228 free(mem); in main()