]> granicus.if.org Git - curl/commitdiff
Disable memdebug for the allocs done by the app, unless CURLTOOLDEBUG is
authorDaniel Stenberg <daniel@haxx.se>
Wed, 12 May 2004 08:22:04 +0000 (08:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 May 2004 08:22:04 +0000 (08:22 +0000)
defined (which it never is atm).

Now, we can focus on making 'runtests -t [num]' work on all test cases and
we should never leak nor crash.

src/getpass.c
src/homedir.c
src/main.c
src/urlglob.c

index a2854cd16e3c41f94c316566989cb8ba5a629079..eb210460ec0e834c53249af33378b376a9dbb6f7 100644 (file)
@@ -94,8 +94,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
 #endif
 
 /* The last #include file should be: */
-#ifdef CURLDEBUG
-#include "../lib/memdebug.h"
+#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
+#include "memdebug.h"
 #endif
 
 char *getpass_r(const char *prompt, char *buffer, size_t buflen)
index fedbdb8fcc2f024edbc70b0231de36be471d7e30..3ec196a7eafe071324ad529cf28037b753c9a05b 100644 (file)
@@ -42,8 +42,8 @@
 
 #include "homedir.h"
 
-#ifdef CURLDEBUG
-#include "../lib/memdebug.h"
+#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
+#include "memdebug.h"
 #endif
 
 static
index 6cc264b24dbb91f8ec9bf14a3d08bc16848d476b..9c915203c788e24c0ccf29eefe35dacd2fb17d66 100644 (file)
 
 /* The last #include file should be: */
 #ifdef CURLDEBUG
+#ifndef CURLTOOLDEBUG
+#define MEMDEBUG_NODEFINES
+#endif
 /* This is low-level hard-hacking memory leak tracking and similar. Using
    the library level code from this client-side is ugly, but we do this
    anyway for convenience. */
index b7f56192c0a7cad5b8536bb83494895e93f090a9..582ec1b0b07e9cb90dc497eaa5fe1a268b0ab5cf 100644 (file)
@@ -35,9 +35,8 @@
 
 #include "urlglob.h"
 
-
-#ifdef CURLDEBUG
-#include "../lib/memdebug.h"
+#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
+#include "memdebug.h"
 #endif
 
 typedef enum {