The following commit has been merged in the master branch: commit 9469fd55f42a492454fc639877aaf52ff6927c7f Author: Simon Wunderlich siwu@hrz.tu-chemnitz.de Date: Fri Mar 9 13:47:10 2007 +0100
- enum{} example in allocate.h - hash.c with allocate.c debug-functions
diff --git a/allocate.h b/allocate.h index 6f610ec..91ca752 100644 --- a/allocate.h +++ b/allocate.h @@ -18,7 +18,8 @@ */
- +#ifndef _ALLOCATE_H +#define _ALLOCATE_H 1 #include <stdint.h>
@@ -28,3 +29,17 @@ void checkLeak(void); void *debugMalloc(uint32_t length, int32_t tag); void *debugRealloc(void *memory, uint32_t length, int32_t tag); void debugFree(void *memoryParameter, int32_t tag); + +enum { + TAG_HASH=0, + TAG_HASH_TABLE, + TAG_HASH_BUCKET, + TAG_HASH_ITER, + TAG_HASH_ALLOC_FAILED, + TAG_HASH_BUCKET_REMOVE, + TAG_HASH_DELETE, + TAG_HASH_ITER_REMOVE, + + +}; +#endif