#include <stdio.h>#include "setup.h"#include "constant.h"#include "envrnmnt.h"#include "memalloc.h"#include "router.h"#include "utility.h"#include <stdlib.h>

Go to the source code of this file.
Defines | |
| #define | _MEMORY_SOURCE_ |
| #define | _STDIO_INCLUDED_ |
| #define | STRICT_ALIGN_SIZE sizeof(double) |
| #define | SpecialMalloc(sz) malloc((STD_SIZE) sz) |
| #define | SpecialFree(ptr) free(ptr) |
Functions | |
| globle void | InitializeMemory (void *theEnv) |
| globle void * | genalloc (void *theEnv, size_t size) |
| globle int | DefaultOutOfMemoryFunction (void *theEnv, size_t size) |
| globle int(*)(void *, size_t) | EnvSetOutOfMemoryFunction (void *theEnv, int(*functionPtr)(void *, size_t)) |
| globle int | genfree (void *theEnv, void *waste, size_t size) |
| globle void * | genrealloc (void *theEnv, void *oldaddr, size_t oldsz, size_t newsz) |
| globle long int | EnvMemUsed (void *theEnv) |
| globle long int | EnvMemRequests (void *theEnv) |
| globle long int | UpdateMemoryUsed (void *theEnv, long int value) |
| globle long int | UpdateMemoryRequests (void *theEnv, long int value) |
| globle long int | EnvReleaseMem (void *theEnv, long int maximum, int printMessage) |
| globle void * | gm1 (void *theEnv, size_t size) |
| globle void * | gm2 (void *theEnv, size_t size) |
| globle void * | gm3 (void *theEnv, size_t size) |
| globle int | rm (void *theEnv, void *str, size_t size) |
| globle int | rm3 (void *theEnv, void *str, size_t size) |
| globle unsigned long | PoolSize (void *theEnv) |
| globle unsigned long | ActualPoolSize (void *theEnv) |
| globle intBool | EnvSetConserveMemory (void *theEnv, intBool value) |
| globle intBool | EnvGetConserveMemory (void *theEnv) |
| globle void | genmemcpy (char *dst, char *src, unsigned long size) |
| #define _MEMORY_SOURCE_ |
Definition at line 29 of file memalloc.c.
| #define _STDIO_INCLUDED_ |
Definition at line 32 of file memalloc.c.
| #define SpecialFree | ( | ptr | ) | free(ptr) |
Definition at line 54 of file memalloc.c.
| #define SpecialMalloc | ( | sz | ) | malloc((STD_SIZE) sz) |
Definition at line 53 of file memalloc.c.
| #define STRICT_ALIGN_SIZE sizeof(double) |
Definition at line 51 of file memalloc.c.
| globle unsigned long ActualPoolSize | ( | void * | theEnv | ) |
Definition at line 489 of file memalloc.c.
| globle int DefaultOutOfMemoryFunction | ( | void * | theEnv, | |
| size_t | size | |||
| ) |
Definition at line 152 of file memalloc.c.
| globle intBool EnvGetConserveMemory | ( | void * | theEnv | ) |
Definition at line 537 of file memalloc.c.
| globle long int EnvMemRequests | ( | void * | theEnv | ) |
Definition at line 246 of file memalloc.c.
| globle long int EnvMemUsed | ( | void * | theEnv | ) |
Definition at line 236 of file memalloc.c.
| globle long int EnvReleaseMem | ( | void * | theEnv, | |
| long int | maximum, | |||
| int | printMessage | |||
| ) |
Definition at line 280 of file memalloc.c.
| globle intBool EnvSetConserveMemory | ( | void * | theEnv, | |
| intBool | value | |||
| ) |
Definition at line 522 of file memalloc.c.
| globle int(*)(void *, size_t) EnvSetOutOfMemoryFunction | ( | void * | theEnv, | |
| int(*)(void *, size_t) | functionPtr | |||
| ) |
Definition at line 170 of file memalloc.c.
| globle void* genalloc | ( | void * | theEnv, | |
| size_t | size | |||
| ) |
Definition at line 94 of file memalloc.c.
| globle int genfree | ( | void * | theEnv, | |
| void * | waste, | |||
| size_t | size | |||
| ) |
Definition at line 182 of file memalloc.c.
| globle void genmemcpy | ( | char * | dst, | |
| char * | src, | |||
| unsigned long | size | |||
| ) |
Definition at line 546 of file memalloc.c.
| globle void* genrealloc | ( | void * | theEnv, | |
| void * | oldaddr, | |||
| size_t | oldsz, | |||
| size_t | newsz | |||
| ) |
Definition at line 207 of file memalloc.c.
| globle void* gm1 | ( | void * | theEnv, | |
| size_t | size | |||
| ) |
Definition at line 325 of file memalloc.c.
| globle void* gm2 | ( | void * | theEnv, | |
| size_t | size | |||
| ) |
Definition at line 364 of file memalloc.c.
| globle void* gm3 | ( | void * | theEnv, | |
| size_t | size | |||
| ) |
Definition at line 388 of file memalloc.c.
| globle void InitializeMemory | ( | void * | theEnv | ) |
Definition at line 69 of file memalloc.c.
| globle unsigned long PoolSize | ( | void * | theEnv | ) |
Definition at line 465 of file memalloc.c.
| globle int rm | ( | void * | theEnv, | |
| void * | str, | |||
| size_t | size | |||
| ) |
Definition at line 411 of file memalloc.c.
| globle int rm3 | ( | void * | theEnv, | |
| void * | str, | |||
| size_t | size | |||
| ) |
Definition at line 439 of file memalloc.c.
| globle long int UpdateMemoryRequests | ( | void * | theEnv, | |
| long int | value | |||
| ) |
Definition at line 268 of file memalloc.c.
| globle long int UpdateMemoryUsed | ( | void * | theEnv, | |
| long int | value | |||
| ) |
Definition at line 256 of file memalloc.c.
1.5.6