From: Yang Tse Date: Sat, 20 Sep 2008 04:26:55 +0000 (+0000) Subject: include "memdebug.h" X-Git-Tag: curl-7_19_1~318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7beb473a3dffbd5757b14a99866033ae1391dbd9;p=thirdparty%2Fcurl.git include "memdebug.h" --- diff --git a/tests/libtest/first.c b/tests/libtest/first.c index d25c7ad287..9b06f74bcf 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -11,9 +11,8 @@ #include "test.h" #ifdef CURLDEBUG -/* provide a proto for this debug function */ -extern void curl_memdebug(const char *); -extern void curl_memlimit(int); +# define MEMDEBUG_NODEFINES +# include "memdebug.h" #endif int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c index c28f5d0c94..14a8e7aebe 100644 --- a/tests/libtest/lib500.c +++ b/tests/libtest/lib500.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib501.c b/tests/libtest/lib501.c index cf2d957241..ff2bbb5b90 100644 --- a/tests/libtest/lib501.c +++ b/tests/libtest/lib501.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib502.c b/tests/libtest/lib502.c index ea53795c02..85c300fbe6 100644 --- a/tests/libtest/lib502.c +++ b/tests/libtest/lib502.c @@ -11,6 +11,7 @@ #include "test.h" #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib503.c b/tests/libtest/lib503.c index 5eda5996ea..11f1150c06 100644 --- a/tests/libtest/lib503.c +++ b/tests/libtest/lib503.c @@ -13,6 +13,7 @@ #include #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index a57a3d1579..fece016b81 100644 --- a/tests/libtest/lib504.c +++ b/tests/libtest/lib504.c @@ -13,6 +13,7 @@ #include #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib505.c b/tests/libtest/lib505.c index eec2071c9f..ceccd6b280 100644 --- a/tests/libtest/lib505.c +++ b/tests/libtest/lib505.c @@ -28,6 +28,8 @@ #include #endif +#include "memdebug.h" + /* * This example shows an FTP upload, with a rename of the file just after * a successful upload. diff --git a/tests/libtest/lib506.c b/tests/libtest/lib506.c index 260fec1940..34c774e5df 100644 --- a/tests/libtest/lib506.c +++ b/tests/libtest/lib506.c @@ -15,6 +15,8 @@ #include +#include "memdebug.h" + static const char *HOSTHEADER = "Host: www.host.foo.com"; static const char *JAR = "log/jar506"; #define THREADS 2 diff --git a/tests/libtest/lib507.c b/tests/libtest/lib507.c index 0137130ce1..b2fd098888 100644 --- a/tests/libtest/lib507.c +++ b/tests/libtest/lib507.c @@ -11,6 +11,7 @@ #include "test.h" #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib508.c b/tests/libtest/lib508.c index 35679d1808..a709b80be5 100644 --- a/tests/libtest/lib508.c +++ b/tests/libtest/lib508.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + static char data[]="this is what we post to the silly web server\n"; struct WriteThis { diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c index d8644c3faf..43ead09360 100644 --- a/tests/libtest/lib510.c +++ b/tests/libtest/lib510.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + static const char *post[]={ "one", "two", diff --git a/tests/libtest/lib511.c b/tests/libtest/lib511.c index b0f455d598..0f9993db11 100644 --- a/tests/libtest/lib511.c +++ b/tests/libtest/lib511.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib512.c b/tests/libtest/lib512.c index 0af95919b6..14072f45cd 100644 --- a/tests/libtest/lib512.c +++ b/tests/libtest/lib512.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + /* Test case code based on source in a bug report filed by James Bursa on 28 Apr 2004 */ diff --git a/tests/libtest/lib513.c b/tests/libtest/lib513.c index d6f3756b78..e49724ca61 100644 --- a/tests/libtest/lib513.c +++ b/tests/libtest/lib513.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp) { (void)ptr; diff --git a/tests/libtest/lib514.c b/tests/libtest/lib514.c index 419b8422af..06f975f347 100644 --- a/tests/libtest/lib514.c +++ b/tests/libtest/lib514.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURL *curl; diff --git a/tests/libtest/lib515.c b/tests/libtest/lib515.c index 18df7c9380..c85f2bed11 100644 --- a/tests/libtest/lib515.c +++ b/tests/libtest/lib515.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURL *curl; diff --git a/tests/libtest/lib516.c b/tests/libtest/lib516.c index 8295699e3a..b3c63f4b51 100644 --- a/tests/libtest/lib516.c +++ b/tests/libtest/lib516.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURL *curl; diff --git a/tests/libtest/lib517.c b/tests/libtest/lib517.c index 20fba6fbd0..86539fb73a 100644 --- a/tests/libtest/lib517.c +++ b/tests/libtest/lib517.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + static const char *dates[]={ "Sun, 06 Nov 1994 08:49:37 GMT", "Sunday, 06-Nov-94 08:49:37 GMT", diff --git a/tests/libtest/lib518.c b/tests/libtest/lib518.c index 41c3fe2821..a1b914916f 100644 --- a/tests/libtest/lib518.c +++ b/tests/libtest/lib518.c @@ -26,6 +26,8 @@ #include #endif +#include "memdebug.h" + #ifndef FD_SETSIZE #error "this test requires FD_SETSIZE" #endif diff --git a/tests/libtest/lib519.c b/tests/libtest/lib519.c index ce440485a7..70ada8a15b 100644 --- a/tests/libtest/lib519.c +++ b/tests/libtest/lib519.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib520.c b/tests/libtest/lib520.c index 46cad415df..1d63881c38 100644 --- a/tests/libtest/lib520.c +++ b/tests/libtest/lib520.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib521.c b/tests/libtest/lib521.c index 346ece0561..60fe4d95d7 100644 --- a/tests/libtest/lib521.c +++ b/tests/libtest/lib521.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib523.c b/tests/libtest/lib523.c index 9f485ffedb..c6011fc57d 100644 --- a/tests/libtest/lib523.c +++ b/tests/libtest/lib523.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib524.c b/tests/libtest/lib524.c index 2fde663cab..c8b07834a0 100644 --- a/tests/libtest/lib524.c +++ b/tests/libtest/lib524.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib525.c b/tests/libtest/lib525.c index 154c209e38..c503d16185 100644 --- a/tests/libtest/lib525.c +++ b/tests/libtest/lib525.c @@ -15,6 +15,7 @@ #include #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib526.c b/tests/libtest/lib526.c index 8951a7444c..b4d8913376 100644 --- a/tests/libtest/lib526.c +++ b/tests/libtest/lib526.c @@ -34,6 +34,7 @@ #include #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib530.c b/tests/libtest/lib530.c index af7d00d02f..d738277f23 100644 --- a/tests/libtest/lib530.c +++ b/tests/libtest/lib530.c @@ -21,6 +21,7 @@ #endif #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib533.c b/tests/libtest/lib533.c index 71c43c2ca5..92b371a81e 100644 --- a/tests/libtest/lib533.c +++ b/tests/libtest/lib533.c @@ -17,6 +17,7 @@ #include #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib536.c b/tests/libtest/lib536.c index 9e764a97ac..016b7e922f 100644 --- a/tests/libtest/lib536.c +++ b/tests/libtest/lib536.c @@ -15,6 +15,7 @@ #include #include "testutil.h" +#include "memdebug.h" #define MAIN_LOOP_HANG_TIMEOUT 90 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib537.c b/tests/libtest/lib537.c index f3b42e7557..7bb8c14365 100644 --- a/tests/libtest/lib537.c +++ b/tests/libtest/lib537.c @@ -26,6 +26,8 @@ #include #endif +#include "memdebug.h" + #if !defined(HAVE_POLL_FINE) && \ !defined(USE_WINSOCK) && \ !defined(TPF) && \ diff --git a/tests/libtest/lib539.c b/tests/libtest/lib539.c index 0e43654ef9..c99344421c 100644 --- a/tests/libtest/lib539.c +++ b/tests/libtest/lib539.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c index 089fcd5cb2..cfaa1622df 100644 --- a/tests/libtest/lib540.c +++ b/tests/libtest/lib540.c @@ -18,6 +18,8 @@ #include "test.h" +#include "memdebug.h" + #define PROXY libtest_arg2 #define PROXYUSERPWD libtest_arg3 #define HOST test_argv[4] diff --git a/tests/libtest/lib541.c b/tests/libtest/lib541.c index a2224ae696..ada389cf1c 100644 --- a/tests/libtest/lib541.c +++ b/tests/libtest/lib541.c @@ -28,6 +28,8 @@ #include #endif +#include "memdebug.h" + /* * Two FTP uploads, the second with no content sent. */ diff --git a/tests/libtest/lib542.c b/tests/libtest/lib542.c index ffd8f361cd..1d45405bb8 100644 --- a/tests/libtest/lib542.c +++ b/tests/libtest/lib542.c @@ -28,6 +28,8 @@ #include #endif +#include "memdebug.h" + /* * FTP get with NOBODY but no HEADER */ diff --git a/tests/libtest/lib543.c b/tests/libtest/lib543.c index 2e930d2d6b..662883529a 100644 --- a/tests/libtest/lib543.c +++ b/tests/libtest/lib543.c @@ -13,6 +13,8 @@ #include "setup.h" #include "test.h" +#include "memdebug.h" + int test(char *URL) { unsigned char a[] = {0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1, diff --git a/tests/libtest/lib544.c b/tests/libtest/lib544.c index f91cef354a..7562919729 100644 --- a/tests/libtest/lib544.c +++ b/tests/libtest/lib544.c @@ -10,6 +10,7 @@ #include "test.h" +#include "memdebug.h" static char teststring[] = "This\0 is test binary data with an embedded NUL byte\n"; diff --git a/tests/libtest/lib547.c b/tests/libtest/lib547.c index 85f22fe8ed..8a1070f70a 100644 --- a/tests/libtest/lib547.c +++ b/tests/libtest/lib547.c @@ -14,6 +14,8 @@ #include "test.h" +#include "memdebug.h" + #define UPLOADTHIS "this is the blurb we want to upload\n" #ifndef LIB548 diff --git a/tests/libtest/lib549.c b/tests/libtest/lib549.c index d50835624d..e196aba56f 100644 --- a/tests/libtest/lib549.c +++ b/tests/libtest/lib549.c @@ -14,6 +14,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c index ab097da3e5..ff2b8c9866 100644 --- a/tests/libtest/lib552.c +++ b/tests/libtest/lib552.c @@ -13,6 +13,8 @@ #include "test.h" +#include "memdebug.h" + struct data { char trace_ascii; /* 1 or 0 */ }; diff --git a/tests/libtest/lib553.c b/tests/libtest/lib553.c index 0603b3fd5e..b9372b3479 100644 --- a/tests/libtest/lib553.c +++ b/tests/libtest/lib553.c @@ -13,6 +13,8 @@ #include "test.h" +#include "memdebug.h" + #define POSTLEN 40960 static size_t myreadfunc(void *ptr, size_t size, size_t nmemb, void *stream) diff --git a/tests/libtest/lib554.c b/tests/libtest/lib554.c index fe0c16a660..2999aea08a 100644 --- a/tests/libtest/lib554.c +++ b/tests/libtest/lib554.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + static char data[]="this is what we post to the silly web server\n"; struct WriteThis { diff --git a/tests/libtest/lib555.c b/tests/libtest/lib555.c index ad259e0e61..33a1a26c72 100644 --- a/tests/libtest/lib555.c +++ b/tests/libtest/lib555.c @@ -17,6 +17,7 @@ #include "test.h" #include "testutil.h" +#include "memdebug.h" #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000 diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c index 85fd656998..0e3949da35 100644 --- a/tests/libtest/lib556.c +++ b/tests/libtest/lib556.c @@ -10,6 +10,8 @@ #include "test.h" +#include "memdebug.h" + int test(char *URL) { CURLcode res; diff --git a/tests/libtest/lib557.c b/tests/libtest/lib557.c index 13148dd845..cb54ec7082 100644 --- a/tests/libtest/lib557.c +++ b/tests/libtest/lib557.c @@ -15,6 +15,8 @@ #include "test.h" +#include "memdebug.h" + int curl_msprintf(char *buffer, const char *format, ...); diff --git a/tests/libtest/testutil.c b/tests/libtest/testutil.c index 573e6faed2..a70652626d 100644 --- a/tests/libtest/testutil.c +++ b/tests/libtest/testutil.c @@ -24,6 +24,7 @@ #include "setup.h" #include "testutil.h" +#include "memdebug.h" #if defined(WIN32) && !defined(MSDOS)