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

 

mem_commit_

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

Synopsis

Commits all blocks allocated to a transaction.

Source Code - (sflmem.c)

{
    LIST
       *ptr;

#   if (defined (MEM_TRACE))
    if (filename)
        trace ("%s (%d): commit transaction", filename, lineno);
#   endif

    ptr = &trn-> memhdr;
    if (!list_empty (ptr))              /*  Are there any blocks to commit?  */
      {
        list_relink_before (ptr,        /*  Relink list into main list       */
                            &mem_list. memhdr);
        list unlink (ptr);
      }

    mem_del_trans (trn);
}

| << | < | > | >> iMatix Copyright © 1996-98 iMatix