MathEngine
Home Page       Structures       File List       Functions and Macros      

Malloc.c File Reference

Memory manager API malloc wrapper. More...

#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include "Bits.h"
#include "MeMemory.h"
#include "Trace.h"
#include "MeAssert.h"

Variables

unsigned MeMemoryDoTraceMalloc = 1
 Malloc modules specific trace flag. More...

unsigned MeMemoryDoStatsMalloc = 1
 Malloc modules specific statistics flag. More...

struct MeMemoryOptions MeMemoryOptionsMalloc
 The options for the Malloc memory manager.

struct MeMemoryStats MeMemoryStatsMalloc
 The statistics for the Malloc memory manager.

struct MeMemoryAPI MeMemoryAPIMalloc
 Table of function pointers to entry points of the Malloc memory manager. More...


Detailed Description

Memory manager API malloc wrapper.


Variable Documentation

struct MeMemoryAPI MeMemoryAPIMalloc

Initializer:

{
  &MallocSetOptions,
  &MallocGetOptions,
  &MallocInit,

  &MallocCreate,
  &MallocResize,
  &MallocIncRef,
  &MallocDecRef,
  &MallocDestroy,

  &MallocGetStats,
  &MallocTerm
}
Table of function pointers to entry points of the Malloc memory manager.

This (v)table provides the implementation of the MeMemoryAPI interface for the Malloc memory managed. You should typically assign it to the MeMemoryAPI global variable to select the Malloc memory manager.

unsigned MeMemoryDoStatsMalloc = 1

Malloc modules specific statistics flag.

Set this to 0 to disable tracing of API calls in the Malloc memory manager, leaving it on globally with the MeMemoryDoStats variable.

unsigned MeMemoryDoTraceMalloc = 1

Malloc modules specific trace flag.

Set this to 0 to disable tracing of API calls in the Malloc memory manager, leaving it on globally with the MeMemoryDoTrace variable.


MathEngine Utilities: Memory Manager API - Version 0.0.5 Alpha - Reference Manual generated using doxygen at Wed Oct 11 00:34:56 2000

Copyright MathEngine PLC 2000, all rights reserved.