diff options
author | Yang Tse <yangsita@gmail.com> | 2012-12-28 12:40:20 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-12-28 19:37:11 +0100 |
commit | f871de0064ee4bd3aee07c5b018f7a6438ec8910 (patch) | |
tree | 8a54d3693c887fe19cf895f1a86775f3f7e4bb70 /src | |
parent | ec691ca34bbba56e365c6c923887cae338093f8a (diff) | |
download | curl-f871de0064ee4bd3aee07c5b018f7a6438ec8910.tar.gz |
build: make use of 76 lib/*.h renamed files
76 private header files renamed to use our standard naming scheme.
This change affects 322 files in libcurl's source tree.
Diffstat (limited to 'src')
41 files changed, 56 insertions, 56 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 93f86cbad..bda835779 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,8 +25,8 @@ source_group("cURL source files" FILES ${CURL_CFILES}) source_group("cURL header files" FILES ${CURL_HFILES}) include_directories( - ${CURL_SOURCE_DIR}/lib # To be able to reach "setup_once.h" - ${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h" + ${CURL_SOURCE_DIR}/lib # To be able to reach "curl_setup_once.h" + ${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h" ${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h" ) diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 444b669ba..df6822aae 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -140,7 +140,7 @@ HEAD if($c) { print <<HEAD #include <zlib.h> -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ static const unsigned char hugehelpgz[] = { /* This mumbo-jumbo is the huge help text compressed with gzip. Thanks to this operation, the size of this data shrunk from $gzip diff --git a/src/tool_binmode.c b/src/tool_binmode.c index 92033ac03..26b50ada2 100644 --- a/src/tool_binmode.c +++ b/src/tool_binmode.c @@ -33,7 +33,7 @@ #include "tool_binmode.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ void set_binmode(FILE *stream) { diff --git a/src/tool_bname.c b/src/tool_bname.c index 277830546..6a2a33165 100644 --- a/src/tool_bname.c +++ b/src/tool_bname.c @@ -23,7 +23,7 @@ #include "tool_bname.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifndef HAVE_BASENAME diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c index 1850ba0c6..321c66133 100644 --- a/src/tool_cb_dbg.c +++ b/src/tool_cb_dbg.c @@ -30,7 +30,7 @@ #include "tool_cb_dbg.h" #include "tool_util.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ static void dump(const char *timebuf, const char *text, FILE *stream, const unsigned char *ptr, size_t size, diff --git a/src/tool_cb_hdr.c b/src/tool_cb_hdr.c index ef340f798..e6988184a 100644 --- a/src/tool_cb_hdr.c +++ b/src/tool_cb_hdr.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -31,7 +31,7 @@ #include "tool_msgs.h" #include "tool_cb_hdr.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ static char *parse_filename(const char *ptr, size_t len); diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c index 7a701b692..1b8842f2a 100644 --- a/src/tool_cb_prg.c +++ b/src/tool_cb_prg.c @@ -28,7 +28,7 @@ #include "tool_cfgable.h" #include "tool_cb_prg.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* ** callback for CURLOPT_PROGRESSFUNCTION diff --git a/src/tool_cb_rea.c b/src/tool_cb_rea.c index 4565a15d6..88dfbe852 100644 --- a/src/tool_cb_rea.c +++ b/src/tool_cb_rea.c @@ -28,7 +28,7 @@ #include "tool_cfgable.h" #include "tool_cb_rea.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* ** callback for CURLOPT_READFUNCTION diff --git a/src/tool_cb_see.c b/src/tool_cb_see.c index 2f49e1d96..1e36f5962 100644 --- a/src/tool_cb_see.c +++ b/src/tool_cb_see.c @@ -28,7 +28,7 @@ #include "tool_cfgable.h" #include "tool_cb_see.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* OUR_MAX_SEEK_L has 'long' data type, OUR_MAX_SEEK_O has 'curl_off_t, both represent the same value. Maximum offset used here when we lseek diff --git a/src/tool_cb_wrt.c b/src/tool_cb_wrt.c index d6688110a..a055b444e 100644 --- a/src/tool_cb_wrt.c +++ b/src/tool_cb_wrt.c @@ -29,7 +29,7 @@ #include "tool_msgs.h" #include "tool_cb_wrt.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* ** callback for CURLOPT_WRITEFUNCTION diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c index da11f4afe..6cd9d33e7 100644 --- a/src/tool_cfgable.c +++ b/src/tool_cfgable.c @@ -23,7 +23,7 @@ #include "tool_cfgable.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ void free_config_fields(struct Configurable *config) { diff --git a/src/tool_convert.c b/src/tool_convert.c index ecce036a0..2011db0e7 100644 --- a/src/tool_convert.c +++ b/src/tool_convert.c @@ -29,7 +29,7 @@ #include "tool_convert.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef HAVE_ICONV diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c index 4ba1c4375..39158edcd 100644 --- a/src/tool_dirhie.c +++ b/src/tool_dirhie.c @@ -33,7 +33,7 @@ #include "tool_dirhie.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef NETWARE # ifndef __NOVELL_LIBC__ diff --git a/src/tool_doswin.c b/src/tool_doswin.c index 4fae91d32..5afff1ecf 100644 --- a/src/tool_doswin.c +++ b/src/tool_doswin.c @@ -35,7 +35,7 @@ #include "tool_bname.h" #include "tool_doswin.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* * Macros ALWAYS_TRUE and ALWAYS_FALSE are used to avoid compiler warnings. diff --git a/src/tool_easysrc.c b/src/tool_easysrc.c index 339dde563..6aaa4116a 100644 --- a/src/tool_easysrc.c +++ b/src/tool_easysrc.c @@ -31,7 +31,7 @@ #include "tool_easysrc.h" #include "tool_msgs.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* global variable definitions, for easy-interface source code generation */ diff --git a/src/tool_formparse.c b/src/tool_formparse.c index 12b1a9d46..76a5db1fc 100644 --- a/src/tool_formparse.c +++ b/src/tool_formparse.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -32,7 +32,7 @@ #include "tool_msgs.h" #include "tool_formparse.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /*************************************************************************** * diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 297b986f5..9938e24ec 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -45,7 +45,7 @@ #include "tool_parsecfg.h" #include "tool_version.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef MSDOS # define USE_WATT32 diff --git a/src/tool_getpass.c b/src/tool_getpass.c index 0ac7dcbe0..6a841d414 100644 --- a/src/tool_getpass.c +++ b/src/tool_getpass.c @@ -57,7 +57,7 @@ #include "tool_getpass.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef __VMS /* VMS implementation */ diff --git a/src/tool_help.c b/src/tool_help.c index 124f6404d..682fee980 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -24,7 +24,7 @@ #include "tool_panykey.h" #include "tool_help.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef MSDOS # define USE_WATT32 diff --git a/src/tool_helpers.c b/src/tool_helpers.c index ae8aaaf32..e37576464 100644 --- a/src/tool_helpers.c +++ b/src/tool_helpers.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -32,7 +32,7 @@ #include "tool_getparam.h" #include "tool_helpers.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* ** Helper functions that are used from more tha one source file. diff --git a/src/tool_homedir.c b/src/tool_homedir.c index cb90095e5..a6e07928f 100644 --- a/src/tool_homedir.c +++ b/src/tool_homedir.c @@ -30,7 +30,7 @@ #include "tool_homedir.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ static char *GetEnv(const char *variable, char do_expand) { diff --git a/src/tool_libinfo.c b/src/tool_libinfo.c index 81b6680c8..c6013a761 100644 --- a/src/tool_libinfo.c +++ b/src/tool_libinfo.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -29,7 +29,7 @@ #include "tool_libinfo.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* global variable definitions, for libcurl run-time info */ diff --git a/src/tool_main.c b/src/tool_main.c index 9c0a19f3f..dc6d8d75d 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -39,7 +39,7 @@ * the library level code from this client-side is ugly, but we do this * anyway for convenience. */ -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef __VMS static int vms_show = 0; diff --git a/src/tool_metalink.c b/src/tool_metalink.c index f9e9869b2..ff5f19c3f 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -89,7 +89,7 @@ struct win32_crypto_hash { # error "Can't compile METALINK support without a crypto library." #endif -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -101,7 +101,7 @@ struct win32_crypto_hash { #include "tool_metalink.h" #include "tool_msgs.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* Copied from tool_getparam.c */ #define GetStr(str,val) do { \ diff --git a/src/tool_mfiles.c b/src/tool_mfiles.c index 3eda45f91..e0cebb109 100644 --- a/src/tool_mfiles.c +++ b/src/tool_mfiles.c @@ -23,7 +23,7 @@ #include "tool_mfiles.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ static void AppendNode(struct multi_files **first, struct multi_files **last, diff --git a/src/tool_msgs.c b/src/tool_msgs.c index 80fdf4e27..9c58afa9c 100644 --- a/src/tool_msgs.c +++ b/src/tool_msgs.c @@ -28,7 +28,7 @@ #include "tool_cfgable.h" #include "tool_msgs.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #define WARN_PREFIX "Warning: " #define WARN_TEXTWIDTH (79 - (int)strlen(WARN_PREFIX)) diff --git a/src/tool_operate.c b/src/tool_operate.c index bcbce2000..aa488899e 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -39,7 +39,7 @@ # include <netinet/tcp.h> #endif -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -74,7 +74,7 @@ #include "tool_writeout.h" #include "tool_xattr.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #define CURLseparator "--_curl_--" diff --git a/src/tool_operhlp.c b/src/tool_operhlp.c index 9078b9564..4f8cdf0c0 100644 --- a/src/tool_operhlp.c +++ b/src/tool_operhlp.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -37,7 +37,7 @@ # include "tool_metalink.h" #endif -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* * my_useragent: returns allocated string with default user agent diff --git a/src/tool_panykey.c b/src/tool_panykey.c index d8718e328..632cd34bd 100644 --- a/src/tool_panykey.c +++ b/src/tool_panykey.c @@ -33,7 +33,7 @@ #include "tool_panykey.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ void tool_pressanykey(void) { diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 5d6f8bbc5..fe2514dfb 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -21,7 +21,7 @@ ***************************************************************************/ #include "tool_setup.h" -#include "rawstr.h" +#include "curl_rawstr.h" #define ENABLE_CURLX_PRINTF /* use our own printf() functions */ @@ -34,7 +34,7 @@ #include "tool_msgs.h" #include "tool_paramhlp.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ struct getout *new_getout(struct Configurable *config) { diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c index 561dada11..21d9e90c5 100644 --- a/src/tool_parsecfg.c +++ b/src/tool_parsecfg.c @@ -32,7 +32,7 @@ #include "tool_msgs.h" #include "tool_parsecfg.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #define CURLRC DOT_CHAR "curlrc" #define ISSEP(x) (((x) == '=') || ((x) == ':')) diff --git a/src/tool_setopt.c b/src/tool_setopt.c index 9aefc21d5..08c1af5cb 100644 --- a/src/tool_setopt.c +++ b/src/tool_setopt.c @@ -31,7 +31,7 @@ #include "tool_easysrc.h" #include "tool_setopt.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ /* Lookup tables for converting setopt values back to symbols */ /* For enums, values may be in any order. */ diff --git a/src/tool_setup.h b/src/tool_setup.h index ed3849ba3..d3dab5c0b 100644 --- a/src/tool_setup.h +++ b/src/tool_setup.h @@ -25,15 +25,15 @@ #define CURL_NO_OLDIES /* - * setup.h may define preprocessor macros such as _FILE_OFFSET_BITS and + * curl_setup.h may define preprocessor macros such as _FILE_OFFSET_BITS and * _LARGE_FILES in order to support files larger than 2 GB. On platforms * where this happens it is mandatory that these macros are defined before * any system header file is included, otherwise file handling function * prototypes will be misdeclared and curl tool may not build properly; - * therefore we must include setup.h before curl.h when building curl. + * therefore we must include curl_setup.h before curl.h when building curl. */ -#include "setup.h" /* from the lib directory */ +#include "curl_setup.h" /* from the lib directory */ /* * curl tool certainly uses libcurl's external interface. @@ -67,7 +67,7 @@ #endif #ifndef HAVE_STRDUP -# include "strdup.h" +# include "curl_strdup.h" # define strdup(ptr) curlx_strdup(ptr) #endif diff --git a/src/tool_sleep.c b/src/tool_sleep.c index 49cdc71b8..e37cde4a5 100644 --- a/src/tool_sleep.c +++ b/src/tool_sleep.c @@ -37,7 +37,7 @@ #include "tool_sleep.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ void tool_go_sleep(long ms) { diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c index 2821d008d..663370a51 100644 --- a/src/tool_urlglob.c +++ b/src/tool_urlglob.c @@ -27,7 +27,7 @@ #include "tool_urlglob.h" #include "tool_vms.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ typedef enum { GLOB_OK, diff --git a/src/tool_util.c b/src/tool_util.c index 00d205ebc..0a0fa6960 100644 --- a/src/tool_util.c +++ b/src/tool_util.c @@ -23,7 +23,7 @@ #include "tool_util.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #if defined(WIN32) && !defined(MSDOS) diff --git a/src/tool_vms.c b/src/tool_vms.c index 4a6a6f58e..abb5d1a04 100644 --- a/src/tool_vms.c +++ b/src/tool_vms.c @@ -34,7 +34,7 @@ #include "curlmsg_vms.h" #include "tool_vms.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ void decc$__posix_exit(int __status); void decc$exit(int __status); diff --git a/src/tool_writeenv.c b/src/tool_writeenv.c index a9462d004..918a8009d 100644 --- a/src/tool_writeenv.c +++ b/src/tool_writeenv.c @@ -32,7 +32,7 @@ #include "tool_writeenv.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ static const struct { diff --git a/src/tool_writeout.c b/src/tool_writeout.c index 6038a210a..bbb23af00 100644 --- a/src/tool_writeout.c +++ b/src/tool_writeout.c @@ -27,7 +27,7 @@ #include "tool_cfgable.h" #include "tool_writeout.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ typedef enum { VAR_NONE, /* must be the first */ diff --git a/src/tool_xattr.c b/src/tool_xattr.c index 505bdb17a..cc74c9da2 100644 --- a/src/tool_xattr.c +++ b/src/tool_xattr.c @@ -27,7 +27,7 @@ #include "tool_xattr.h" -#include "memdebug.h" /* keep this as LAST include */ +#include "curl_memdebug.h" /* keep this as LAST include */ #ifdef HAVE_FSETXATTR diff --git a/src/vc6curlsrc.dsp b/src/vc6curlsrc.dsp index 5fb7fe1d1..cc0e8c3b6 100644 --- a/src/vc6curlsrc.dsp +++ b/src/vc6curlsrc.dsp @@ -311,15 +311,15 @@ SOURCE=".\config-win32.h" # End Source File
# Begin Source File
-SOURCE=..\lib\nonblock.h
+SOURCE=..\lib\curl_nonblock.h
# End Source File
# Begin Source File
-SOURCE=..\lib\rawstr.h
+SOURCE=..\lib\curl_rawstr.h
# End Source File
# Begin Source File
-SOURCE=..\lib\strtoofft.h
+SOURCE=..\lib\curl_strtoofft.h
# End Source File
# Begin Source File
|