All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mfdefs.cpp File Reference
#include "mfdefs.h"
#include "emalloc.h"
#include <math.h>

Go to the source code of this file.

Functions

MICROFEATURE NewMicroFeature ()
 
void FreeMicroFeatures (MICROFEATURES MicroFeatures)
 

Function Documentation

void FreeMicroFeatures ( MICROFEATURES  MicroFeatures)

This routine deallocates all of the memory consumed by a list of micro-features.

Parameters
MicroFeatureslist of micro-features to be freed
Returns
none
Note
History: 7/27/89, DSJ, Created.

Definition at line 48 of file mfdefs.cpp.

48  {
49  destroy_nodes(MicroFeatures, Efree);
50 } /* FreeMicroFeatures */
void destroy_nodes(LIST list, void_dest destructor)
Definition: oldlist.cpp:204
void Efree(void *ptr)
Definition: emalloc.cpp:79
MICROFEATURE NewMicroFeature ( )

This routine allocates and returns a new micro-feature data structure.

Returns
New MICROFEATURE
Note
History: 7/27/89, DSJ, Created.

Definition at line 35 of file mfdefs.cpp.

35  {
36  return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
37 } /* NewMicroFeature */
FLOAT32 * MICROFEATURE
Definition: mfdefs.h:33
FLOAT32 MFBLOCK[MFSIZE]
Definition: mfdefs.h:32
void * Emalloc(int Size)
Definition: emalloc.cpp:47