summaryrefslogtreecommitdiff
path: root/lib/memdebug.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-26 14:52:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-26 14:52:51 +0000
commit07de0ff0ff2e99ae18c0326c1916e07ca5847028 (patch)
treef7203a32a88ce74922b08c6650eec110b4c5b8f7 /lib/memdebug.h
parent7d8cd5906c890f8e4c7ceae1b5f9e650fe81e08b (diff)
downloadcurl-07de0ff0ff2e99ae18c0326c1916e07ca5847028.tar.gz
Gisle Vanem's added support calloc()-debugging and outputting mode for
fopen() as well.
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r--lib/memdebug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 2bf75e58d..40ba08033 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -49,6 +49,7 @@ extern FILE *logfile;
/* memory functions */
void *curl_domalloc(size_t size, int line, const char *source);
+void *curl_docalloc(size_t elements, size_t size, int line, const char *source);
void *curl_dorealloc(void *ptr, size_t size, int line, const char *source);
void curl_dofree(void *ptr, int line, const char *source);
char *curl_dostrdup(const char *str, int line, const char *source);
@@ -72,6 +73,7 @@ int curl_fclose(FILE *file, int line, const char *source);
#undef strdup
#define strdup(ptr) curl_dostrdup(ptr, __LINE__, __FILE__)
#define malloc(size) curl_domalloc(size, __LINE__, __FILE__)
+#define calloc(nbelem,size) curl_docalloc(nbelem, size, __LINE__, __FILE__)
#define realloc(ptr,size) curl_dorealloc(ptr, size, __LINE__, __FILE__)
#define free(ptr) curl_dofree(ptr, __LINE__, __FILE__)