summaryrefslogtreecommitdiff
path: root/lib/llist.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-04-03 10:32:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-04-04 15:27:45 +0200
commite60fe20fdf94e829ba5fce33f7a9d6c281149f7d (patch)
treefbf6694a4d5eda73e885c8e6777abd663f73b53c /lib/llist.h
parenta68ca63d7313dcc266f92108b2694d43b0afeba7 (diff)
downloadcurl-e60fe20fdf94e829ba5fce33f7a9d6c281149f7d.tar.gz
llist: replace Curl_llist_alloc with Curl_llist_init
No longer allocate the curl_llist head struct for lists separately. Removes 17 (15%) tiny allocations in a normal "curl localhost" invoke. closes #1381
Diffstat (limited to 'lib/llist.h')
-rw-r--r--lib/llist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/llist.h b/lib/llist.h
index 39ff408ee..47935ad1f 100644
--- a/lib/llist.h
+++ b/lib/llist.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -43,7 +43,7 @@ struct curl_llist {
size_t size;
};
-struct curl_llist *Curl_llist_alloc(curl_llist_dtor);
+void Curl_llist_init(struct curl_llist *, curl_llist_dtor);
int Curl_llist_insert_next(struct curl_llist *, struct curl_llist_element *,
const void *);
int Curl_llist_remove(struct curl_llist *, struct curl_llist_element *,