[cvs] bogofilter/src memdebug.c,1.7,1.8
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-10-14 19:13:58
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1:/tmp/cvs-serv5598 Modified Files: memdebug.c Log Message: Rename function debugtrap() to md_trap() to avoid conflicts. Index: memdebug.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/memdebug.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- memdebug.c 12 Oct 2003 21:32:24 -0000 1.7 +++ memdebug.c 14 Oct 2003 19:13:55 -0000 1.8 @@ -50,8 +50,8 @@ uint32_t max_malloc = 0; uint32_t tot_malloc = 0; -void debugtrap(const char *why); -void debugtrap(const char *why) { (void)why; } +void md_trap(const char *why); +void md_trap(const char *why) { (void)why; } typedef struct memheader { size_t size; @@ -84,7 +84,7 @@ size += sizeof(mh_t); /* Include size storage */ if (dbg_size_trap != 0 && size > dbg_size_trap) - debugtrap("dbg_size_trap"); + md_trap("dbg_size_trap"); if (dbg_too_much != 0 && max_malloc > dbg_too_much) { fprintf(stderr, "max_malloc = %12lu, tot_malloc = %12lu\n", (ulong) max_malloc, (ulong) tot_malloc); @@ -101,7 +101,7 @@ if (memtrace & M_MALLOC) mh_disp( "a", mh ); if (dbg_index != 0 && mh->indx == dbg_index) - debugtrap("dbg_index"); + md_trap("dbg_index"); x = (void *) (mh+1); @@ -123,12 +123,12 @@ mh_disp( "f", mh ); if (mh->tag != md_tag) - debugtrap("md_tag"); + md_trap("md_tag"); if (dbg_index != 0 && mh->indx == dbg_index) - debugtrap("dbg_index"); + md_trap("dbg_index"); if (mh->size > cur_malloc || (dbg_size_trap != 0 && mh->size > dbg_size_trap)) - debugtrap("dbg_size_trap"); + md_trap("dbg_size_trap"); cur_malloc -= mh->size; mh->tag = -1; @@ -187,7 +187,7 @@ if (memtrace & M_MALLOC) mh_disp( "c", mh ); if (dbg_index != 0 && mh->indx == dbg_index) - debugtrap("dbg_index"); + md_trap("dbg_index"); x = (void *) (mh+1); |