diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2006-06-06 20:28:42 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2006-06-06 20:28:42 +0000 |
commit | f6e0b7d0c07e4043a96b3ac976eaf082454f4501 (patch) | |
tree | 35759df85a7a26e7121c44c0b55f6641b0f6758b /DebugMemory.h | |
parent | 35afc13ebf8f82cfc7a3e6d6f7ba6d5062c5cdc1 (diff) |
Regenerated all headers.
Diffstat (limited to 'DebugMemory.h')
-rw-r--r-- | DebugMemory.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/DebugMemory.h b/DebugMemory.h index 8261fee7..16f4248c 100644 --- a/DebugMemory.h +++ b/DebugMemory.h @@ -1,27 +1,27 @@ -/* Do not edit this file. It was automatically genarated. */ +/* Do not edit this file. It was automatically generated. */ #ifndef HEADER_DebugMemory #define HEADER_DebugMemory #define _GNU_SOURCE - +#include <string.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> #include <stdbool.h> - #include <assert.h> - #undef strdup #undef malloc #undef realloc #undef calloc #undef free + + typedef struct DebugMemoryItem_ DebugMemoryItem; struct DebugMemoryItem_ { + int magic; void* data; char* file; int line; @@ -33,17 +33,20 @@ typedef struct DebugMemory_ { int allocations; int deallocations; int size; + bool totals; FILE* file; } DebugMemory; +#if defined(DEBUG) + void DebugMemory_new(); -void* DebugMemory_malloc(int size, char* file, int line); +void* DebugMemory_malloc(int size, char* file, int line, char* str); void* DebugMemory_calloc(int a, int b, char* file, int line); -void* DebugMemory_realloc(void* ptr, int size, char* file, int line); +void* DebugMemory_realloc(void* ptr, int size, char* file, int line, char* str); void* DebugMemory_strdup(char* str, char* file, int line); @@ -59,4 +62,10 @@ void DebugMemory_registerDeallocation(void* data, char* file, int line); void DebugMemory_report(); +#elif defined(DEBUGLITE) + +//#include "efence.h" + +#endif + #endif |