Loading src/main.c +4 −19 Original line number Diff line number Diff line Loading @@ -4188,15 +4188,9 @@ static CURLcode _my_setopt(CURL *curl, bool str, struct Configurable *config, static const char * const srchead[]={ "/********* Sample code generated by the curl command line tool **********", " * Add error code checking where appropriate!", " * Compile this with a suitable header include path. Then link with ", " * libcurl.", " * If you use any *_LARGE options, make sure your compiler figure", " * out the correct size for the curl_off_t variable.", " * Read the details for all curl_easy_setopt() options online on:", " * http://curlm.haxx.se/libcurl/c/curl_easy_setopt.html", " * All curl_easy_setopt() options are documented at:", " * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html", " ************************************************************************/", "[m]", "#include <curl/curl.h>", "", "int main(int argc, char *argv[])", Loading Loading @@ -4225,17 +4219,8 @@ static void dumpeasycode(struct Configurable *config) int i; const char *c; for(i=0; (c = srchead[i]); i++) { if(!memcmp((char *)c, "[m]", 3)) { #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS > 32) fprintf(out, "#define _FILE_OFFSET_BITS %d " "/* for pre libcurl 7.19.0 curl_off_t magic */\n", _FILE_OFFSET_BITS); #endif } else for(i=0; (c = srchead[i]); i++) fprintf(out, "%s\n", c); } ptr = easycode; while(ptr) { Loading Loading
src/main.c +4 −19 Original line number Diff line number Diff line Loading @@ -4188,15 +4188,9 @@ static CURLcode _my_setopt(CURL *curl, bool str, struct Configurable *config, static const char * const srchead[]={ "/********* Sample code generated by the curl command line tool **********", " * Add error code checking where appropriate!", " * Compile this with a suitable header include path. Then link with ", " * libcurl.", " * If you use any *_LARGE options, make sure your compiler figure", " * out the correct size for the curl_off_t variable.", " * Read the details for all curl_easy_setopt() options online on:", " * http://curlm.haxx.se/libcurl/c/curl_easy_setopt.html", " * All curl_easy_setopt() options are documented at:", " * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html", " ************************************************************************/", "[m]", "#include <curl/curl.h>", "", "int main(int argc, char *argv[])", Loading Loading @@ -4225,17 +4219,8 @@ static void dumpeasycode(struct Configurable *config) int i; const char *c; for(i=0; (c = srchead[i]); i++) { if(!memcmp((char *)c, "[m]", 3)) { #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS > 32) fprintf(out, "#define _FILE_OFFSET_BITS %d " "/* for pre libcurl 7.19.0 curl_off_t magic */\n", _FILE_OFFSET_BITS); #endif } else for(i=0; (c = srchead[i]); i++) fprintf(out, "%s\n", c); } ptr = easycode; while(ptr) { Loading