- a structure used to hold dynamically allocated memory
information (LOCAL)
SYNOPSIS
typedef struct dmem
{
char
*Malloc;
Pointer to an allocated memory block.
struct dmem
*Next;
Linked list pointer.
} DMEM;
char
*MemInUse
A pointer to the first DMEM structure.
DESCRIPTION
There is a family of functions to allocate datasets, networks and other
structures from a pool.
A linked list of allocated blocks is kept for each type of structure.
NOTE
Unfortunately, the DMEM type and the variable MemInUse are declared twice
in SPRANNLIB: once for network allocation routines (netalloc.c) and once
for pattern allocation routines (patalloc.c). Their function is, however,
identical. This means that in both modules a separate linked list of
DMEM structures is maintained.