| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "sflmem.h" void mem_checkall_ ( const char *filename, /* Name of source file making call */ word 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)) if (filename) trace ("%s (%d): check all memory", filename, 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; } }
| << | < | > | >> |
![]() |