Changeset 6671 for trunk

Show
Ignore:
Timestamp:
28/05/10 15:18:35 (21 months ago)
Author:
westram
Message:
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ARBDB/admalloc.cxx

    r6661 r6671  
    2222// #define DUMP_MEMBLKS_AT_EXIT 
    2323 
    24 #ifndef NDEBUG 
     24#ifdef DEBUG  
    2525// #define TEST_MEMBLKS 
    2626// #define TRACE_ALLOCS 
     
    191191 
    192192class AllocLogEntry { 
    193     char   *block; 
     193    void   *block; 
    194194    size_t  size; 
    195195    long    index; 
     
    198198 
    199199public: 
    200     AllocLogEntry(char *block_, size_t size_, long index_, bool do_trace) 
     200    AllocLogEntry(void *block_, size_t size_, long index_, bool do_trace) 
    201201        : block(block_) 
    202202        , size(size_) 
     
    226226    AllocLogEntries entries; 
    227227 
    228     const AllocLogEntry *existingEntry(char *block) { 
     228    const AllocLogEntry *existingEntry(void *block) { 
    229229        AllocLogEntries::const_iterator found = entries.find(AllocLogEntry(block, 0, 0, false)); 
    230230         
     
    246246    } 
    247247 
    248     void allocated(char *block, size_t size, long index) { 
     248    void allocated(void *block, size_t size, long index) { 
    249249        const AllocLogEntry *exists = existingEntry(block); 
    250250        if (exists) { 
     
    256256        } 
    257257    } 
    258     void freed(char *block, size_t size, long index) { 
     258    void freed(void *block, size_t size, long index) { 
    259259        const AllocLogEntry *exists = existingEntry(block); 
    260260        if (!exists) {