|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflmem.h"
void
mem_checkall_ (
const char *filename, /* Name of source file making call */
size_t lineno /* Line number in calling source */
)
Checks all allocated memory blocks; if any block was corrupted, aborts with an error message, else does nothing.
{
MEMTRN
*trn;
# if (defined (MEM_TRACE))
trace ("%s (%ld): check all memory",
filename? filename: "-", (long) lineno);
# endif
mem_check_list ((MEMHDR *) &mem_list.memhdr, filename, lineno);
trn = tr_list.next;
while (trn != (MEMTRN *) &tr_list)
{
mem_check_list ((MEMHDR *) &trn-> memhdr, filename, lineno);
trn = trn-> next;
}
}
| | << | < | > | >> |
|