- Timestamp:
- 28/05/10 15:18:35 (21 months ago)
- Files:
-
- 1 modified
-
trunk/ARBDB/admalloc.cxx (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ARBDB/admalloc.cxx
r6661 r6671 22 22 // #define DUMP_MEMBLKS_AT_EXIT 23 23 24 #if ndef NDEBUG24 #ifdef DEBUG 25 25 // #define TEST_MEMBLKS 26 26 // #define TRACE_ALLOCS … … 191 191 192 192 class AllocLogEntry { 193 char*block;193 void *block; 194 194 size_t size; 195 195 long index; … … 198 198 199 199 public: 200 AllocLogEntry( char*block_, size_t size_, long index_, bool do_trace)200 AllocLogEntry(void *block_, size_t size_, long index_, bool do_trace) 201 201 : block(block_) 202 202 , size(size_) … … 226 226 AllocLogEntries entries; 227 227 228 const AllocLogEntry *existingEntry( char*block) {228 const AllocLogEntry *existingEntry(void *block) { 229 229 AllocLogEntries::const_iterator found = entries.find(AllocLogEntry(block, 0, 0, false)); 230 230 … … 246 246 } 247 247 248 void allocated( char*block, size_t size, long index) {248 void allocated(void *block, size_t size, long index) { 249 249 const AllocLogEntry *exists = existingEntry(block); 250 250 if (exists) { … … 256 256 } 257 257 } 258 void freed( char*block, size_t size, long index) {258 void freed(void *block, size_t size, long index) { 259 259 const AllocLogEntry *exists = existingEntry(block); 260 260 if (!exists) {
