| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

mem_checkall_

#include "sflmem.h"
void
mem_checkall_ (
    const char *filename,               /*  Name of source file making call  */
    size_t lineno                       /*  Line number in calling source    */
)

Synopsis

Checks all allocated memory blocks; if any block was corrupted, aborts with an error message, else does nothing.

Source Code - (sflmem.c)

{
    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;
      }
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation