26 #ifndef CURL_DISABLE_LIBCURL_OPTION 28 #define ENABLE_CURLX_PRINTF 49 "/********* Sample code generated by the curl command line tool **********",
50 " * All curl_easy_setopt() options are documented at:",
51 " * https://curl.haxx.se/libcurl/c/curl_easy_setopt.html",
52 " ************************************************************************/",
53 "#include <curl/curl.h>",
55 "int main(int argc, char *argv[])",
65 "/* Here is a list of options the curl code used that cannot get generated",
66 " as source easily. You may select to either not use them or implement",
75 "/**** End of sample code ****/",
89 easysrc_toohard = NULL;
126 #define CHKRET(v) do {CURLcode ret = (v); if(ret) return ret;} WHILE_FALSE 131 "hnd = curl_easy_init();"));
138 if(easysrc_toohard) {
144 for(i = 0; ((c =
srchard[
i]) != NULL); i++)
147 if(easysrc_toohard) {
148 for(ptr = easysrc_toohard->
first; ptr; ptr = ptr->
next)
155 easysrc_toohard = NULL;
179 bool fopened =
FALSE;
187 warnf(config,
"Failed to open %s to write libcurl code!\n", o);
192 for(i = 0; ((c =
srchead[
i]) != NULL); i++)
197 for(ptr = easysrc_decl->
first; ptr; ptr = ptr->
next)
205 for(ptr = easysrc_data->
first; ptr; ptr = ptr->
next)
211 for(ptr = easysrc_code->
first; ptr; ptr = ptr->
next) {
222 for(ptr = easysrc_clean->
first; ptr; ptr = ptr->
next)
226 for(i = 0; ((c =
srcend[
i]) != NULL); i++)
struct slist_wc * slist_wc_append(struct slist_wc *list, const char *data)
CURL_EXTERN void curl_free(void *p)
UNITTEST_START char * ptr
void slist_wc_free_all(struct slist_wc *list)
struct curl_slist * first