summaryrefslogtreecommitdiff
path: root/src/tool_easysrc.h
diff options
context:
space:
mode:
authorDaniel Hwang <danielleehwang@gmail.com>2015-10-17 23:57:58 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-10-18 00:00:50 +0200
commit19cb0c4a88aaa388fbcba862c30514778ae2cf5a (patch)
tree44fd8395f4b242f17a4d6135127d248cc2eb9e06 /src/tool_easysrc.h
parente77b5b7453c1e8ccd7ec0816890d98e2f392e465 (diff)
downloadcurl-19cb0c4a88aaa388fbcba862c30514778ae2cf5a.tar.gz
tool: Generate easysrc with last cache linked-list
Using a last cache linked-list improves the performance of easysrc generation. Bug: https://github.com/bagder/curl/issues/444 Ref: https://github.com/bagder/curl/issues/429 Closes #452
Diffstat (limited to 'src/tool_easysrc.h')
-rw-r--r--src/tool_easysrc.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/tool_easysrc.h b/src/tool_easysrc.h
index 07a4b787e..45a61e88c 100644
--- a/src/tool_easysrc.h
+++ b/src/tool_easysrc.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2015, 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
@@ -26,18 +26,19 @@
/* global variable declarations, for easy-interface source code generation */
-extern struct curl_slist *easysrc_decl; /* Variable declarations */
-extern struct curl_slist *easysrc_data; /* Build slists, forms etc. */
-extern struct curl_slist *easysrc_code; /* Setopt calls etc. */
-extern struct curl_slist *easysrc_toohard; /* Unconvertible setopt */
-extern struct curl_slist *easysrc_clean; /* Clean up (reverse order) */
+extern struct slist_wc *easysrc_decl; /* Variable declarations */
+extern struct slist_wc *easysrc_data; /* Build slists, forms etc. */
+extern struct slist_wc *easysrc_code; /* Setopt calls etc. */
+extern struct slist_wc *easysrc_toohard; /* Unconvertible setopt */
+extern struct slist_wc *easysrc_clean; /* Clean up (reverse order) */
extern int easysrc_form_count; /* Number of curl_httppost variables */
extern int easysrc_slist_count; /* Number of curl_slist variables */
extern CURLcode easysrc_init(void);
-extern CURLcode easysrc_add(struct curl_slist **plist, const char *bupf);
-extern CURLcode easysrc_addf(struct curl_slist **plist, const char *fmt, ...);
+extern CURLcode easysrc_add(struct slist_wc **plist, const char *bupf);
+extern CURLcode easysrc_addf(struct slist_wc **plist,
+ const char *fmt, ...);
extern CURLcode easysrc_perform(void);
extern CURLcode easysrc_cleanup(void);