Loading src/main.c +75 −62 Original line number Diff line number Diff line Loading @@ -19,8 +19,14 @@ * KIND, either express or implied. * ***************************************************************************/ #include <curl/curl.h> #include "setup.h" /* ** system headers */ #include <stdio.h> #include <stdlib.h> #include <string.h> Loading @@ -36,25 +42,6 @@ # endif #endif #include <curl/curl.h> #include "urlglob.h" #include "writeout.h" #include "getpass.h" #include "homedir.h" #include "curlutil.h" #ifdef USE_MANUAL #include "hugehelp.h" #endif #ifdef USE_ENVIRONMENT #include "writeenv.h" #endif #include "rawstr.h" #include "xattr.h" #define CURLseparator "--_curl_--" #ifdef NETWARE # ifdef __NOVELL_LIBC__ # include <screen.h> Loading @@ -64,9 +51,7 @@ # endif #endif #include "version.h" #ifdef HAVE_IO_H /* typical win32 habit */ #ifdef HAVE_IO_H # include <io.h> #endif Loading @@ -80,13 +65,10 @@ #ifdef HAVE_UTIME_H # include <utime.h> #else #ifdef HAVE_SYS_UTIME_H #elif defined(HAVE_SYS_UTIME_H) # include <sys/utime.h> #endif #endif /* HAVE_UTIME_H */ #ifdef HAVE_LIMITS_H # include <limits.h> #endif Loading @@ -98,13 +80,16 @@ #endif #ifdef HAVE_LOCALE_H #include <locale.h> /* for setlocale() */ # include <locale.h> #endif #define ENABLE_CURLX_PRINTF /* make the curlx header define all printf() functions to use the curlx_* versions instead */ #include "curlx.h" /* header from the libcurl directory */ #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif #ifdef HAVE_NETINET_TCP_H # include <netinet/tcp.h> #endif #if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV) # include <iconv.h> Loading @@ -114,14 +99,49 @@ # endif #endif /* CURL_DOES_CONVERSIONS && HAVE_ICONV */ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> /* for IPPROTO_TCP */ #ifdef MSDOS # include <dos.h> #endif #ifdef HAVE_NETINET_TCP_H #include <netinet/tcp.h> /* for TCP_KEEPIDLE, TCP_KEEPINTVL */ #if defined(USE_WIN32_LARGE_FILES) || defined(USE_WIN32_SMALL_FILES) # include <io.h> # include <sys/types.h> # include <sys/stat.h> #endif #ifdef WIN32 # include <direct.h> #endif /* ** src subdirectory headers */ #include "urlglob.h" #include "writeout.h" #include "getpass.h" #include "homedir.h" #include "curlutil.h" #include "os-specific.h" #include "version.h" #include "xattr.h" #ifdef USE_MANUAL # include "hugehelp.h" #endif #ifdef USE_ENVIRONMENT # include "writeenv.h" #endif /* ** libcurl subdirectory headers */ #include "rawstr.h" #define ENABLE_CURLX_PRINTF /* make the curlx header define all printf() functions to use the curlx_* versions instead */ #include "curlx.h" /* The last #include file should be: */ #ifdef CURLDEBUG Loading Loading @@ -189,8 +209,6 @@ static char *sanitize_dos_name(char *); #ifdef MSDOS #define USE_WATT32 #include <dos.h> #ifdef DJGPP /* we want to glob our own argv[] */ char **__crt0_glob_function (char *arg) Loading @@ -213,6 +231,8 @@ char **__crt0_glob_function (char *arg) #define STDERR_FILENO fileno(stderr) #endif #define CURLseparator "--_curl_--" #define CURL_PROGRESS_STATS 0 /* default progress display */ #define CURL_PROGRESS_BAR 1 Loading @@ -231,9 +251,6 @@ typedef enum { */ #ifdef USE_WIN32_LARGE_FILES # include <io.h> # include <sys/types.h> # include <sys/stat.h> # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) # define fstat(fdes,stp) _fstati64(fdes, stp) # define stat(fname,stp) _stati64(fname, stp) Loading @@ -246,9 +263,6 @@ typedef enum { */ #ifdef USE_WIN32_SMALL_FILES # include <io.h> # include <sys/types.h> # include <sys/stat.h> # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) # define fstat(fdes,stp) _fstat(fdes, stp) # define stat(fname,stp) _stat(fname, stp) Loading @@ -265,7 +279,6 @@ typedef enum { #endif #ifdef WIN32 # include <direct.h> # define mkdir(x,y) (mkdir)(x) # undef PATH_MAX # define PATH_MAX MAX_PATH Loading Loading
src/main.c +75 −62 Original line number Diff line number Diff line Loading @@ -19,8 +19,14 @@ * KIND, either express or implied. * ***************************************************************************/ #include <curl/curl.h> #include "setup.h" /* ** system headers */ #include <stdio.h> #include <stdlib.h> #include <string.h> Loading @@ -36,25 +42,6 @@ # endif #endif #include <curl/curl.h> #include "urlglob.h" #include "writeout.h" #include "getpass.h" #include "homedir.h" #include "curlutil.h" #ifdef USE_MANUAL #include "hugehelp.h" #endif #ifdef USE_ENVIRONMENT #include "writeenv.h" #endif #include "rawstr.h" #include "xattr.h" #define CURLseparator "--_curl_--" #ifdef NETWARE # ifdef __NOVELL_LIBC__ # include <screen.h> Loading @@ -64,9 +51,7 @@ # endif #endif #include "version.h" #ifdef HAVE_IO_H /* typical win32 habit */ #ifdef HAVE_IO_H # include <io.h> #endif Loading @@ -80,13 +65,10 @@ #ifdef HAVE_UTIME_H # include <utime.h> #else #ifdef HAVE_SYS_UTIME_H #elif defined(HAVE_SYS_UTIME_H) # include <sys/utime.h> #endif #endif /* HAVE_UTIME_H */ #ifdef HAVE_LIMITS_H # include <limits.h> #endif Loading @@ -98,13 +80,16 @@ #endif #ifdef HAVE_LOCALE_H #include <locale.h> /* for setlocale() */ # include <locale.h> #endif #define ENABLE_CURLX_PRINTF /* make the curlx header define all printf() functions to use the curlx_* versions instead */ #include "curlx.h" /* header from the libcurl directory */ #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif #ifdef HAVE_NETINET_TCP_H # include <netinet/tcp.h> #endif #if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV) # include <iconv.h> Loading @@ -114,14 +99,49 @@ # endif #endif /* CURL_DOES_CONVERSIONS && HAVE_ICONV */ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> /* for IPPROTO_TCP */ #ifdef MSDOS # include <dos.h> #endif #ifdef HAVE_NETINET_TCP_H #include <netinet/tcp.h> /* for TCP_KEEPIDLE, TCP_KEEPINTVL */ #if defined(USE_WIN32_LARGE_FILES) || defined(USE_WIN32_SMALL_FILES) # include <io.h> # include <sys/types.h> # include <sys/stat.h> #endif #ifdef WIN32 # include <direct.h> #endif /* ** src subdirectory headers */ #include "urlglob.h" #include "writeout.h" #include "getpass.h" #include "homedir.h" #include "curlutil.h" #include "os-specific.h" #include "version.h" #include "xattr.h" #ifdef USE_MANUAL # include "hugehelp.h" #endif #ifdef USE_ENVIRONMENT # include "writeenv.h" #endif /* ** libcurl subdirectory headers */ #include "rawstr.h" #define ENABLE_CURLX_PRINTF /* make the curlx header define all printf() functions to use the curlx_* versions instead */ #include "curlx.h" /* The last #include file should be: */ #ifdef CURLDEBUG Loading Loading @@ -189,8 +209,6 @@ static char *sanitize_dos_name(char *); #ifdef MSDOS #define USE_WATT32 #include <dos.h> #ifdef DJGPP /* we want to glob our own argv[] */ char **__crt0_glob_function (char *arg) Loading @@ -213,6 +231,8 @@ char **__crt0_glob_function (char *arg) #define STDERR_FILENO fileno(stderr) #endif #define CURLseparator "--_curl_--" #define CURL_PROGRESS_STATS 0 /* default progress display */ #define CURL_PROGRESS_BAR 1 Loading @@ -231,9 +251,6 @@ typedef enum { */ #ifdef USE_WIN32_LARGE_FILES # include <io.h> # include <sys/types.h> # include <sys/stat.h> # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) # define fstat(fdes,stp) _fstati64(fdes, stp) # define stat(fname,stp) _stati64(fname, stp) Loading @@ -246,9 +263,6 @@ typedef enum { */ #ifdef USE_WIN32_SMALL_FILES # include <io.h> # include <sys/types.h> # include <sys/stat.h> # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) # define fstat(fdes,stp) _fstat(fdes, stp) # define stat(fname,stp) _stat(fname, stp) Loading @@ -265,7 +279,6 @@ typedef enum { #endif #ifdef WIN32 # include <direct.h> # define mkdir(x,y) (mkdir)(x) # undef PATH_MAX # define PATH_MAX MAX_PATH Loading