generation of uint implemented but not tested

This commit is contained in:
Jan Hutter
2005-11-09 13:34:36 +00:00
parent c0c6490d30
commit 762ce218e7
6 changed files with 268 additions and 20 deletions
+10 -1
View File
@@ -76,7 +76,11 @@
#define allocator_alloc(bytes) (allocate(bytes,__FILE__,__LINE__))
#define allocator_realloc(old,bytes) (reallocate(old,bytes,__FILE__, __LINE__))
#define allocator_free(pointer) (free_pointer(pointer))
#define allocator_free_chunk(chunk){ \
free_pointer(chunk.ptr); \
chunk.ptr = NULL; \
chunk.len = 0; \
}
/**
* Report memory leaks to stderr
*/
@@ -85,6 +89,11 @@
#define allocator_alloc(bytes) (malloc(bytes))
#define allocator_realloc(old,bytes) (realloc(old,bytes))
#define allocator_free(pointer) (free(pointer))
#define allocator_free_chunk(chunk){ \
free(chunk.ptr); \
chunk.ptr = NULL; \
chunk.len = 0; \
}
#define report_memory_leaks(void) {}
#endif