summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.inc118
-rw-r--r--lib/README.hostip4
-rw-r--r--lib/amigaos.c4
-rw-r--r--lib/amigaos.h2
-rw-r--r--lib/asyn-ares.c30
-rw-r--r--lib/asyn-thread.c24
-rw-r--r--lib/asyn.h2
-rw-r--r--lib/axtls.c26
-rw-r--r--lib/axtls.h2
-rw-r--r--lib/base64.c12
-rw-r--r--lib/bundles.c18
-rw-r--r--lib/conncache.c20
-rw-r--r--lib/connect.c32
-rw-r--r--lib/connect.h6
-rw-r--r--lib/content_encoding.c10
-rw-r--r--lib/content_encoding.h2
-rw-r--r--lib/cookie.c20
-rw-r--r--lib/cookie.h2
-rw-r--r--lib/curl_addrinfo.c8
-rw-r--r--lib/curl_addrinfo.h2
-rw-r--r--lib/curl_darwinssl.c16
-rw-r--r--lib/curl_darwinssl.h2
-rw-r--r--lib/curl_fnmatch.c4
-rw-r--r--lib/curl_gethostname.c2
-rw-r--r--lib/curl_gssapi.c4
-rw-r--r--lib/curl_gssapi.h4
-rw-r--r--lib/curl_md4.h2
-rw-r--r--lib/curl_memrchr.c4
-rw-r--r--lib/curl_memrchr.h2
-rw-r--r--lib/curl_multibyte.c4
-rw-r--r--lib/curl_multibyte.h2
-rw-r--r--lib/curl_ntlm.c14
-rw-r--r--lib/curl_ntlm.h2
-rw-r--r--lib/curl_ntlm_core.c10
-rw-r--r--lib/curl_ntlm_core.h2
-rw-r--r--lib/curl_ntlm_msgs.c14
-rw-r--r--lib/curl_ntlm_msgs.h2
-rw-r--r--lib/curl_ntlm_wb.c14
-rw-r--r--lib/curl_ntlm_wb.h2
-rw-r--r--lib/curl_rand.c4
-rw-r--r--lib/curl_rtmp.c14
-rw-r--r--lib/curl_sasl.c8
-rw-r--r--lib/curl_sasl.h2
-rw-r--r--lib/curl_schannel.c28
-rw-r--r--lib/curl_schannel.h4
-rw-r--r--lib/curl_sspi.c4
-rw-r--r--lib/curl_sspi.h2
-rw-r--r--lib/curl_threads.c4
-rw-r--r--lib/curl_threads.h2
-rw-r--r--lib/curlx.h22
-rw-r--r--lib/cyassl.c22
-rw-r--r--lib/cyassl.h2
-rw-r--r--lib/dict.c18
-rw-r--r--lib/easy.c42
-rw-r--r--lib/escape.c12
-rw-r--r--lib/file.c28
-rw-r--r--lib/fileinfo.c8
-rw-r--r--lib/formdata.c12
-rw-r--r--lib/ftp.c64
-rw-r--r--lib/ftp.h2
-rw-r--r--lib/ftplistparser.c18
-rw-r--r--lib/ftplistparser.h2
-rw-r--r--lib/getenv.c4
-rw-r--r--lib/getinfo.c14
-rw-r--r--lib/gopher.c24
-rw-r--r--lib/gtls.c24
-rw-r--r--lib/gtls.h4
-rw-r--r--lib/hash.c8
-rw-r--r--lib/hash.h4
-rw-r--r--lib/hmac.c4
-rw-r--r--lib/hostasyn.c18
-rw-r--r--lib/hostcheck.c6
-rw-r--r--lib/hostip.c26
-rw-r--r--lib/hostip.h6
-rw-r--r--lib/hostip4.c20
-rw-r--r--lib/hostip6.c22
-rw-r--r--lib/hostsyn.c18
-rw-r--r--lib/http.c50
-rw-r--r--lib/http_chunks.c14
-rw-r--r--lib/http_digest.c20
-rw-r--r--lib/http_digest.h2
-rw-r--r--lib/http_negotiate.c14
-rw-r--r--lib/http_negotiate_sspi.c14
-rw-r--r--lib/http_proxy.c24
-rw-r--r--lib/idn_win32.c4
-rw-r--r--lib/if2ip.c10
-rw-r--r--lib/if2ip.h2
-rw-r--r--lib/imap.c44
-rw-r--r--lib/imap.h2
-rw-r--r--lib/inet_ntop.c4
-rw-r--r--lib/inet_ntop.h2
-rw-r--r--lib/inet_pton.c4
-rw-r--r--lib/inet_pton.h2
-rw-r--r--lib/krb4.c14
-rw-r--r--lib/krb5.c14
-rw-r--r--lib/ldap.c20
-rw-r--r--lib/llist.c6
-rw-r--r--lib/llist.h2
-rw-r--r--lib/md4.c4
-rw-r--r--lib/md5.c10
-rw-r--r--lib/memdebug.c6
-rw-r--r--lib/memdebug.h2
-rw-r--r--lib/mprintf.c4
-rw-r--r--lib/multi.c34
-rw-r--r--lib/netrc.c12
-rw-r--r--lib/non-ascii.c12
-rw-r--r--lib/non-ascii.h4
-rw-r--r--lib/nonblock.c4
-rw-r--r--lib/nss.c28
-rw-r--r--lib/nssg.h4
-rw-r--r--lib/nwlib.c4
-rw-r--r--lib/nwos.c2
-rw-r--r--lib/openldap.c12
-rw-r--r--lib/parsedate.c8
-rw-r--r--lib/pingpong.c20
-rw-r--r--lib/pingpong.h4
-rw-r--r--lib/polarssl.c22
-rw-r--r--lib/polarssl.h2
-rw-r--r--lib/pop3.c46
-rw-r--r--lib/progress.c8
-rw-r--r--lib/progress.h2
-rw-r--r--lib/qssl.c16
-rw-r--r--lib/qssl.h4
-rw-r--r--lib/rawstr.c4
-rw-r--r--lib/rtsp.c26
-rw-r--r--lib/security.c16
-rw-r--r--lib/select.c10
-rw-r--r--lib/select.h2
-rw-r--r--lib/sendf.c24
-rw-r--r--lib/sendf.h2
-rw-r--r--lib/setup.h4
-rw-r--r--lib/share.c10
-rw-r--r--lib/share.h6
-rw-r--r--lib/slist.c6
-rw-r--r--lib/smtp.c46
-rw-r--r--lib/smtp.h2
-rw-r--r--lib/sockaddr.h2
-rw-r--r--lib/socks.c18
-rw-r--r--lib/socks.h2
-rw-r--r--lib/socks_gssapi.c16
-rw-r--r--lib/socks_sspi.c18
-rw-r--r--lib/speedcheck.c10
-rw-r--r--lib/speedcheck.h4
-rw-r--r--lib/splay.c4
-rw-r--r--lib/splay.h2
-rw-r--r--lib/ssh.c50
-rw-r--r--lib/ssh.h2
-rw-r--r--lib/sslgen.c32
-rw-r--r--lib/sslgen.h2
-rw-r--r--lib/ssluse.c32
-rw-r--r--lib/ssluse.h4
-rw-r--r--lib/strdup.c4
-rw-r--r--lib/strdup.h2
-rw-r--r--lib/strequal.c4
-rw-r--r--lib/strerror.c6
-rw-r--r--lib/strerror.h2
-rw-r--r--lib/strtok.c4
-rw-r--r--lib/strtok.h2
-rw-r--r--lib/strtoofft.c4
-rw-r--r--lib/strtoofft.h2
-rw-r--r--lib/telnet.c26
-rw-r--r--lib/tftp.c28
-rw-r--r--lib/timeval.c2
-rw-r--r--lib/timeval.h2
-rw-r--r--lib/transfer.c52
-rw-r--r--lib/url.c90
-rw-r--r--lib/url.h2
-rw-r--r--lib/urldata.h38
-rw-r--r--lib/version.c6
-rw-r--r--lib/warnless.c4
-rw-r--r--lib/wildcard.c10
171 files changed, 1119 insertions, 1045 deletions
diff --git a/lib/Makefile.inc b/lib/Makefile.inc
index f97ef6d0e..115dd4487 100644
--- a/lib/Makefile.inc
+++ b/lib/Makefile.inc
@@ -27,20 +27,104 @@ CSOURCES = file.c timeval.c base64.c hostip.c progress.c formdata.c \
curl_multibyte.c curl_darwinssl.c hostcheck.c \
bundles.c conncache.c
-HHEADERS = arpa_telnet.h netrc.h file.h timeval.h qssl.h hostip.h \
- progress.h formdata.h cookie.h http.h sendf.h ftp.h url.h dict.h \
- if2ip.h speedcheck.h urldata.h curl_ldap.h ssluse.h escape.h telnet.h \
- getinfo.h strequal.h krb4.h memdebug.h http_chunks.h curl_rand.h \
- curl_fnmatch.h wildcard.h fileinfo.h ftplistparser.h strtok.h \
- connect.h llist.h hash.h content_encoding.h share.h curl_md4.h \
- curl_md5.h http_digest.h http_negotiate.h inet_pton.h amigaos.h \
- strtoofft.h strerror.h inet_ntop.h curlx.h curl_memory.h setup.h \
- transfer.h select.h easyif.h multiif.h parsedate.h sslgen.h gtls.h \
- tftp.h sockaddr.h splay.h strdup.h setup_once.h socks.h ssh.h nssg.h \
- curl_base64.h rawstr.h curl_addrinfo.h curl_sspi.h slist.h nonblock.h \
- curl_memrchr.h imap.h pop3.h smtp.h pingpong.h rtsp.h curl_threads.h \
- warnless.h curl_hmac.h polarssl.h curl_rtmp.h curl_gethostname.h \
- gopher.h axtls.h cyassl.h http_proxy.h non-ascii.h asyn.h curl_ntlm.h \
- curl_gssapi.h curl_ntlm_wb.h curl_ntlm_core.h curl_ntlm_msgs.h \
- curl_sasl.h curl_schannel.h curl_multibyte.h curl_darwinssl.h \
- hostcheck.h bundles.h conncache.h
+HHEADERS = \
+ curl_addrinfo.h \
+ curl_amigaos.h \
+ curl_arpa_telnet.h \
+ curl_asyn.h \
+ curl_axtls.h \
+ curl_base64.h \
+ curl_bundles.h \
+ curl_conncache.h \
+ curl_connect.h \
+ curl_content_encoding.h \
+ curl_cookie.h \
+ curl_cyassl.h \
+ curl_darwinssl.h \
+ curl_dict.h \
+ curl_easyif.h \
+ curl_escape.h \
+ curl_file.h \
+ curl_fileinfo.h \
+ curl_fnmatch.h \
+ curl_formdata.h \
+ curl_ftp.h \
+ curl_ftplistparser.h \
+ curl_gethostname.h \
+ curl_getinfo.h \
+ curl_gopher.h \
+ curl_gssapi.h \
+ curl_gtls.h \
+ curl_hash.h \
+ curl_hmac.h \
+ curl_hostcheck.h \
+ curl_hostip.h \
+ curl_http.h \
+ curl_http_chunks.h \
+ curl_http_digest.h \
+ curl_http_negotiate.h \
+ curl_http_proxy.h \
+ curl_if2ip.h \
+ curl_imap.h \
+ curl_inet_ntop.h \
+ curl_inet_pton.h \
+ curl_krb4.h \
+ curl_ldap.h \
+ curl_llist.h \
+ curl_md4.h \
+ curl_md5.h \
+ curl_memdebug.h \
+ curl_memory.h \
+ curl_memrchr.h \
+ curl_multibyte.h \
+ curl_multiif.h \
+ curl_netrc.h \
+ curl_non-ascii.h \
+ curl_nonblock.h \
+ curl_nssg.h \
+ curl_ntlm.h \
+ curl_ntlm_core.h \
+ curl_ntlm_msgs.h \
+ curl_ntlm_wb.h \
+ curl_parsedate.h \
+ curl_pingpong.h \
+ curl_polarssl.h \
+ curl_pop3.h \
+ curl_progress.h \
+ curl_qssl.h \
+ curl_rand.h \
+ curl_rawstr.h \
+ curl_rtmp.h \
+ curl_rtsp.h \
+ curl_sasl.h \
+ curl_schannel.h \
+ curl_select.h \
+ curl_sendf.h \
+ curl_setup.h \
+ curl_setup_once.h \
+ curl_share.h \
+ curl_slist.h \
+ curl_smtp.h \
+ curl_sockaddr.h \
+ curl_socks.h \
+ curl_speedcheck.h \
+ curl_splay.h \
+ curl_ssh.h \
+ curl_sslgen.h \
+ curl_ssluse.h \
+ curl_sspi.h \
+ curl_strdup.h \
+ curl_strequal.h \
+ curl_strerror.h \
+ curl_strtok.h \
+ curl_strtoofft.h \
+ curl_telnet.h \
+ curl_tftp.h \
+ curl_threads.h \
+ curl_timeval.h \
+ curl_transfer.h \
+ curl_url.h \
+ curl_urldata.h \
+ curl_wildcard.h \
+ curlx.h
+
diff --git a/lib/README.hostip b/lib/README.hostip
index 9723b93fd..a87dab45a 100644
--- a/lib/README.hostip
+++ b/lib/README.hostip
@@ -31,5 +31,5 @@
hostip4.c - ipv4-specific functions
hostip6.c - ipv6-specific functions
- The hostip.h is the single united header file for all this. It defines the
- CURLRES_* defines based on the config*.h and setup.h defines.
+ The curl_hostip.h is the single united header file for all this. It defines
+ the CURLRES_* defines based on the config*.h and curl_setup.h defines.
diff --git a/lib/amigaos.c b/lib/amigaos.c
index 71ea704e1..c726abb68 100644
--- a/lib/amigaos.c
+++ b/lib/amigaos.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(__AMIGA__) && !defined(__ixemul__)
#include <amitcp/socketbasetags.h>
-#include "amigaos.h"
+#include "curl_amigaos.h"
struct Library *SocketBase = NULL;
extern int errno, h_errno;
diff --git a/lib/amigaos.h b/lib/amigaos.h
index 7476a13d8..76578be86 100644
--- a/lib/amigaos.h
+++ b/lib/amigaos.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(__AMIGA__) && !defined(__ixemul__)
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c
index 44d00bdb0..6e09e9b98 100644
--- a/lib/asyn-ares.c
+++ b/lib/asyn-ares.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
@@ -51,23 +51,23 @@
/***********************************************************************
* Only for ares-enabled builds
* And only for functions that fulfill the asynch resolver backend API
- * as defined in asyn.h, nothing else belongs in this file!
+ * as defined in curl_asyn.h, nothing else belongs in this file!
**********************************************************************/
#ifdef CURLRES_ARES
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
-#include "multiif.h"
-#include "inet_pton.h"
-#include "connect.h"
-#include "select.h"
-#include "progress.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
+#include "curl_multiif.h"
+#include "curl_inet_pton.h"
+#include "curl_connect.h"
+#include "curl_select.h"
+#include "curl_progress.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -87,7 +87,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
struct ResolverResults {
int num_pending; /* number of ares_gethostbyname() requests */
diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c
index 0d29d5887..6d3667fab 100644
--- a/lib/asyn-thread.c
+++ b/lib/asyn-thread.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -57,16 +57,16 @@
# define RESOLVER_ENOMEM ENOMEM
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
-#include "multiif.h"
-#include "inet_pton.h"
-#include "inet_ntop.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
+#include "curl_multiif.h"
+#include "curl_inet_pton.h"
+#include "curl_inet_ntop.h"
#include "curl_threads.h"
#define _MPRINTF_REPLACE /* use our functions only */
@@ -74,7 +74,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/***********************************************************************
* Only for threaded name resolves builds
diff --git a/lib/asyn.h b/lib/asyn.h
index e7c1b886d..1b681ea12 100644
--- a/lib/asyn.h
+++ b/lib/asyn.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include "curl_addrinfo.h"
struct addrinfo;
diff --git a/lib/axtls.c b/lib/axtls.c
index 19ed73091..3a29cc200 100644
--- a/lib/axtls.c
+++ b/lib/axtls.c
@@ -26,24 +26,24 @@
* but sslgen.c should ever call or use these functions.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_AXTLS
#include <axTLS/ssl.h>
-#include "axtls.h"
-
-#include "sendf.h"
-#include "inet_pton.h"
-#include "sslgen.h"
-#include "parsedate.h"
-#include "connect.h" /* for the connect timeout */
-#include "select.h"
+#include "curl_axtls.h"
+
+#include "curl_sendf.h"
+#include "curl_inet_pton.h"
+#include "curl_sslgen.h"
+#include "curl_parsedate.h"
+#include "curl_connect.h" /* for the connect timeout */
+#include "curl_select.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
-#include "hostcheck.h"
+#include "curl_memdebug.h"
+#include "curl_hostcheck.h"
/* SSL_read is opied from axTLS compat layer */
@@ -65,14 +65,14 @@ static int SSL_read(SSL *ssl, void *buf, int num)
int Curl_axtls_init(void)
{
/* axTLS has no global init. Everything is done through SSL and SSL_CTX
- * structs stored in connectdata structure. Perhaps can move to axtls.h.
+ * structs stored in connectdata structure. Perhaps can move to curl_axtls.h.
*/
return 1;
}
int Curl_axtls_cleanup(void)
{
- /* axTLS has no global cleanup. Perhaps can move this to axtls.h. */
+ /* axTLS has no global cleanup. Perhaps can move this to curl_axtls.h. */
return 1;
}
diff --git a/lib/axtls.h b/lib/axtls.h
index 8d33b1c7a..06f78ed32 100644
--- a/lib/axtls.h
+++ b/lib/axtls.h
@@ -25,7 +25,7 @@
#ifdef USE_AXTLS
#include "curl/curl.h"
-#include "urldata.h"
+#include "curl_urldata.h"
int Curl_axtls_init(void);
int Curl_axtls_cleanup(void);
diff --git a/lib/base64.c b/lib/base64.c
index ec46c09ab..3b90ee17a 100644
--- a/lib/base64.c
+++ b/lib/base64.c
@@ -22,19 +22,19 @@
/* Base64 encoding/decoding */
-#include "setup.h"
+#include "curl_setup.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#include "urldata.h" /* for the SessionHandle definition */
-#include "warnless.h"
+#include "curl_urldata.h" /* for the SessionHandle definition */
+#include "curl_warnless.h"
#include "curl_base64.h"
#include "curl_memory.h"
-#include "non-ascii.h"
+#include "curl_non-ascii.h"
-/* include memdebug.h last */
-#include "memdebug.h"
+/* include curl_memdebug.h last */
+#include "curl_memdebug.h"
/* ---- Base64 Encoding/Decoding Table --- */
static const char table64[]=
diff --git a/lib/bundles.c b/lib/bundles.c
index f09ee2a35..efbaeee4f 100644
--- a/lib/bundles.c
+++ b/lib/bundles.c
@@ -21,21 +21,21 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "url.h"
-#include "progress.h"
-#include "multiif.h"
-#include "bundles.h"
-#include "sendf.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_url.h"
+#include "curl_progress.h"
+#include "curl_multiif.h"
+#include "curl_bundles.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static void conn_llist_dtor(void *user, void *element)
{
diff --git a/lib/conncache.c b/lib/conncache.c
index a3a90f879..bc95e07df 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -21,22 +21,22 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "url.h"
-#include "progress.h"
-#include "multiif.h"
-#include "sendf.h"
-#include "rawstr.h"
-#include "bundles.h"
-#include "conncache.h"
+#include "curl_urldata.h"
+#include "curl_url.h"
+#include "curl_progress.h"
+#include "curl_multiif.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
+#include "curl_bundles.h"
+#include "curl_conncache.h"
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define CONNECTION_HASH_SIZE 97
diff --git a/lib/connect.c b/lib/connect.c
index 19f5b2f5b..85226d808 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> /* <netinet/tcp.h> may need it */
@@ -59,24 +59,24 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "if2ip.h"
-#include "strerror.h"
-#include "connect.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_if2ip.h"
+#include "curl_strerror.h"
+#include "curl_connect.h"
#include "curl_memory.h"
-#include "select.h"
-#include "url.h" /* for Curl_safefree() */
-#include "multiif.h"
-#include "sockaddr.h" /* required for Curl_sockaddr_storage */
-#include "inet_ntop.h"
-#include "inet_pton.h"
-#include "sslgen.h" /* for Curl_ssl_check_cxn() */
-#include "progress.h"
-#include "warnless.h"
+#include "curl_select.h"
+#include "curl_url.h"
+#include "curl_multiif.h"
+#include "curl_sockaddr.h" /* required for Curl_sockaddr_storage */
+#include "curl_inet_ntop.h"
+#include "curl_inet_pton.h"
+#include "curl_sslgen.h" /* for Curl_ssl_check_cxn() */
+#include "curl_progress.h"
+#include "curl_warnless.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef __SYMBIAN32__
/* This isn't actually supported under Symbian OS */
diff --git a/lib/connect.h b/lib/connect.h
index f84361f2e..db23b9281 100644
--- a/lib/connect.h
+++ b/lib/connect.h
@@ -21,10 +21,10 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "nonblock.h" /* for curlx_nonblock(), formerly Curl_nonblock() */
-#include "sockaddr.h"
+#include "curl_nonblock.h"
+#include "curl_sockaddr.h"
CURLcode Curl_is_connected(struct connectdata *conn,
int sockindex,
diff --git a/lib/content_encoding.c b/lib/content_encoding.c
index 3276ef988..6f4d1428a 100644
--- a/lib/content_encoding.c
+++ b/lib/content_encoding.c
@@ -20,17 +20,17 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_LIBZ
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "sendf.h"
-#include "content_encoding.h"
+#include "curl_sendf.h"
+#include "curl_content_encoding.h"
#include "curl_memory.h"
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Comment this out if zlib is always going to be at least ver. 1.2.0.4
(doing so will reduce code size slightly). */
diff --git a/lib/content_encoding.h b/lib/content_encoding.h
index 372da4a3b..501f6c8ce 100644
--- a/lib/content_encoding.h
+++ b/lib/content_encoding.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
/*
* Comma-separated list all supported Content-Encodings ('identity' is implied)
diff --git a/lib/cookie.c b/lib/cookie.c
index 644b33a25..90ee884bb 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -77,26 +77,26 @@ Example set of cookies:
****/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_COOKIES)
#define _MPRINTF_REPLACE
#include <curl/mprintf.h>
-#include "urldata.h"
-#include "cookie.h"
-#include "strequal.h"
-#include "strtok.h"
-#include "sendf.h"
+#include "curl_urldata.h"
+#include "curl_cookie.h"
+#include "curl_strequal.h"
+#include "curl_strtok.h"
+#include "curl_sendf.h"
#include "curl_memory.h"
-#include "share.h"
-#include "strtoofft.h"
-#include "rawstr.h"
+#include "curl_share.h"
+#include "curl_strtoofft.h"
+#include "curl_rawstr.h"
#include "curl_memrchr.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static void freecookie(struct Cookie *co)
{
diff --git a/lib/cookie.h b/lib/cookie.h
index 5997e4680..d3b63f780 100644
--- a/lib/cookie.h
+++ b/lib/cookie.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index 815b4ae64..6cf7076f6 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
@@ -45,15 +45,15 @@
#endif
#include "curl_addrinfo.h"
-#include "inet_pton.h"
-#include "warnless.h"
+#include "curl_inet_pton.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
diff --git a/lib/curl_addrinfo.h b/lib/curl_addrinfo.h
index a5375cb33..6d2b753eb 100644
--- a/lib/curl_addrinfo.h
+++ b/lib/curl_addrinfo.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
diff --git a/lib/curl_darwinssl.c b/lib/curl_darwinssl.c
index 2d56b3920..04067d167 100644
--- a/lib/curl_darwinssl.c
+++ b/lib/curl_darwinssl.c
@@ -26,7 +26,7 @@
* TLS/SSL layer. No code but sslgen.c should ever call or use these functions.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_DARWINSSL
@@ -42,12 +42,12 @@
#include <sys/sysctl.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "inet_pton.h"
-#include "connect.h"
-#include "select.h"
-#include "sslgen.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_inet_pton.h"
+#include "curl_connect.h"
+#include "curl_select.h"
+#include "curl_sslgen.h"
#include "curl_darwinssl.h"
#define _MPRINTF_REPLACE /* use our functions only */
@@ -55,7 +55,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* From MacTypes.h (which we can't include because it isn't present in iOS: */
#define ioErr -36
diff --git a/lib/curl_darwinssl.h b/lib/curl_darwinssl.h
index 53053edca..183d9371c 100644
--- a/lib/curl_darwinssl.h
+++ b/lib/curl_darwinssl.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_DARWINSSL
diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c
index e18f52eab..b6f7dd948 100644
--- a/lib/curl_fnmatch.c
+++ b/lib/curl_fnmatch.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include "curl_fnmatch.h"
@@ -29,7 +29,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define CURLFNM_CHARSET_LEN (sizeof(char) * 256)
#define CURLFNM_CHSET_SIZE (CURLFNM_CHARSET_LEN + 15)
diff --git a/lib/curl_gethostname.c b/lib/curl_gethostname.c
index ddee4ba1d..ded1e6f94 100644
--- a/lib/curl_gethostname.c
+++ b/lib/curl_gethostname.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include "curl_gethostname.h"
diff --git a/lib/curl_gssapi.c b/lib/curl_gssapi.c
index b9c8ad0cf..2d2492ecb 100644
--- a/lib/curl_gssapi.c
+++ b/lib/curl_gssapi.c
@@ -20,12 +20,12 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_GSSAPI
#include "curl_gssapi.h"
-#include "sendf.h"
+#include "curl_sendf.h"
OM_uint32 Curl_gss_init_sec_context(
struct SessionHandle *data,
diff --git a/lib/curl_gssapi.h b/lib/curl_gssapi.h
index fd4596b80..df4bcd650 100644
--- a/lib/curl_gssapi.h
+++ b/lib/curl_gssapi.h
@@ -22,8 +22,8 @@
*
***************************************************************************/
-#include "setup.h"
-#include "urldata.h"
+#include "curl_setup.h"
+#include "curl_urldata.h"
#ifdef HAVE_GSSAPI
diff --git a/lib/curl_md4.h b/lib/curl_md4.h
index 6b6c16e13..b0be9cf6c 100644
--- a/lib/curl_md4.h
+++ b/lib/curl_md4.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
/* NSS crypto library does not provide the MD4 hash algorithm, so that we have
* a local implementation of it */
diff --git a/lib/curl_memrchr.c b/lib/curl_memrchr.c
index d79af9be7..ad7f1880d 100644
--- a/lib/curl_memrchr.c
+++ b/lib/curl_memrchr.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include "curl_memrchr.h"
@@ -29,7 +29,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef HAVE_MEMRCHR
diff --git a/lib/curl_memrchr.h b/lib/curl_memrchr.h
index 37061b608..324c73a7b 100644
--- a/lib/curl_memrchr.h
+++ b/lib/curl_memrchr.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_MEMRCHR
diff --git a/lib/curl_multibyte.c b/lib/curl_multibyte.c
index 7cb9e4c60..75d6544b0 100644
--- a/lib/curl_multibyte.c
+++ b/lib/curl_multibyte.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_WIN32_IDN) || (defined(USE_WINDOWS_SSPI) && defined(UNICODE))
@@ -35,7 +35,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
wchar_t *Curl_convert_UTF8_to_wchar(const char *str_utf8)
{
diff --git a/lib/curl_multibyte.h b/lib/curl_multibyte.h
index 6ecccd3c9..7ee5eae12 100644
--- a/lib/curl_multibyte.h
+++ b/lib/curl_multibyte.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_WIN32_IDN) || (defined(USE_WINDOWS_SSPI) && defined(UNICODE))
diff --git a/lib/curl_ntlm.c b/lib/curl_ntlm.c
index 9c7837254..470b9c62a 100644
--- a/lib/curl_ntlm.c
+++ b/lib/curl_ntlm.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_NTLM
@@ -33,26 +33,26 @@
#define DEBUG_ME 0
-#include "urldata.h"
-#include "sendf.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
#include "curl_ntlm.h"
#include "curl_ntlm_msgs.h"
#include "curl_ntlm_wb.h"
-#include "url.h"
+#include "curl_url.h"
#include "curl_memory.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#if defined(USE_NSS)
-#include "nssg.h"
+#include "curl_nssg.h"
#elif defined(USE_WINDOWS_SSPI)
#include "curl_sspi.h"
#endif
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#if DEBUG_ME
# define DEBUG_OUT(x) x
diff --git a/lib/curl_ntlm.h b/lib/curl_ntlm.h
index b2783778b..21a9e9e47 100644
--- a/lib/curl_ntlm.h
+++ b/lib/curl_ntlm.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_NTLM
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c
index 6b7d9fc46..ebd6e304b 100644
--- a/lib/curl_ntlm_core.c
+++ b/lib/curl_ntlm_core.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_NTLM) && !defined(USE_WINDOWS_SSPI)
@@ -91,9 +91,9 @@
# error "Can't compile NTLM support without a crypto library."
#endif
-#include "urldata.h"
-#include "non-ascii.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_non-ascii.h"
+#include "curl_rawstr.h"
#include "curl_memory.h"
#include "curl_ntlm_core.h"
@@ -101,7 +101,7 @@
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef USE_SSLEAY
/*
diff --git a/lib/curl_ntlm_core.h b/lib/curl_ntlm_core.h
index 5615b3504..9aa126bb2 100644
--- a/lib/curl_ntlm_core.h
+++ b/lib/curl_ntlm_core.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_NTLM) && !defined(USE_WINDOWS_SSPI)
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index 8e788d733..e625a06c4 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_NTLM
@@ -33,21 +33,21 @@
#define DEBUG_ME 0
-#include "urldata.h"
-#include "non-ascii.h"
-#include "sendf.h"
+#include "curl_urldata.h"
+#include "curl_non-ascii.h"
+#include "curl_sendf.h"
#include "curl_base64.h"
#include "curl_ntlm_core.h"
#include "curl_gethostname.h"
#include "curl_multibyte.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#include "curl_memory.h"
#ifdef USE_WINDOWS_SSPI
# include "curl_sspi.h"
#endif
-#include "sslgen.h"
+#include "curl_sslgen.h"
#define BUILDING_CURL_NTLM_MSGS_C
#include "curl_ntlm_msgs.h"
@@ -56,7 +56,7 @@
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* "NTLMSSP" signature is always in ASCII regardless of the platform */
#define NTLMSSP_SIGNATURE "\x4e\x54\x4c\x4d\x53\x53\x50"
diff --git a/lib/curl_ntlm_msgs.h b/lib/curl_ntlm_msgs.h
index 703fb75e1..e7d185dea 100644
--- a/lib/curl_ntlm_msgs.h
+++ b/lib/curl_ntlm_msgs.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_NTLM
diff --git a/lib/curl_ntlm_wb.c b/lib/curl_ntlm_wb.c
index 46a51c2c4..87ac6f48e 100644
--- a/lib/curl_ntlm_wb.c
+++ b/lib/curl_ntlm_wb.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_NTLM) && defined(NTLM_WB_ENABLED)
@@ -40,19 +40,19 @@
#include <signal.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "select.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_select.h"
#include "curl_ntlm_wb.h"
-#include "url.h"
-#include "strerror.h"
+#include "curl_url.h"
+#include "curl_strerror.h"
#include "curl_memory.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#if DEBUG_ME
# define DEBUG_OUT(x) x
diff --git a/lib/curl_ntlm_wb.h b/lib/curl_ntlm_wb.h
index e3eaffe17..db6bc16b7 100644
--- a/lib/curl_ntlm_wb.h
+++ b/lib/curl_ntlm_wb.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_NTLM) && defined(NTLM_WB_ENABLED)
diff --git a/lib/curl_rand.c b/lib/curl_rand.c
index 047b7f345..bfd5f1d53 100644
--- a/lib/curl_rand.c
+++ b/lib/curl_rand.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
@@ -31,7 +31,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Private pseudo-random number seed. Unsigned integer >= 32bit. Threads
mutual exclusion is not implemented to acess it since we do not require
diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c
index b87bdf2c7..b8caca0a0 100644
--- a/lib/curl_rtmp.c
+++ b/lib/curl_rtmp.c
@@ -20,15 +20,15 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_LIBRTMP
-#include "urldata.h"
-#include "nonblock.h" /* for curlx_nonblock */
-#include "progress.h" /* for Curl_pgrsSetUploadSize */
-#include "transfer.h"
-#include "warnless.h"
+#include "curl_urldata.h"
+#include "curl_nonblock.h" /* for curlx_nonblock */
+#include "curl_progress.h" /* for Curl_pgrsSetUploadSize */
+#include "curl_transfer.h"
+#include "curl_warnless.h"
#include <curl/curl.h>
#include <librtmp/rtmp.h>
@@ -37,7 +37,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef _WIN32
#define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e)
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index ccb54a89f..1becc28df 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -24,10 +24,10 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
+#include "curl_urldata.h"
#include "curl_base64.h"
#include "curl_md5.h"
@@ -35,14 +35,14 @@
#include "curl_hmac.h"
#include "curl_ntlm_msgs.h"
#include "curl_sasl.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#include "curl_memory.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef CURL_DISABLE_CRYPTO_AUTH
/* Retrieves the value for a corresponding key from the challenge string
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index 469c9a1e4..fa8ac84ac 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "pingpong.h"
+#include "curl_pingpong.h"
/* Authentication mechanism flags */
#define SASL_MECH_LOGIN 0x0001
diff --git a/lib/curl_schannel.c b/lib/curl_schannel.c
index 8cb3af80f..3bbebec8a 100644
--- a/lib/curl_schannel.c
+++ b/lib/curl_schannel.c
@@ -29,16 +29,6 @@
*/
/*
- * Based upon the PolarSSL implementation in polarssl.c and polarssl.h:
- * Copyright (C) 2010, 2011, Hoi-Ho Chan, <hoiho.chan@gmail.com>
- *
- * Based upon the CyaSSL implementation in cyassl.c and cyassl.h:
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
- *
- * Thanks for code and inspiration!
- */
-
-/*
* TODO list for TLS/SSL implementation:
* - implement client certificate authentication
* - implement custom server certificate validation
@@ -51,7 +41,7 @@
* http://msdn.microsoft.com/en-us/library/windows/desktop/aa380161.aspx
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_SCHANNEL
@@ -61,21 +51,21 @@
#include "curl_sspi.h"
#include "curl_schannel.h"
-#include "sslgen.h"
-#include "sendf.h"
-#include "connect.h" /* for the connect timeout */
-#include "strerror.h"
-#include "select.h" /* for the socket readyness */
-#include "inet_pton.h" /* for IP addr SNI check */
+#include "curl_sslgen.h"
+#include "curl_sendf.h"
+#include "curl_connect.h" /* for the connect timeout */
+#include "curl_strerror.h"
+#include "curl_select.h" /* for the socket readyness */
+#include "curl_inet_pton.h" /* for IP addr SNI check */
#include "curl_multibyte.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Uncomment to force verbose output
* #define infof(x, y, ...) printf(y, __VA_ARGS__)
diff --git a/lib/curl_schannel.h b/lib/curl_schannel.h
index 37126ac7d..918670fe0 100644
--- a/lib/curl_schannel.h
+++ b/lib/curl_schannel.h
@@ -22,11 +22,11 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_SCHANNEL
-#include "urldata.h"
+#include "curl_urldata.h"
#ifndef UNISP_NAME_A
#define UNISP_NAME_A "Microsoft Unified Security Protocol Provider"
diff --git a/lib/curl_sspi.c b/lib/curl_sspi.c
index c3c41ec2f..40a0af1e4 100644
--- a/lib/curl_sspi.c
+++ b/lib/curl_sspi.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_WINDOWS_SSPI
@@ -33,7 +33,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* We use our own typedef here since some headers might lack these */
typedef PSecurityFunctionTable (APIENTRY *INITSECURITYINTERFACE_FN)(VOID);
diff --git a/lib/curl_sspi.h b/lib/curl_sspi.h
index c3e6d9760..d52582856 100644
--- a/lib/curl_sspi.h
+++ b/lib/curl_sspi.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_WINDOWS_SSPI
diff --git a/lib/curl_threads.c b/lib/curl_threads.c
index 411ccc81d..8bbf0af98 100644
--- a/lib/curl_threads.c
+++ b/lib/curl_threads.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_THREADS_POSIX)
# ifdef HAVE_PTHREAD_H
@@ -39,7 +39,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#if defined(USE_THREADS_POSIX)
diff --git a/lib/curl_threads.h b/lib/curl_threads.h
index ba81054a2..d9cec6b29 100644
--- a/lib/curl_threads.h
+++ b/lib/curl_threads.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_THREADS_POSIX)
# define CURL_STDCALL
diff --git a/lib/curlx.h b/lib/curlx.h
index 9dc90a004..42c62958d 100644
--- a/lib/curlx.h
+++ b/lib/curlx.h
@@ -34,29 +34,29 @@
functions while they still are offered publicly. They will be made library-
private one day */
-#include "strequal.h"
-/* "strequal.h" provides the strequal protos */
+#include "curl_strequal.h"
+/* "curl_strequal.h" provides the strequal protos */
-#include "strtoofft.h"
-/* "strtoofft.h" provides this function: curlx_strtoofft(), returns a
+#include "curl_strtoofft.h"
+/* "curl_strtoofft.h" provides this function: curlx_strtoofft(), returns a
curl_off_t number from a given string.
*/
-#include "timeval.h"
+#include "curl_timeval.h"
/*
- "timeval.h" sets up a 'struct timeval' even for platforms that otherwise
- don't have one and has protos for these functions:
+ "curl_timeval.h" sets up a 'struct timeval' even for platforms that
+ otherwise don't have one and has protos for these functions:
curlx_tvnow()
curlx_tvdiff()
curlx_tvdiff_secs()
*/
-#include "nonblock.h"
-/* "nonblock.h" provides curlx_nonblock() */
+#include "curl_nonblock.h"
+/* "curl_nonblock.h" provides curlx_nonblock() */
-#include "warnless.h"
-/* "warnless.h" provides functions:
+#include "curl_warnless.h"
+/* "curl_warnless.h" provides functions:
curlx_ultous()
curlx_ultouc()
diff --git a/lib/cyassl.c b/lib/cyassl.c
index 13c0d135d..a2f941ed1 100644
--- a/lib/cyassl.c
+++ b/lib/cyassl.c
@@ -26,7 +26,7 @@
*
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_CYASSL
@@ -34,21 +34,21 @@
#include <limits.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "inet_pton.h"
-#include "cyassl.h"
-#include "sslgen.h"
-#include "parsedate.h"
-#include "connect.h" /* for the connect timeout */
-#include "select.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_inet_pton.h"
+#include "curl_cyassl.h"
+#include "curl_sslgen.h"
+#include "curl_parsedate.h"
+#include "curl_connect.h" /* for the connect timeout */
+#include "curl_select.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#include <cyassl/ssl.h>
#include <cyassl/error.h>
diff --git a/lib/cyassl.h b/lib/cyassl.h
index 56d68066f..7728a0cf5 100644
--- a/lib/cyassl.h
+++ b/lib/cyassl.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_CYASSL
diff --git a/lib/dict.c b/lib/dict.c
index ca5c362b1..114ef7c72 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_DICT
@@ -48,22 +48,22 @@
#include <sys/select.h>
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sendf.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
-#include "progress.h"
-#include "strequal.h"
-#include "dict.h"
-#include "rawstr.h"
+#include "curl_progress.h"
+#include "curl_strequal.h"
+#include "curl_dict.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Forward declarations.
diff --git a/lib/easy.c b/lib/easy.c
index b73bf6601..b4f0390a9 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -42,35 +42,35 @@
#include <sys/param.h>
#endif
-#include "strequal.h"
-#include "urldata.h"
+#include "curl_strequal.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sslgen.h"
-#include "url.h"
-#include "getinfo.h"
-#include "hostip.h"
-#include "share.h"
-#include "strdup.h"
+#include "curl_transfer.h"
+#include "curl_sslgen.h"
+#include "curl_url.h"
+#include "curl_getinfo.h"
+#include "curl_hostip.h"
+#include "curl_share.h"
+#include "curl_strdup.h"
#include "curl_memory.h"
-#include "progress.h"
-#include "easyif.h"
-#include "select.h"
-#include "sendf.h" /* for failf function prototype */
+#include "curl_progress.h"
+#include "curl_easyif.h"
+#include "curl_select.h"
+#include "curl_sendf.h" /* for failf function prototype */
#include "curl_ntlm.h"
-#include "connect.h" /* for Curl_getconnectinfo */
-#include "slist.h"
-#include "amigaos.h"
+#include "curl_connect.h" /* for Curl_getconnectinfo */
+#include "curl_slist.h"
+#include "curl_amigaos.h"
#include "curl_rand.h"
-#include "non-ascii.h"
-#include "warnless.h"
-#include "conncache.h"
+#include "curl_non-ascii.h"
+#include "curl_warnless.h"
+#include "curl_conncache.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* win32_cleanup() is for win32 socket cleanup functionality, the opposite
of win32_init() */
diff --git a/lib/escape.c b/lib/escape.c
index 0dd5a1d0a..1d542618e 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -23,21 +23,21 @@
/* Escape and unescape URL encoding in strings. The functions return a new
* allocated string or NULL if an error occurred. */
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
#include "curl_memory.h"
-#include "urldata.h"
-#include "warnless.h"
-#include "non-ascii.h"
-#include "escape.h"
+#include "curl_urldata.h"
+#include "curl_warnless.h"
+#include "curl_non-ascii.h"
+#include "curl_escape.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Portable character check (remember EBCDIC). Do not use isalnum() because
its behavior is altered by the current locale.
diff --git a/lib/file.c b/lib/file.c
index 886a09e24..6ea2bd769 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FILE
@@ -48,26 +48,26 @@
#include <fcntl.h>
#endif
-#include "strtoofft.h"
-#include "urldata.h"
+#include "curl_strtoofft.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "progress.h"
-#include "sendf.h"
-#include "escape.h"
-#include "file.h"
-#include "speedcheck.h"
-#include "getinfo.h"
-#include "transfer.h"
-#include "url.h"
+#include "curl_progress.h"
+#include "curl_sendf.h"
+#include "curl_escape.h"
+#include "curl_file.h"
+#include "curl_speedcheck.h"
+#include "curl_getinfo.h"
+#include "curl_transfer.h"
+#include "curl_url.h"
#include "curl_memory.h"
-#include "parsedate.h" /* for the week day and month names */
-#include "warnless.h"
+#include "curl_parsedate.h" /* for the week day and month names */
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#if defined(WIN32) || defined(MSDOS) || defined(__EMX__) || \
defined(__SYMBIAN32__)
diff --git a/lib/fileinfo.c b/lib/fileinfo.c
index 4ffcbbe29..433c709b5 100644
--- a/lib/fileinfo.c
+++ b/lib/fileinfo.c
@@ -20,17 +20,17 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "strdup.h"
-#include "fileinfo.h"
+#include "curl_strdup.h"
+#include "curl_fileinfo.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
struct curl_fileinfo *Curl_fileinfo_alloc(void)
{
diff --git a/lib/formdata.c b/lib/formdata.c
index 7bf883941..6b7166379 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
@@ -33,18 +33,18 @@
#include <libgen.h>
#endif
-#include "urldata.h" /* for struct SessionHandle */
-#include "formdata.h"
+#include "curl_urldata.h" /* for struct SessionHandle */
+#include "curl_formdata.h"
#include "curl_rand.h"
-#include "strequal.h"
+#include "curl_strequal.h"
#include "curl_memory.h"
-#include "sendf.h"
+#include "curl_sendf.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#endif /* !defined(CURL_DISABLE_HTTP) || defined(USE_SSLEAY) */
diff --git a/lib/ftp.c b/lib/ftp.c
index dc24d0bb5..d9f933ffd 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FTP
@@ -47,47 +47,47 @@
#endif
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "if2ip.h"
-#include "hostip.h"
-#include "progress.h"
-#include "transfer.h"
-#include "escape.h"
-#include "http.h" /* for HTTP proxy tunnel stuff */
-#include "socks.h"
-#include "ftp.h"
-#include "fileinfo.h"
-#include "ftplistparser.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_if2ip.h"
+#include "curl_hostip.h"
+#include "curl_progress.h"
+#include "curl_transfer.h"
+#include "curl_escape.h"
+#include "curl_http.h" /* for HTTP proxy tunnel stuff */
+#include "curl_socks.h"
+#include "curl_ftp.h"
+#include "curl_fileinfo.h"
+#include "curl_ftplistparser.h"
#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
-#include "krb4.h"
+#include "curl_krb4.h"
#endif
-#include "strtoofft.h"
-#include "strequal.h"
-#include "sslgen.h"
-#include "connect.h"
-#include "strerror.h"
-#include "inet_ntop.h"
-#include "inet_pton.h"
-#include "select.h"
-#include "parsedate.h" /* for the week day and month names */
-#include "sockaddr.h" /* required for Curl_sockaddr_storage */
-#include "multiif.h"
-#include "url.h"
-#include "rawstr.h"
-#include "speedcheck.h"
-#include "warnless.h"
-#include "http_proxy.h"
-#include "non-ascii.h"
+#include "curl_strtoofft.h"
+#include "curl_strequal.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_inet_ntop.h"
+#include "curl_inet_pton.h"
+#include "curl_select.h"
+#include "curl_parsedate.h" /* for the week day and month names */
+#include "curl_sockaddr.h" /* required for Curl_sockaddr_storage */
+#include "curl_multiif.h"
+#include "curl_url.h"
+#include "curl_rawstr.h"
+#include "curl_speedcheck.h"
+#include "curl_warnless.h"
+#include "curl_http_proxy.h"
+#include "curl_non-ascii.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
diff --git a/lib/ftp.h b/lib/ftp.h
index d359f28f3..6b75ac96c 100644
--- a/lib/ftp.h
+++ b/lib/ftp.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "pingpong.h"
+#include "curl_pingpong.h"
#ifndef CURL_DISABLE_FTP
extern const struct Curl_handler Curl_handler_ftp;
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index 49ee4b6a6..a1a7d5187 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -35,19 +35,19 @@
* 01-29-97 11:32PM <DIR> prog
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FTP
#include <curl/curl.h>
-#include "urldata.h"
-#include "fileinfo.h"
-#include "llist.h"
-#include "strtoofft.h"
-#include "rawstr.h"
-#include "ftp.h"
-#include "ftplistparser.h"
+#include "curl_urldata.h"
+#include "curl_fileinfo.h"
+#include "curl_llist.h"
+#include "curl_strtoofft.h"
+#include "curl_rawstr.h"
+#include "curl_ftp.h"
+#include "curl_ftplistparser.h"
#include "curl_fnmatch.h"
#define _MPRINTF_REPLACE /* use our functions only */
@@ -55,7 +55,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* allocs buffer which will contain one line of LIST command response */
#define FTP_BUFFER_ALLOCSIZE 160
diff --git a/lib/ftplistparser.h b/lib/ftplistparser.h
index 8499ccda4..96764e2a4 100644
--- a/lib/ftplistparser.h
+++ b/lib/ftplistparser.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FTP
diff --git a/lib/getenv.c b/lib/getenv.c
index a2d69830e..cf8b03619 100644
--- a/lib/getenv.c
+++ b/lib/getenv.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef __VMS
#include <unixlib.h>
@@ -29,7 +29,7 @@
#include <curl/curl.h>
#include "curl_memory.h"
-#include "memdebug.h"
+#include "curl_memdebug.h"
static
char *GetEnv(const char *variable)
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 221f05a4f..0404c28ea 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -20,20 +20,20 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "getinfo.h"
+#include "curl_urldata.h"
+#include "curl_getinfo.h"
#include "curl_memory.h"
-#include "sslgen.h"
-#include "connect.h" /* Curl_getconnectinfo() */
-#include "progress.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h" /* Curl_getconnectinfo() */
+#include "curl_progress.h"
/* Make this the last #include */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* This is supposed to be called in the beginning of a perform() session
diff --git a/lib/gopher.c b/lib/gopher.c
index e8f2790fc..80fc18e8e 100644
--- a/lib/gopher.c
+++ b/lib/gopher.c
@@ -20,29 +20,29 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_GOPHER
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sendf.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
-#include "progress.h"
-#include "strequal.h"
-#include "gopher.h"
-#include "rawstr.h"
-#include "select.h"
-#include "url.h"
-#include "warnless.h"
+#include "curl_progress.h"
+#include "curl_strequal.h"
+#include "curl_gopher.h"
+#include "curl_rawstr.h"
+#include "curl_select.h"
+#include "curl_url.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Forward declarations.
diff --git a/lib/gtls.c b/lib/gtls.c
index 8c2a4a0c9..4e2254109 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -28,7 +28,7 @@
* since they were not present in 1.0.X.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_GNUTLS
@@ -42,21 +42,21 @@
#include <gcrypt.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "inet_pton.h"
-#include "gtls.h"
-#include "sslgen.h"
-#include "parsedate.h"
-#include "connect.h" /* for the connect timeout */
-#include "select.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_inet_pton.h"
+#include "curl_gtls.h"
+#include "curl_sslgen.h"
+#include "curl_parsedate.h"
+#include "curl_connect.h" /* for the connect timeout */
+#include "curl_select.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
Some hackish cast macros based on:
@@ -94,7 +94,7 @@ static bool gtls_inited = FALSE;
/*
* Custom push and pull callback functions used by GNU TLS to read and write
* to the socket. These functions are simple wrappers to send() and recv()
- * (although here using the sread/swrite macros as defined by setup_once.h).
+ * (although here using sread/swrite macros as defined by curl_setup_once.h).
* We use custom functions rather than the GNU TLS defaults because it allows
* us to get specific about the fourth "flags" argument, and to use arbitrary
* private data with gnutls_transport_set_ptr if we wish.
diff --git a/lib/gtls.h b/lib/gtls.h
index 45b755a0e..83cfac7fd 100644
--- a/lib/gtls.h
+++ b/lib/gtls.h
@@ -22,11 +22,11 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_GNUTLS
-#include "urldata.h"
+#include "curl_urldata.h"
int Curl_gtls_init(void);
int Curl_gtls_cleanup(void);
diff --git a/lib/hash.c b/lib/hash.c
index b59e56146..732dbcf73 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -20,17 +20,17 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "hash.h"
-#include "llist.h"
+#include "curl_hash.h"
+#include "curl_llist.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static void
hash_element_dtor(void *user, void *element)
diff --git a/lib/hash.h b/lib/hash.h
index 3fa621cb1..68e7933ab 100644
--- a/lib/hash.h
+++ b/lib/hash.h
@@ -22,11 +22,11 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <stddef.h>
-#include "llist.h"
+#include "curl_llist.h"
/* Hash function prototype */
typedef size_t (*hash_function) (void* key,
diff --git a/lib/hmac.c b/lib/hmac.c
index 4df6f79ad..692d27940 100644
--- a/lib/hmac.c
+++ b/lib/hmac.c
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_CRYPTO_AUTH
@@ -33,7 +33,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Generic HMAC algorithm.
diff --git a/lib/hostasyn.c b/lib/hostasyn.c
index 93e2c31cd..0097b6cfd 100644
--- a/lib/hostasyn.c
+++ b/lib/hostasyn.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -40,20 +40,20 @@
#include <process.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/***********************************************************************
* Only for builds using asynchronous name resolves
diff --git a/lib/hostcheck.c b/lib/hostcheck.c
index 8affce044..a5bf8b02f 100644
--- a/lib/hostcheck.c
+++ b/lib/hostcheck.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_SSLEAY) || defined(USE_AXTLS)
/* these two backends use functions from this file */
-#include "hostcheck.h"
-#include "rawstr.h"
+#include "curl_hostcheck.h"
+#include "curl_rawstr.h"
/*
* Match a hostname against a wildcard pattern.
diff --git a/lib/hostip.c b/lib/hostip.c
index 2bfb74b42..5ba76d314 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -47,22 +47,22 @@
#include <process.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
-#include "inet_ntop.h"
-#include "warnless.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
+#include "curl_inet_ntop.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#if defined(CURLRES_SYNCH) && \
defined(HAVE_ALARM) && defined(SIGALRM) && defined(HAVE_SIGSETJMP)
@@ -105,8 +105,8 @@
* asyn-ares.c - functions for ares-using name resolves
* asyn-thread.c - functions for threaded name resolves
- * The hostip.h is the united header file for all this. It defines the
- * CURLRES_* defines based on the config*.h and setup.h defines.
+ * The curl_hostip.h is the united header file for all this. It defines the
+ * CURLRES_* defines based on the config*.h and curl_setup.h defines.
*/
/* These two symbols are for the global DNS cache */
diff --git a/lib/hostip.h b/lib/hostip.h
index de71f54f4..fb32d74fe 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -22,10 +22,10 @@
*
***************************************************************************/
-#include "setup.h"
-#include "hash.h"
+#include "curl_setup.h"
+#include "curl_hash.h"
#include "curl_addrinfo.h"
-#include "asyn.h"
+#include "curl_asyn.h"
#ifdef HAVE_SETJMP_H
#include <setjmp.h>
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 3babe7269..5b64b4673 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -40,21 +40,21 @@
#include <process.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
-#include "inet_pton.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
+#include "curl_inet_pton.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/***********************************************************************
* Only for plain-ipv4 builds
diff --git a/lib/hostip6.c b/lib/hostip6.c
index 5b25d6fc4..0081df7f5 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -40,22 +40,22 @@
#include <process.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
-#include "inet_pton.h"
-#include "connect.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
+#include "curl_inet_pton.h"
+#include "curl_connect.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/***********************************************************************
* Only for ipv6-enabled builds
diff --git a/lib/hostsyn.c b/lib/hostsyn.c
index eff2efa7b..9a26f8d44 100644
--- a/lib/hostsyn.c
+++ b/lib/hostsyn.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -40,20 +40,20 @@
#include <process.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "hash.h"
-#include "share.h"
-#include "strerror.h"
-#include "url.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_share.h"
+#include "curl_strerror.h"
+#include "curl_url.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/***********************************************************************
* Only for builds using synchronous name resolves
diff --git a/lib/http.c b/lib/http.c
index 0013e5065..4f4469c5e 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_HTTP
@@ -45,40 +45,40 @@
#include <sys/param.h>
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sendf.h"
-#include "formdata.h"
-#include "progress.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
+#include "curl_formdata.h"
+#include "curl_progress.h"
#include "curl_base64.h"
-#include "cookie.h"
-#include "strequal.h"
-#include "sslgen.h"
-#include "http_digest.h"
+#include "curl_cookie.h"
+#include "curl_strequal.h"
+#include "curl_sslgen.h"
+#include "curl_http_digest.h"
#include "curl_ntlm.h"
#include "curl_ntlm_wb.h"
-#include "http_negotiate.h"
-#include "url.h"
-#include "share.h"
-#include "hostip.h"
-#include "http.h"
+#include "curl_http_negotiate.h"
+#include "curl_url.h"
+#include "curl_share.h"
+#include "curl_hostip.h"
+#include "curl_http.h"
#include "curl_memory.h"
-#include "select.h"
-#include "parsedate.h" /* for the week day and month names */
-#include "strtoofft.h"
-#include "multiif.h"
-#include "rawstr.h"
-#include "content_encoding.h"
-#include "http_proxy.h"
-#include "warnless.h"
-#include "non-ascii.h"
+#include "curl_select.h"
+#include "curl_parsedate.h" /* for the week day and month names */
+#include "curl_strtoofft.h"
+#include "curl_multiif.h"
+#include "curl_rawstr.h"
+#include "curl_content_encoding.h"
+#include "curl_http_proxy.h"
+#include "curl_warnless.h"
+#include "curl_non-ascii.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Forward declarations.
diff --git a/lib/http_chunks.c b/lib/http_chunks.c
index d6a0bec13..050501b11 100644
--- a/lib/http_chunks.c
+++ b/lib/http_chunks.c
@@ -20,23 +20,23 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_HTTP
-#include "urldata.h" /* it includes http_chunks.h */
-#include "sendf.h" /* for the client write stuff */
+#include "curl_urldata.h" /* it includes curl_http_chunks.h */
+#include "curl_sendf.h" /* for the client write stuff */
-#include "content_encoding.h"
-#include "http.h"
+#include "curl_content_encoding.h"
+#include "curl_http.h"
#include "curl_memory.h"
-#include "non-ascii.h" /* for Curl_convert_to_network prototype */
+#include "curl_non-ascii.h" /* for Curl_convert_to_network prototype */
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Chunk format (simplified):
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 17cc95e81..d835eb27b 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -20,27 +20,27 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
-#include "urldata.h"
-#include "sendf.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
#include "curl_base64.h"
#include "curl_md5.h"
-#include "http_digest.h"
-#include "strtok.h"
-#include "url.h" /* for Curl_safefree() */
+#include "curl_http_digest.h"
+#include "curl_strtok.h"
+#include "curl_url.h"
#include "curl_memory.h"
-#include "non-ascii.h" /* included for Curl_convert_... prototypes */
-#include "warnless.h"
+#include "curl_non-ascii.h" /* included for Curl_convert_... prototypes */
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define MAX_VALUE_LENGTH 256
#define MAX_CONTENT_LENGTH 1024
diff --git a/lib/http_digest.h b/lib/http_digest.h
index 3b22ce10e..c6a4e9161 100644
--- a/lib/http_digest.h
+++ b/lib/http_digest.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
typedef enum {
CURLDIGEST_NONE, /* not a digest */
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index 92c363d7c..446c49bb9 100644
--- a/lib/http_negotiate.c
+++ b/lib/http_negotiate.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_GSSAPI
#ifdef HAVE_OLD_GSSMIT
@@ -30,14 +30,14 @@
#ifndef CURL_DISABLE_HTTP
-#include "urldata.h"
-#include "sendf.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
#include "curl_gssapi.h"
-#include "rawstr.h"
+#include "curl_rawstr.h"
#include "curl_base64.h"
-#include "http_negotiate.h"
+#include "curl_http_negotiate.h"
#include "curl_memory.h"
-#include "url.h"
+#include "curl_url.h"
#ifdef HAVE_SPNEGO
# include <spnegohelp.h>
@@ -56,7 +56,7 @@
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static int
get_gss_name(struct connectdata *conn, bool proxy, gss_name_t *server)
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 5aa4f9433..d82b27110 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -20,18 +20,18 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_WINDOWS_SSPI
#ifndef CURL_DISABLE_HTTP
-#include "urldata.h"
-#include "sendf.h"
-#include "rawstr.h"
-#include "warnless.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
+#include "curl_warnless.h"
#include "curl_base64.h"
-#include "http_negotiate.h"
+#include "curl_http_negotiate.h"
#include "curl_memory.h"
#include "curl_multibyte.h"
@@ -39,7 +39,7 @@
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static int
get_gss_name(struct connectdata *conn, bool proxy,
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index d2e1aa199..6bbc92615 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -20,21 +20,21 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "http_proxy.h"
-#include "sendf.h"
-#include "http.h"
-#include "url.h"
-#include "select.h"
-#include "rawstr.h"
-#include "progress.h"
-#include "non-ascii.h"
-#include "connect.h"
+#include "curl_http_proxy.h"
+#include "curl_sendf.h"
+#include "curl_http.h"
+#include "curl_url.h"
+#include "curl_select.h"
+#include "curl_rawstr.h"
+#include "curl_progress.h"
+#include "curl_non-ascii.h"
+#include "curl_connect.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -43,7 +43,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
CURLcode Curl_proxy_connect(struct connectdata *conn)
{
diff --git a/lib/idn_win32.c b/lib/idn_win32.c
index 9bc9cb810..eca225483 100644
--- a/lib/idn_win32.c
+++ b/lib/idn_win32.c
@@ -24,7 +24,7 @@
* IDN conversions using Windows kernel32 and normaliz libraries.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_WIN32_IDN
@@ -32,7 +32,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef WANT_IDN_PROTOTYPES
WINBASEAPI int WINAPI IdnToAscii(DWORD, const WCHAR *, int, WCHAR *, int);
diff --git a/lib/if2ip.c b/lib/if2ip.c
index c1905d175..db9c78446 100644
--- a/lib/if2ip.c
+++ b/lib/if2ip.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
@@ -50,16 +50,16 @@
# include <inet.h>
#endif
-#include "inet_ntop.h"
-#include "strequal.h"
-#include "if2ip.h"
+#include "curl_inet_ntop.h"
+#include "curl_strequal.h"
+#include "curl_if2ip.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* ------------------------------------------------------------------ */
diff --git a/lib/if2ip.h b/lib/if2ip.h
index 70842457c..858ec2f5b 100644
--- a/lib/if2ip.h
+++ b/lib/if2ip.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
bool Curl_if_is_interface_name(const char *interf);
char *Curl_if2ip(int af, const char *interf, char *buf, int buf_size);
diff --git a/lib/imap.c b/lib/imap.c
index b17b2d38f..e3ff0868b 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -23,7 +23,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_IMAP
@@ -50,33 +50,33 @@
#endif
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "if2ip.h"
-#include "hostip.h"
-#include "progress.h"
-#include "transfer.h"
-#include "escape.h"
-#include "http.h" /* for HTTP proxy tunnel stuff */
-#include "socks.h"
-#include "imap.h"
-
-#include "strtoofft.h"
-#include "strequal.h"
-#include "sslgen.h"
-#include "connect.h"
-#include "strerror.h"
-#include "select.h"
-#include "multiif.h"
-#include "url.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_if2ip.h"
+#include "curl_hostip.h"
+#include "curl_progress.h"
+#include "curl_transfer.h"
+#include "curl_escape.h"
+#include "curl_http.h" /* for HTTP proxy tunnel stuff */
+#include "curl_socks.h"
+#include "curl_imap.h"
+
+#include "curl_strtoofft.h"
+#include "curl_strequal.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_select.h"
+#include "curl_multiif.h"
+#include "curl_url.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Local API functions */
static CURLcode imap_parse_url_path(struct connectdata *conn);
diff --git a/lib/imap.h b/lib/imap.h
index 02ea346ad..720079008 100644
--- a/lib/imap.h
+++ b/lib/imap.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "pingpong.h"
+#include "curl_pingpong.h"
/****************************************************************************
* IMAP unique setup
diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c
index 1ff975667..b184029f6 100644
--- a/lib/inet_ntop.c
+++ b/lib/inet_ntop.c
@@ -18,7 +18,7 @@
* Original code by Paul Vixie. "curlified" by Gisle Vanem.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef HAVE_INET_NTOP
@@ -35,7 +35,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#include "inet_ntop.h"
+#include "curl_inet_ntop.h"
#define IN6ADDRSZ 16
#define INADDRSZ 4
diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h
index dbc146d91..db28ed807 100644
--- a/lib/inet_ntop.h
+++ b/lib/inet_ntop.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index d7fbbe957..175f938cd 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -16,7 +16,7 @@
* SOFTWARE.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef HAVE_INET_PTON
@@ -30,7 +30,7 @@
#include <arpa/inet.h>
#endif
-#include "inet_pton.h"
+#include "curl_inet_pton.h"
#define IN6ADDRSZ 16
#define INADDRSZ 4
diff --git a/lib/inet_pton.h b/lib/inet_pton.h
index f991473d6..43c549143 100644
--- a/lib/inet_pton.h
+++ b/lib/inet_pton.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
int Curl_inet_pton(int, const char *, void *);
diff --git a/lib/krb4.c b/lib/krb4.c
index 58354b602..8ba326ed7 100644
--- a/lib/krb4.c
+++ b/lib/krb4.c
@@ -39,7 +39,7 @@
*
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FTP
#ifdef HAVE_KRB4
@@ -50,16 +50,16 @@
#include <krb.h>
#include <des.h>
-#include "urldata.h"
+#include "curl_urldata.h"
#include "curl_base64.h"
-#include "ftp.h"
-#include "sendf.h"
-#include "krb4.h"
-#include "inet_ntop.h"
+#include "curl_ftp.h"
+#include "curl_sendf.h"
+#include "curl_krb4.h"
+#include "curl_inet_ntop.h"
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define LOCAL_ADDR (&conn->local_addr)
#define REMOTE_ADDR conn->ip_addr->ai_addr
diff --git a/lib/krb5.c b/lib/krb5.c
index c51041dda..f5389c857 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. */
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FTP
#ifdef HAVE_GSSAPI
@@ -46,20 +46,20 @@
#include <netdb.h>
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include "curl_base64.h"
-#include "ftp.h"
+#include "curl_ftp.h"
#include "curl_gssapi.h"
-#include "sendf.h"
-#include "krb4.h"
+#include "curl_sendf.h"
+#include "curl_krb4.h"
#include "curl_memory.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define LOCAL_ADDR (&conn->local_addr)
#define REMOTE_ADDR conn->ip_addr->ai_addr
diff --git a/lib/ldap.c b/lib/ldap.c
index 9ef31008c..76c2984ee 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_LDAP) && !defined(USE_OPENLDAP)
@@ -54,23 +54,23 @@
# endif /* HAVE_LDAP_SSL && HAVE_LDAP_SSL_H */
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "sendf.h"
-#include "escape.h"
-#include "progress.h"
-#include "transfer.h"
-#include "strequal.h"
-#include "strtok.h"
+#include "curl_sendf.h"
+#include "curl_escape.h"
+#include "curl_progress.h"
+#include "curl_transfer.h"
+#include "curl_strequal.h"
+#include "curl_strtok.h"
#include "curl_ldap.h"
#include "curl_memory.h"
#include "curl_base64.h"
-#include "rawstr.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef HAVE_LDAP_URL_PARSE
diff --git a/lib/llist.c b/lib/llist.c
index a302e32d5..46a8d9960 100644
--- a/lib/llist.c
+++ b/lib/llist.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "llist.h"
+#include "curl_llist.h"
#include "curl_memory.h"
/* this must be the last include file */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* @unittest: 1300
diff --git a/lib/llist.h b/lib/llist.h
index b4ca82a44..27ddb719a 100644
--- a/lib/llist.h
+++ b/lib/llist.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <stddef.h>
typedef void (*curl_llist_dtor)(void *, void *);
diff --git a/lib/md4.c b/lib/md4.c
index cf6c36023..d64b472ea 100644
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -20,14 +20,14 @@
documentation and/or software.
*/
-#include "setup.h"
+#include "curl_setup.h"
/* NSS crypto library does not provide the MD4 hash algorithm, so that we have
* a local implementation of it */
#ifdef USE_NSS
#include "curl_md4.h"
-#include "warnless.h"
+#include "curl_warnless.h"
typedef unsigned int UINT4;
diff --git a/lib/md5.c b/lib/md5.c
index ae5812b95..74f53f61b 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_CRYPTO_AUTH
#include "curl_md5.h"
#include "curl_hmac.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#include "curl_memory.h"
@@ -34,7 +34,7 @@
#include <nettle/md5.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
typedef struct md5_ctx MD5_CTX;
@@ -59,7 +59,7 @@ static void MD5_Final(unsigned char digest[16], MD5_CTX * ctx)
#include <gcrypt.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
typedef gcry_md_hd_t MD5_CTX;
@@ -443,7 +443,7 @@ static void Decode (UINT4 *output,
#endif /* CRYPTO LIBS */
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
const HMAC_params Curl_HMAC_MD5[] = {
{
diff --git a/lib/memdebug.c b/lib/memdebug.c
index c95f41fc5..e756126b2 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef CURLDEBUG
@@ -28,11 +28,11 @@
#define _MPRINTF_REPLACE
#include <curl/mprintf.h>
-#include "urldata.h"
+#include "curl_urldata.h"
#define MEMDEBUG_NODEFINES /* don't redefine the standard functions */
#include "curl_memory.h"
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef HAVE_ASSERT_H
# define assert(x) Curl_nop_stmt
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 1716e3598..fbeb61de5 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -28,7 +28,7 @@
* as well as the library. Do not mix with library internals!
*/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 0990f4024..cbd604d36 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -35,7 +35,7 @@
* page at http://daniel.haxx.se/trio/
*/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(DJGPP) && (DJGPP_MINOR < 4)
#undef _MPRINTF_REPLACE /* don't use x_was_used() here */
@@ -45,7 +45,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef SIZEOF_LONG_DOUBLE
#define SIZEOF_LONG_DOUBLE 0
diff --git a/lib/multi.c b/lib/multi.c
index dae1f6b56..c4f21628d 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -20,32 +20,32 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "transfer.h"
-#include "url.h"
-#include "connect.h"
-#include "progress.h"
-#include "easyif.h"
-#include "multiif.h"
-#include "sendf.h"
-#include "timeval.h"
-#include "http.h"
-#include "select.h"
-#include "warnless.h"
-#include "speedcheck.h"
-#include "conncache.h"
-#include "bundles.h"
+#include "curl_urldata.h"
+#include "curl_transfer.h"
+#include "curl_url.h"
+#include "curl_connect.h"
+#include "curl_progress.h"
+#include "curl_easyif.h"
+#include "curl_multiif.h"
+#include "curl_sendf.h"
+#include "curl_timeval.h"
+#include "curl_http.h"
+#include "curl_select.h"
+#include "curl_warnless.h"
+#include "curl_speedcheck.h"
+#include "curl_conncache.h"
+#include "curl_bundles.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
CURL_SOCKET_HASH_TABLE_SIZE should be a prime number. Increasing it from 97
diff --git a/lib/netrc.c b/lib/netrc.c
index 162a86caa..10853d395 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_PWD_H
#include <pwd.h>
@@ -30,18 +30,18 @@
#endif
#include <curl/curl.h>
-#include "netrc.h"
+#include "curl_netrc.h"
-#include "strequal.h"
-#include "strtok.h"
+#include "curl_strequal.h"
+#include "curl_strtok.h"
#include "curl_memory.h"
-#include "rawstr.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Get user and password from .netrc when given a machine name */
diff --git a/lib/non-ascii.c b/lib/non-ascii.c
index 8e29227c0..b966b5bbf 100644
--- a/lib/non-ascii.c
+++ b/lib/non-ascii.c
@@ -20,20 +20,20 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef CURL_DOES_CONVERSIONS
#include <curl/curl.h>
-#include "non-ascii.h"
-#include "formdata.h"
-#include "sendf.h"
-#include "urldata.h"
+#include "curl_non-ascii.h"
+#include "curl_formdata.h"
+#include "curl_sendf.h"
+#include "curl_urldata.h"
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef HAVE_ICONV
#include <iconv.h>
diff --git a/lib/non-ascii.h b/lib/non-ascii.h
index 6dcbe0044..552a51311 100644
--- a/lib/non-ascii.h
+++ b/lib/non-ascii.h
@@ -21,11 +21,11 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef CURL_DOES_CONVERSIONS
-#include "urldata.h"
+#include "curl_urldata.h"
/*
* Curl_convert_clone() returns a malloced copy of the source string (if
diff --git a/lib/nonblock.c b/lib/nonblock.c
index a2722ed7f..6e6d1287f 100644
--- a/lib/nonblock.c
+++ b/lib/nonblock.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
@@ -37,7 +37,7 @@
#include <inet.h>
#endif
-#include "nonblock.h"
+#include "curl_nonblock.h"
/*
* curlx_nonblock() set the given socket to either blocking or non-blocking
diff --git a/lib/nss.c b/lib/nss.c
index 86ce6a6d5..a6829dffe 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -25,24 +25,24 @@
* but sslgen.c should ever call or use these functions.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_NSS
-#include "urldata.h"
-#include "sendf.h"
-#include "formdata.h" /* for the boundary function */
-#include "url.h" /* for the ssl config check function */
-#include "connect.h"
-#include "strequal.h"
-#include "select.h"
-#include "sslgen.h"
-#include "llist.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_formdata.h" /* for the boundary function */
+#include "curl_url.h" /* for the ssl config check function */
+#include "curl_connect.h"
+#include "curl_strequal.h"
+#include "curl_select.h"
+#include "curl_sslgen.h"
+#include "curl_llist.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
-#include "nssg.h"
+#include "curl_nssg.h"
#include <nspr.h>
#include <nss.h>
#include <ssl.h>
@@ -61,11 +61,11 @@
#include <prerror.h>
#include "curl_memory.h"
-#include "rawstr.h"
-#include "warnless.h"
+#include "curl_rawstr.h"
+#include "curl_warnless.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define SSL_DIR "/etc/pki/nssdb"
diff --git a/lib/nssg.h b/lib/nssg.h
index 647b7bb28..c98c37f14 100644
--- a/lib/nssg.h
+++ b/lib/nssg.h
@@ -21,14 +21,14 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_NSS
/*
* This header should only be needed to get included by sslgen.c and nss.c
*/
-#include "urldata.h"
+#include "curl_urldata.h"
CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex);
CURLcode Curl_nss_connect_nonblocking(struct connectdata *conn,
diff --git a/lib/nwlib.c b/lib/nwlib.c
index c67342a08..f63f16b83 100644
--- a/lib/nwlib.c
+++ b/lib/nwlib.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef NETWARE /* Novell NetWare */
@@ -34,7 +34,7 @@
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
typedef struct
{
diff --git a/lib/nwos.c b/lib/nwos.c
index dd3291155..23ff2a717 100644
--- a/lib/nwos.c
+++ b/lib/nwos.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef NETWARE /* Novell NetWare */
diff --git a/lib/openldap.c b/lib/openldap.c
index 9ccfa7fae..08c06f10d 100644
--- a/lib/openldap.c
+++ b/lib/openldap.c
@@ -21,7 +21,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_LDAP) && defined(USE_OPENLDAP)
@@ -38,11 +38,11 @@
#include <ldap.h>
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "sendf.h"
-#include "sslgen.h"
-#include "transfer.h"
+#include "curl_sendf.h"
+#include "curl_sslgen.h"
+#include "curl_transfer.h"
#include "curl_ldap.h"
#include "curl_memory.h"
#include "curl_base64.h"
@@ -50,7 +50,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef _LDAP_PVT_H
extern int ldap_pvt_url_scheme2proto(const char *);
diff --git a/lib/parsedate.c b/lib/parsedate.c
index b6079bc8f..a50b6074e 100644
--- a/lib/parsedate.c
+++ b/lib/parsedate.c
@@ -73,16 +73,16 @@
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#include <curl/curl.h>
-#include "rawstr.h"
-#include "warnless.h"
-#include "parsedate.h"
+#include "curl_rawstr.h"
+#include "curl_warnless.h"
+#include "curl_parsedate.h"
const char * const Curl_wkday[] =
{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
diff --git a/lib/pingpong.c b/lib/pingpong.c
index 85a7a45af..468174457 100644
--- a/lib/pingpong.c
+++ b/lib/pingpong.c
@@ -23,23 +23,23 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "urldata.h"
-#include "sendf.h"
-#include "select.h"
-#include "progress.h"
-#include "speedcheck.h"
-#include "pingpong.h"
-#include "multiif.h"
-#include "non-ascii.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_select.h"
+#include "curl_progress.h"
+#include "curl_speedcheck.h"
+#include "curl_pingpong.h"
+#include "curl_multiif.h"
+#include "curl_non-ascii.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef USE_PINGPONG
diff --git a/lib/pingpong.h b/lib/pingpong.h
index 1d104cfbc..77060786a 100644
--- a/lib/pingpong.h
+++ b/lib/pingpong.h
@@ -22,14 +22,14 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_IMAP) || !defined(CURL_DISABLE_FTP) || \
!defined(CURL_DISABLE_POP3) || !defined(CURL_DISABLE_SMTP)
#define USE_PINGPONG
#endif
-/* forward-declaration, this is defined in urldata.h */
+/* forward-declaration, this is defined in curl_urldata.h */
struct connectdata;
/*
diff --git a/lib/polarssl.c b/lib/polarssl.c
index ef074be13..35794224b 100644
--- a/lib/polarssl.c
+++ b/lib/polarssl.c
@@ -27,7 +27,7 @@
*
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_POLARSSL
@@ -49,21 +49,21 @@
#define POLARSSL_ERR_NET_WANT_WRITE POLARSSL_ERR_NET_TRY_AGAIN
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "inet_pton.h"
-#include "polarssl.h"
-#include "sslgen.h"
-#include "parsedate.h"
-#include "connect.h" /* for the connect timeout */
-#include "select.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_inet_pton.h"
+#include "curl_polarssl.h"
+#include "curl_sslgen.h"
+#include "curl_parsedate.h"
+#include "curl_connect.h" /* for the connect timeout */
+#include "curl_select.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* version dependent differences */
#if POLARSSL_VERSION_NUMBER < 0x01010000
diff --git a/lib/polarssl.h b/lib/polarssl.h
index ad655465e..12b3db28c 100644
--- a/lib/polarssl.h
+++ b/lib/polarssl.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_POLARSSL
diff --git a/lib/pop3.c b/lib/pop3.c
index 7fb4f5c35..60b98237c 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -29,7 +29,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_POP3
@@ -56,36 +56,36 @@
#endif
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "if2ip.h"
-#include "hostip.h"
-#include "progress.h"
-#include "transfer.h"
-#include "escape.h"
-#include "http.h" /* for HTTP proxy tunnel stuff */
-#include "socks.h"
-#include "pop3.h"
-
-#include "strtoofft.h"
-#include "strequal.h"
-#include "sslgen.h"
-#include "connect.h"
-#include "strerror.h"
-#include "select.h"
-#include "multiif.h"
-#include "url.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_if2ip.h"
+#include "curl_hostip.h"
+#include "curl_progress.h"
+#include "curl_transfer.h"
+#include "curl_escape.h"
+#include "curl_http.h" /* for HTTP proxy tunnel stuff */
+#include "curl_socks.h"
+#include "curl_pop3.h"
+
+#include "curl_strtoofft.h"
+#include "curl_strequal.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_select.h"
+#include "curl_multiif.h"
+#include "curl_url.h"
+#include "curl_rawstr.h"
#include "curl_sasl.h"
#include "curl_md5.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Local API functions */
static CURLcode pop3_parse_url_path(struct connectdata *conn);
diff --git a/lib/progress.c b/lib/progress.c
index e73f01811..88f802d0a 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -20,11 +20,11 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "urldata.h"
-#include "sendf.h"
-#include "progress.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_progress.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
diff --git a/lib/progress.h b/lib/progress.h
index f97fef996..e68f80416 100644
--- a/lib/progress.h
+++ b/lib/progress.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "timeval.h"
+#include "curl_timeval.h"
typedef enum {
diff --git a/lib/qssl.c b/lib/qssl.c
index 172df3141..d140dc9eb 100644
--- a/lib/qssl.c
+++ b/lib/qssl.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_QSOSSL
@@ -31,15 +31,15 @@
#endif
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "qssl.h"
-#include "sslgen.h"
-#include "connect.h" /* for the connect timeout */
-#include "select.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_qssl.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h" /* for the connect timeout */
+#include "curl_select.h"
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
int Curl_qsossl_init(void)
diff --git a/lib/qssl.h b/lib/qssl.h
index a523cb1f3..3801a1185 100644
--- a/lib/qssl.h
+++ b/lib/qssl.h
@@ -21,13 +21,13 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
/*
* This header should only be needed to get included by sslgen.c and qssl.c
*/
-#include "urldata.h"
+#include "curl_urldata.h"
#ifdef USE_QSOSSL
int Curl_qsossl_init(void);
diff --git a/lib/rawstr.c b/lib/rawstr.c
index 2cf2fe7cb..17fd1f3f5 100644
--- a/lib/rawstr.c
+++ b/lib/rawstr.c
@@ -20,9 +20,9 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "rawstr.h"
+#include "curl_rawstr.h"
/* Portable, consistent toupper (remember EBCDIC). Do not use toupper() because
its behavior is altered by the current locale. */
diff --git a/lib/rtsp.c b/lib/rtsp.c
index ca9788ef7..917c6f20e 100644
--- a/lib/rtsp.c
+++ b/lib/rtsp.c
@@ -20,29 +20,29 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_RTSP
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sendf.h"
-#include "multiif.h"
-#include "http.h"
-#include "url.h"
-#include "progress.h"
-#include "rtsp.h"
-#include "rawstr.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
+#include "curl_multiif.h"
+#include "curl_http.h"
+#include "curl_url.h"
+#include "curl_progress.h"
+#include "curl_rtsp.h"
+#include "curl_rawstr.h"
#include "curl_memory.h"
-#include "select.h"
-#include "connect.h"
+#include "curl_select.h"
+#include "curl_connect.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* TODO (general)
diff --git a/lib/security.c b/lib/security.c
index b70310b89..b7544ffbd 100644
--- a/lib/security.c
+++ b/lib/security.c
@@ -41,7 +41,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. */
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_FTP
#if defined(HAVE_KRB4) || defined(HAVE_GSSAPI)
@@ -54,17 +54,17 @@
#include <limits.h>
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include "curl_base64.h"
#include "curl_memory.h"
-#include "krb4.h"
-#include "ftp.h"
-#include "sendf.h"
-#include "rawstr.h"
-#include "warnless.h"
+#include "curl_krb4.h"
+#include "curl_ftp.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
+#include "curl_warnless.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static const struct {
enum protection_level level;
diff --git a/lib/select.c b/lib/select.c
index 32b6fa55f..d4519d39e 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
@@ -41,10 +41,10 @@
#include <curl/curl.h>
-#include "urldata.h"
-#include "connect.h"
-#include "select.h"
-#include "warnless.h"
+#include "curl_urldata.h"
+#include "curl_connect.h"
+#include "curl_select.h"
+#include "curl_warnless.h"
/* Convenience local macros */
diff --git a/lib/select.h b/lib/select.h
index d66873fe9..00789bb89 100644
--- a/lib/select.h
+++ b/lib/select.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
diff --git a/lib/sendf.c b/lib/sendf.c
index b45e43a32..35f0d0ea9 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -20,34 +20,34 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "connect.h"
-#include "sslgen.h"
-#include "ssh.h"
-#include "multiif.h"
-#include "non-ascii.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_connect.h"
+#include "curl_sslgen.h"
+#include "curl_ssh.h"
+#include "curl_multiif.h"
+#include "curl_non-ascii.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
/* the krb4 functions only exists for FTP and if krb4 or gssapi is defined */
#if !defined(CURL_DISABLE_FTP) && (defined(HAVE_KRB4) || defined(HAVE_GSSAPI))
-#include "krb4.h"
+#include "curl_krb4.h"
#else
#define Curl_sec_send(a,b,c,d) -1
#define Curl_sec_read(a,b,c,d) -1
#endif
#include "curl_memory.h"
-#include "strerror.h"
+#include "curl_strerror.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef CURL_DO_LINEEND_CONV
/*
@@ -385,7 +385,7 @@ static CURLcode pausewrite(struct SessionHandle *data,
/* Curl_client_write() sends data to the write callback(s)
The bit pattern defines to what "streams" to write to. Body and/or header.
- The defines are in sendf.h of course.
+ The defines are in curl_sendf.h of course.
If CURL_DO_LINEEND_CONV is enabled, data is converted IN PLACE to the
local character encoding. This is a problem and should be changed in
diff --git a/lib/sendf.h b/lib/sendf.h
index 39911d016..39489e40f 100644
--- a/lib/sendf.h
+++ b/lib/sendf.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
CURLcode Curl_sendf(curl_socket_t sockfd, struct connectdata *,
const char *fmt, ...);
diff --git a/lib/setup.h b/lib/setup.h
index 6d2dc90a8..291567e42 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -645,8 +645,8 @@ int netware_init(void);
* Include macros and defines that should only be processed once.
*/
-#ifndef __SETUP_ONCE_H
-#include "setup_once.h"
+#ifndef HEADER_CURL_SETUP_ONCE_H
+#include "curl_setup_once.h"
#endif
/*
diff --git a/lib/share.c b/lib/share.c
index 477c35b0b..182e6e99b 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -20,16 +20,16 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "share.h"
-#include "sslgen.h"
+#include "curl_urldata.h"
+#include "curl_share.h"
+#include "curl_sslgen.h"
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
CURLSH *
curl_share_init(void)
diff --git a/lib/share.h b/lib/share.h
index b9e6c2538..ecf6f2a79 100644
--- a/lib/share.h
+++ b/lib/share.h
@@ -22,10 +22,10 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "cookie.h"
-#include "urldata.h"
+#include "curl_cookie.h"
+#include "curl_urldata.h"
/* SalfordC says "A structure member may not be volatile". Hence:
*/
diff --git a/lib/slist.c b/lib/slist.c
index 4ddebb609..2a30ea620 100644
--- a/lib/slist.c
+++ b/lib/slist.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include "curl_memory.h"
-#include "slist.h"
+#include "curl_slist.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* returns last node in linked list */
static struct curl_slist *slist_get_last(struct curl_slist *list)
diff --git a/lib/smtp.c b/lib/smtp.c
index dd39b83b6..af1eb40f8 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -27,7 +27,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_SMTP
@@ -54,36 +54,36 @@
#endif
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "if2ip.h"
-#include "hostip.h"
-#include "progress.h"
-#include "transfer.h"
-#include "escape.h"
-#include "http.h" /* for HTTP proxy tunnel stuff */
-#include "socks.h"
-#include "smtp.h"
-
-#include "strtoofft.h"
-#include "strequal.h"
-#include "sslgen.h"
-#include "connect.h"
-#include "strerror.h"
-#include "select.h"
-#include "multiif.h"
-#include "url.h"
-#include "rawstr.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_if2ip.h"
+#include "curl_hostip.h"
+#include "curl_progress.h"
+#include "curl_transfer.h"
+#include "curl_escape.h"
+#include "curl_http.h" /* for HTTP proxy tunnel stuff */
+#include "curl_socks.h"
+#include "curl_smtp.h"
+
+#include "curl_strtoofft.h"
+#include "curl_strequal.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_select.h"
+#include "curl_multiif.h"
+#include "curl_url.h"
+#include "curl_rawstr.h"
#include "curl_gethostname.h"
#include "curl_sasl.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Local API functions */
static CURLcode smtp_regular_transfer(struct connectdata *conn, bool *done);
diff --git a/lib/smtp.h b/lib/smtp.h
index d30c10a8c..2f919d199 100644
--- a/lib/smtp.h
+++ b/lib/smtp.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "pingpong.h"
+#include "curl_pingpong.h"
/****************************************************************************
* SMTP unique setup
diff --git a/lib/sockaddr.h b/lib/sockaddr.h
index 522a2199f..6a2151c9d 100644
--- a/lib/sockaddr.h
+++ b/lib/sockaddr.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
struct Curl_sockaddr_storage {
union {
diff --git a/lib/socks.c b/lib/socks.c
index 13a756a40..1b70dd629 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if !defined(CURL_DISABLE_PROXY)
@@ -31,16 +31,16 @@
#include <arpa/inet.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "strequal.h"
-#include "select.h"
-#include "connect.h"
-#include "timeval.h"
-#include "socks.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_strequal.h"
+#include "curl_select.h"
+#include "curl_connect.h"
+#include "curl_timeval.h"
+#include "curl_socks.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Helper read-from-socket functions. Does the same as Curl_read() but it
diff --git a/lib/socks.h b/lib/socks.h
index 0ce0bd044..dc4670b24 100644
--- a/lib/socks.h
+++ b/lib/socks.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef CURL_DISABLE_PROXY
#define Curl_SOCKS4(a,b,c,d,e,f) CURLE_NOT_BUILT_IN
diff --git a/lib/socks_gssapi.c b/lib/socks_gssapi.c
index 02dd485f1..2bd3d4508 100644
--- a/lib/socks_gssapi.c
+++ b/lib/socks_gssapi.c
@@ -21,7 +21,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_PROXY
@@ -35,19 +35,19 @@
#endif
#include "curl_gssapi.h"
-#include "urldata.h"
-#include "sendf.h"
-#include "connect.h"
-#include "timeval.h"
-#include "socks.h"
-#include "warnless.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_connect.h"
+#include "curl_timeval.h"
+#include "curl_socks.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
static gss_ctx_id_t gss_context = GSS_C_NO_CONTEXT;
diff --git a/lib/socks_sspi.c b/lib/socks_sspi.c
index 6e95e3c35..c57610717 100644
--- a/lib/socks_sspi.c
+++ b/lib/socks_sspi.c
@@ -21,26 +21,26 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(USE_WINDOWS_SSPI) && !defined(CURL_DISABLE_PROXY)
-#include "urldata.h"
-#include "sendf.h"
-#include "connect.h"
-#include "strerror.h"
-#include "timeval.h"
-#include "socks.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_timeval.h"
+#include "curl_socks.h"
#include "curl_sspi.h"
#include "curl_multibyte.h"
-#include "warnless.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/*
* Definitions required from ntsecapi.h are directly provided below this point
diff --git a/lib/speedcheck.c b/lib/speedcheck.c
index ca2323f57..b9ce77dbf 100644
--- a/lib/speedcheck.c
+++ b/lib/speedcheck.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "multiif.h"
-#include "speedcheck.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_multiif.h"
+#include "curl_speedcheck.h"
void Curl_speedinit(struct SessionHandle *data)
{
diff --git a/lib/speedcheck.h b/lib/speedcheck.h
index fc40e7d0c..a933781c0 100644
--- a/lib/speedcheck.h
+++ b/lib/speedcheck.h
@@ -22,9 +22,9 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "timeval.h"
+#include "curl_timeval.h"
void Curl_speedinit(struct SessionHandle *data);
CURLcode Curl_speedcheck(struct SessionHandle *data,
diff --git a/lib/splay.c b/lib/splay.c
index b6664e6df..21f1d222e 100644
--- a/lib/splay.c
+++ b/lib/splay.c
@@ -20,9 +20,9 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "splay.h"
+#include "curl_splay.h"
/*
* This macro compares two node keys i and j and returns:
diff --git a/lib/splay.h b/lib/splay.h
index 49a6dec41..5f9ef24cc 100644
--- a/lib/splay.h
+++ b/lib/splay.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
struct Curl_tree {
struct Curl_tree *smaller; /* smaller node */
diff --git a/lib/ssh.c b/lib/ssh.c
index 1cc4bcd4c..2eac88f2e 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -22,7 +22,7 @@
/* #define CURL_LIBSSH2_DEBUG */
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_LIBSSH2
@@ -60,36 +60,36 @@
#endif
#include <curl/curl.h>
-#include "urldata.h"
-#include "sendf.h"
-#include "hostip.h"
-#include "progress.h"
-#include "transfer.h"
-#include "escape.h"
-#include "http.h" /* for HTTP proxy tunnel stuff */
-#include "ssh.h"
-#include "url.h"
-#include "speedcheck.h"
-#include "getinfo.h"
-
-#include "strequal.h"
-#include "sslgen.h"
-#include "connect.h"
-#include "strerror.h"
-#include "inet_ntop.h"
-#include "parsedate.h" /* for the week day and month names */
-#include "sockaddr.h" /* required for Curl_sockaddr_storage */
-#include "strtoofft.h"
-#include "multiif.h"
-#include "select.h"
-#include "warnless.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_hostip.h"
+#include "curl_progress.h"
+#include "curl_transfer.h"
+#include "curl_escape.h"
+#include "curl_http.h" /* for HTTP proxy tunnel stuff */
+#include "curl_ssh.h"
+#include "curl_url.h"
+#include "curl_speedcheck.h"
+#include "curl_getinfo.h"
+
+#include "curl_strequal.h"
+#include "curl_sslgen.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_inet_ntop.h"
+#include "curl_parsedate.h" /* for the week day and month names */
+#include "curl_sockaddr.h" /* required for Curl_sockaddr_storage */
+#include "curl_strtoofft.h"
+#include "curl_multiif.h"
+#include "curl_select.h"
+#include "curl_warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifdef WIN32
# undef PATH_MAX
diff --git a/lib/ssh.h b/lib/ssh.h
index bf43fdf3a..ff2e16be9 100644
--- a/lib/ssh.h
+++ b/lib/ssh.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_LIBSSH2_H
#include <libssh2.h>
diff --git a/lib/sslgen.c b/lib/sslgen.c
index 67dd71fa6..d85ba8ae6 100644
--- a/lib/sslgen.c
+++ b/lib/sslgen.c
@@ -43,28 +43,28 @@
http://httpd.apache.org/docs-2.0/ssl/ssl_intro.html
*/
-#include "setup.h"
+#include "curl_setup.h"
-#include "urldata.h"
+#include "curl_urldata.h"
#define SSLGEN_C
-#include "sslgen.h" /* generic SSL protos etc */
-#include "ssluse.h" /* OpenSSL versions */
-#include "gtls.h" /* GnuTLS versions */
-#include "nssg.h" /* NSS versions */
-#include "qssl.h" /* QSOSSL versions */
-#include "polarssl.h" /* PolarSSL versions */
-#include "axtls.h" /* axTLS versions */
-#include "cyassl.h" /* CyaSSL versions */
+#include "curl_sslgen.h" /* generic SSL protos etc */
+#include "curl_ssluse.h" /* OpenSSL versions */
+#include "curl_gtls.h" /* GnuTLS versions */
+#include "curl_nssg.h" /* NSS versions */
+#include "curl_qssl.h" /* QSOSSL versions */
+#include "curl_polarssl.h" /* PolarSSL versions */
+#include "curl_axtls.h" /* axTLS versions */
+#include "curl_cyassl.h" /* CyaSSL versions */
#include "curl_schannel.h" /* Schannel SSPI version */
#include "curl_darwinssl.h" /* SecureTransport (Darwin) version */
-#include "sendf.h"
-#include "rawstr.h"
-#include "url.h"
+#include "curl_sendf.h"
+#include "curl_rawstr.h"
+#include "curl_url.h"
#include "curl_memory.h"
-#include "progress.h"
-#include "share.h"
+#include "curl_progress.h"
+#include "curl_share.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* convenience macro to check if this handle is using a shared SSL session */
#define SSLSESSION_SHARED(data) (data->share && \
diff --git a/lib/sslgen.h b/lib/sslgen.h
index 2369b552c..17ad8e343 100644
--- a/lib/sslgen.h
+++ b/lib/sslgen.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef MD5_DIGEST_LENGTH
#define MD5_DIGEST_LENGTH 16 /* fixed size */
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 8f9fce4c8..c5e56099b 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -30,24 +30,24 @@
* Sampo Kellomaki 1998.
*/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
-#include "urldata.h"
-#include "sendf.h"
-#include "formdata.h" /* for the boundary function */
-#include "url.h" /* for the ssl config check function */
-#include "inet_pton.h"
-#include "ssluse.h"
-#include "connect.h"
-#include "strequal.h"
-#include "select.h"
-#include "sslgen.h"
-#include "rawstr.h"
-#include "hostcheck.h"
+#include "curl_urldata.h"
+#include "curl_sendf.h"
+#include "curl_formdata.h" /* for the boundary function */
+#include "curl_url.h" /* for the ssl config check function */
+#include "curl_inet_pton.h"
+#include "curl_ssluse.h"
+#include "curl_connect.h"
+#include "curl_strequal.h"
+#include "curl_select.h"
+#include "curl_sslgen.h"
+#include "curl_rawstr.h"
+#include "curl_hostcheck.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
@@ -67,12 +67,12 @@
#include <md5.h>
#endif
-#include "warnless.h"
+#include "curl_warnless.h"
#include "curl_memory.h"
-#include "non-ascii.h" /* for Curl_convert_from_utf8 prototype */
+#include "curl_non-ascii.h" /* for Curl_convert_from_utf8 prototype */
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#ifndef OPENSSL_VERSION_NUMBER
#error "OPENSSL_VERSION_NUMBER not defined"
diff --git a/lib/ssluse.h b/lib/ssluse.h
index 5375a6a65..42e999eec 100644
--- a/lib/ssluse.h
+++ b/lib/ssluse.h
@@ -22,14 +22,14 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef USE_SSLEAY
/*
* This header should only be needed to get included by sslgen.c and ssluse.c
*/
-#include "urldata.h"
+#include "curl_urldata.h"
CURLcode Curl_ossl_connect(struct connectdata *conn, int sockindex);
CURLcode Curl_ossl_connect_nonblocking(struct connectdata *conn,
diff --git a/lib/strdup.c b/lib/strdup.c
index 27014354d..8dcaa67f0 100644
--- a/lib/strdup.c
+++ b/lib/strdup.c
@@ -22,9 +22,9 @@
/*
* This file is 'mem-include-scan' clean. See test 1132.
*/
-#include "setup.h"
+#include "curl_setup.h"
-#include "strdup.h"
+#include "curl_strdup.h"
#ifndef HAVE_STRDUP
char *curlx_strdup(const char *str)
diff --git a/lib/strdup.h b/lib/strdup.h
index 4edbcd7d4..49af9117e 100644
--- a/lib/strdup.h
+++ b/lib/strdup.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef HAVE_STRDUP
extern char *curlx_strdup(const char *str);
diff --git a/lib/strequal.c b/lib/strequal.c
index 89ad8a6e8..5d370c854 100644
--- a/lib/strequal.c
+++ b/lib/strequal.c
@@ -20,13 +20,13 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
-#include "strequal.h"
+#include "curl_strequal.h"
/*
* @unittest: 1301
diff --git a/lib/strerror.c b/lib/strerror.c
index 0c82a53e4..27567a1ac 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_STRERROR_R
# if (!defined(HAVE_POSIX_STRERROR_R) && \
@@ -39,14 +39,14 @@
#include <idna.h>
#endif
-#include "strerror.h"
+#include "curl_strerror.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
const char *
curl_easy_strerror(CURLcode error)
diff --git a/lib/strerror.h b/lib/strerror.h
index f1b22210a..60f193f97 100644
--- a/lib/strerror.h
+++ b/lib/strerror.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "urldata.h"
+#include "curl_urldata.h"
const char *Curl_strerror (struct connectdata *conn, int err);
diff --git a/lib/strtok.c b/lib/strtok.c
index 94eac0e64..33bdd96af 100644
--- a/lib/strtok.c
+++ b/lib/strtok.c
@@ -20,12 +20,12 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef HAVE_STRTOK_R
#include <stddef.h>
-#include "strtok.h"
+#include "curl_strtok.h"
char *
Curl_strtok_r(char *ptr, const char *sep, char **end)
diff --git a/lib/strtok.h b/lib/strtok.h
index 8baf77948..1147d70d3 100644
--- a/lib/strtok.h
+++ b/lib/strtok.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <stddef.h>
#ifndef HAVE_STRTOK_R
diff --git a/lib/strtoofft.c b/lib/strtoofft.c
index c61459de8..d203d9cc7 100644
--- a/lib/strtoofft.c
+++ b/lib/strtoofft.c
@@ -20,9 +20,9 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "strtoofft.h"
+#include "curl_strtoofft.h"
/*
* NOTE:
diff --git a/lib/strtoofft.h b/lib/strtoofft.h
index 08b0e6d91..b812a67a0 100644
--- a/lib/strtoofft.h
+++ b/lib/strtoofft.h
@@ -22,7 +22,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
/*
* Determine which string to integral data type conversion function we use
diff --git a/lib/telnet.c b/lib/telnet.c
index a64da090f..54eab1c92 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_TELNET
@@ -44,13 +44,13 @@
#include <sys/param.h>
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sendf.h"
-#include "telnet.h"
-#include "connect.h"
-#include "progress.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
+#include "curl_telnet.h"
+#include "curl_connect.h"
+#include "curl_progress.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -58,15 +58,15 @@
#define TELOPTS
#define TELCMDS
-#include "arpa_telnet.h"
+#include "curl_arpa_telnet.h"
#include "curl_memory.h"
-#include "select.h"
-#include "strequal.h"
-#include "rawstr.h"
-#include "warnless.h"
+#include "curl_select.h"
+#include "curl_strequal.h"
+#include "curl_rawstr.h"
+#include "curl_warnless.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define SUBBUFSIZE 512
diff --git a/lib/tftp.c b/lib/tftp.c
index 97276ea99..39d9f58e5 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifndef CURL_DISABLE_TFTP
@@ -44,27 +44,27 @@
#include <sys/param.h>
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "transfer.h"
-#include "sendf.h"
-#include "tftp.h"
-#include "progress.h"
-#include "connect.h"
-#include "strerror.h"
-#include "sockaddr.h" /* required for Curl_sockaddr_storage */
-#include "multiif.h"
-#include "url.h"
-#include "rawstr.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
+#include "curl_tftp.h"
+#include "curl_progress.h"
+#include "curl_connect.h"
+#include "curl_strerror.h"
+#include "curl_sockaddr.h" /* required for Curl_sockaddr_storage */
+#include "curl_multiif.h"
+#include "curl_url.h"
+#include "curl_rawstr.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
-#include "select.h"
+#include "curl_select.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* RFC2348 allows the block size to be negotiated */
#define TFTP_BLKSIZE_DEFAULT 512
diff --git a/lib/timeval.c b/lib/timeval.c
index 2fd720144..8e4c7bd76 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "timeval.h"
+#include "curl_timeval.h"
#if defined(WIN32) && !defined(MSDOS)
diff --git a/lib/timeval.h b/lib/timeval.h
index b464ae406..3f1b9ea70 100644
--- a/lib/timeval.h
+++ b/lib/timeval.h
@@ -27,7 +27,7 @@
* as well as the library. Do not mix with library internals!
*/
-#include "setup.h"
+#include "curl_setup.h"
struct timeval curlx_tvnow(void);
diff --git a/lib/transfer.c b/lib/transfer.c
index 6194908d6..c37f6c6b2 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -20,11 +20,11 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "strtoofft.h"
-#include "strequal.h"
-#include "rawstr.h"
+#include "curl_strtoofft.h"
+#include "curl_strequal.h"
+#include "curl_rawstr.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -57,35 +57,35 @@
#error "We can't compile without socket() support!"
#endif
-#include "urldata.h"
+#include "curl_urldata.h"
#include <curl/curl.h>
-#include "netrc.h"
-
-#include "content_encoding.h"
-#include "hostip.h"
-#include "transfer.h"
-#include "sendf.h"
-#include "speedcheck.h"
-#include "progress.h"
-#include "http.h"
-#include "url.h"
-#include "getinfo.h"
-#include "sslgen.h"
-#include "http_digest.h"
+#include "curl_netrc.h"
+
+#include "curl_content_encoding.h"
+#include "curl_hostip.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
+#include "curl_speedcheck.h"
+#include "curl_progress.h"
+#include "curl_http.h"
+#include "curl_url.h"
+#include "curl_getinfo.h"
+#include "curl_sslgen.h"
+#include "curl_http_digest.h"
#include "curl_ntlm.h"
-#include "http_negotiate.h"
-#include "share.h"
+#include "curl_http_negotiate.h"
+#include "curl_share.h"
#include "curl_memory.h"
-#include "select.h"
-#include "multiif.h"
-#include "connect.h"
-#include "non-ascii.h"
+#include "curl_select.h"
+#include "curl_multiif.h"
+#include "curl_connect.h"
+#include "curl_non-ascii.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
#define CURL_TIMEOUT_EXPECT_100 1000 /* counting ms here */
@@ -1725,7 +1725,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
char *newurl, /* this 'newurl' is the Location: string,
and it must be malloc()ed before passed
here */
- followtype type) /* see transfer.h */
+ followtype type) /* see curl_transfer.h */
{
#ifdef CURL_DISABLE_HTTP
(void)data;
diff --git a/lib/url.c b/lib/url.c
index 58befecab..8c2ab27cb 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
@@ -74,61 +74,61 @@ void idn_free (void *ptr);
int curl_win32_idn_to_ascii(const char *in, char **out);
#endif /* USE_LIBIDN */
-#include "urldata.h"
-#include "netrc.h"
-
-#include "formdata.h"
-#include "sslgen.h"
-#include "hostip.h"
-#include "transfer.h"
-#include "sendf.h"
-#include "progress.h"
-#include "cookie.h"
-#include "strequal.h"
-#include "strerror.h"
-#include "escape.h"
-#include "strtok.h"
-#include "share.h"
-#include "content_encoding.h"
-#include "http_digest.h"
-#include "http_negotiate.h"
-#include "select.h"
-#include "multiif.h"
-#include "easyif.h"
-#include "speedcheck.h"
-#include "rawstr.h"
-#include "warnless.h"
-#include "non-ascii.h"
-#include "inet_pton.h"
+#include "curl_urldata.h"
+#include "curl_netrc.h"
+
+#include "curl_formdata.h"
+#include "curl_sslgen.h"
+#include "curl_hostip.h"
+#include "curl_transfer.h"
+#include "curl_sendf.h"
+#include "curl_progress.h"
+#include "curl_cookie.h"
+#include "curl_strequal.h"
+#include "curl_strerror.h"
+#include "curl_escape.h"
+#include "curl_strtok.h"
+#include "curl_share.h"
+#include "curl_content_encoding.h"
+#include "curl_http_digest.h"
+#include "curl_http_negotiate.h"
+#include "curl_select.h"
+#include "curl_multiif.h"
+#include "curl_easyif.h"
+#include "curl_speedcheck.h"
+#include "curl_rawstr.h"
+#include "curl_warnless.h"
+#include "curl_non-ascii.h"
+#include "curl_inet_pton.h"
/* And now for the protocols */
-#include "ftp.h"
-#include "dict.h"
-#include "telnet.h"
-#include "tftp.h"
-#include "http.h"
-#include "file.h"
+#include "curl_ftp.h"
+#include "curl_dict.h"
+#include "curl_telnet.h"
+#include "curl_tftp.h"
+#include "curl_http.h"
+#include "curl_file.h"
#include "curl_ldap.h"
-#include "ssh.h"
-#include "imap.h"
-#include "url.h"
-#include "connect.h"
-#include "inet_ntop.h"
+#include "curl_ssh.h"
+#include "curl_imap.h"
+#include "curl_url.h"
+#include "curl_connect.h"
+#include "curl_inet_ntop.h"
#include "curl_ntlm.h"
#include "curl_ntlm_wb.h"
-#include "socks.h"
+#include "curl_socks.h"
#include "curl_rtmp.h"
-#include "gopher.h"
-#include "http_proxy.h"
-#include "bundles.h"
-#include "conncache.h"
+#include "curl_gopher.h"
+#include "curl_http_proxy.h"
+#include "curl_bundles.h"
+#include "curl_conncache.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
/* Local static prototypes */
static bool ConnectionKillOne(struct SessionHandle *data);
@@ -508,7 +508,7 @@ CURLcode Curl_init_userdefined(struct UserDefined *set)
/* Set the default size of the SSL session ID cache */
set->ssl.max_ssl_sessions = 5;
- set->proxyport = CURL_DEFAULT_PROXY_PORT; /* from url.h */
+ set->proxyport = CURL_DEFAULT_PROXY_PORT; /* from curl_url.h */
set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */
set->httpauth = CURLAUTH_BASIC; /* defaults to basic */
set->proxyauth = CURLAUTH_BASIC; /* defaults to basic */
diff --git a/lib/url.h b/lib/url.h
index ab6d3d048..a026e90e8 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -21,7 +21,7 @@
* KIND, either express or implied.
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
/*
* Prototypes for library-wide functions provided by url.c
diff --git a/lib/urldata.h b/lib/urldata.h
index cd50f623f..d5d1859c9 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -24,7 +24,7 @@
/* This file is for lib internal stuff */
-#include "setup.h"
+#include "curl_setup.h"
#define PORT_FTP 21
#define PORT_FTPS 990
@@ -66,8 +66,8 @@
*/
#define RESP_TIMEOUT (1800*1000)
-#include "cookie.h"
-#include "formdata.h"
+#include "curl_cookie.h"
+#include "curl_formdata.h"
#ifdef USE_SSLEAY
#ifdef USE_OPENSSL
@@ -150,7 +150,7 @@
#include <netinet/in.h>
#endif
-#include "timeval.h"
+#include "curl_timeval.h"
#ifdef HAVE_ZLIB_H
#include <zlib.h> /* for content-encoding */
@@ -162,20 +162,20 @@
#include <curl/curl.h>
-#include "http_chunks.h" /* for the structs and enum stuff */
-#include "hostip.h"
-#include "hash.h"
-#include "splay.h"
-
-#include "imap.h"
-#include "pop3.h"
-#include "smtp.h"
-#include "ftp.h"
-#include "file.h"
-#include "ssh.h"
-#include "http.h"
-#include "rtsp.h"
-#include "wildcard.h"
+#include "curl_http_chunks.h" /* for the structs and enum stuff */
+#include "curl_hostip.h"
+#include "curl_hash.h"
+#include "curl_splay.h"
+
+#include "curl_imap.h"
+#include "curl_pop3.h"
+#include "curl_smtp.h"
+#include "curl_ftp.h"
+#include "curl_file.h"
+#include "curl_ssh.h"
+#include "curl_http.h"
+#include "curl_rtsp.h"
+#include "curl_wildcard.h"
#ifdef HAVE_GSSAPI
# ifdef HAVE_GSSGNU
@@ -1068,7 +1068,7 @@ struct Progress {
bool callback; /* set when progress callback is used */
int width; /* screen width at download start */
- int flags; /* see progress.h */
+ int flags; /* see curl_progress.h */
double timespent;
diff --git a/lib/version.c b/lib/version.c
index ef8353ae2..fe1f73660 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -20,11 +20,11 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#include <curl/curl.h>
-#include "urldata.h"
-#include "sslgen.h"
+#include "curl_urldata.h"
+#include "curl_sslgen.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
diff --git a/lib/warnless.c b/lib/warnless.c
index 9cc7be9d3..30cdbe6f0 100644
--- a/lib/warnless.c
+++ b/lib/warnless.c
@@ -20,7 +20,7 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
#if defined(__INTEL_COMPILER) && defined(__unix__)
@@ -35,7 +35,7 @@
#define BUILDING_WARNLESS_C 1
-#include "warnless.h"
+#include "curl_warnless.h"
#define CURL_MASK_SCHAR 0x7F
#define CURL_MASK_UCHAR 0xFF
diff --git a/lib/wildcard.c b/lib/wildcard.c
index 6f4c7380c..d6ba2b276 100644
--- a/lib/wildcard.c
+++ b/lib/wildcard.c
@@ -20,18 +20,18 @@
*
***************************************************************************/
-#include "setup.h"
+#include "curl_setup.h"
-#include "wildcard.h"
-#include "llist.h"
-#include "fileinfo.h"
+#include "curl_wildcard.h"
+#include "curl_llist.h"
+#include "curl_fileinfo.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
/* The last #include file should be: */
-#include "memdebug.h"
+#include "curl_memdebug.h"
CURLcode Curl_wildcard_init(struct WildcardData *wc)
{