tesseract  3.04.00
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)

Definition at line 45 of file mfdefs.cpp.

45  {
46 /*
47  ** Parameters:
48  ** MicroFeatures list of micro-features to be freed
49  ** Globals: none
50  ** Operation:
51  ** This routine deallocates all of the memory consumed by
52  ** a list of micro-features.
53  ** Return: none
54  ** Exceptions: none
55  ** History: 7/27/89, DSJ, Created.
56  */
57  destroy_nodes(MicroFeatures, Efree);
58 } /* FreeMicroFeatures */
void destroy_nodes(LIST list, void_dest destructor)
Definition: oldlist.cpp:204
void Efree(void *ptr)
Definition: emalloc.cpp:85
MICROFEATURE NewMicroFeature ( )

Include Files and Type Defines

Public Code

Definition at line 29 of file mfdefs.cpp.

29  {
30 /*
31  ** Parameters: none
32  ** Globals: none
33  ** Operation:
34  ** This routine allocates and returns a new micro-feature
35  ** data structure.
36  ** Return: New micro-feature.
37  ** Exceptions: none
38  ** History: 7/27/89, DSJ, Created.
39  */
40  return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
41 } /* NewMicroFeature */
FLOAT32 * MICROFEATURE
Definition: mfdefs.h:33
FLOAT32 MFBLOCK[MFSIZE]
Definition: mfdefs.h:32
void * Emalloc(int Size)
Definition: emalloc.cpp:35