summaryrefslogtreecommitdiff
path: root/lib/memdebug.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 14:19:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 14:19:36 +0000
commit02c78ecf8134fc9961efd3563970672858d503fd (patch)
tree465f03fbdf9b1f3748bae7c87f0175e987bfc4db /lib/memdebug.h
parentcaca03430283722526f950148d4379e492420bd4 (diff)
downloadcurl-02c78ecf8134fc9961efd3563970672858d503fd.tar.gz
allow out-of-memory testing by setting a limit. That number of memory
allocation calls will succeed, the following will return NULL!
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r--lib/memdebug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/memdebug.h b/lib/memdebug.h
index ebb338210..dae8ce151 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -39,6 +39,8 @@
#include <memory.h>
#endif
+#define logfile curl_debuglogfile
+
extern FILE *logfile;
/* memory functions */
@@ -47,6 +49,7 @@ 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);
void curl_memdebug(const char *logname);
+void curl_memlimit(long limit);
/* file descriptor manipulators */
int curl_socket(int domain, int type, int protocol, int, const char *);