Show
Ignore:
Timestamp:
09/22/08 00:08:00 (4 months ago)
Author:
karpet
Message:

get rid of the circular reference in TokenList/Token?; make swish_init() a separate call from swish_init_swish3() so it can be called as class method rather than once-per-object; clean up some ref_cnt logic and mem debugging

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/mem.c

    r2133 r2171  
    3838{ 
    3939    memcount = 0; 
     40} 
    4041 
     42long int 
     43swish_get_memcount( 
     44) 
     45{ 
     46    return memcount; 
    4147} 
    4248 
     
    136142    if (memcount > 0) 
    137143        SWISH_WARN 
    138             ("memory error: %ld more swish_xmalloc()s or swish_xstrdup()s than swish_xfree()s", 
     144            ("%ld more swish_xmalloc()s or swish_xstrdup()s than swish_xfree()s", 
    139145             memcount); 
    140146 
    141147    if (memcount < 0) 
    142         SWISH_WARN("memory error: too many swish_xfree()s %d", memcount); 
     148        SWISH_WARN("too many swish_xfree()s %d", memcount); 
    143149}