classify/mfdefs.cpp File Reference

#include "mfdefs.h"
#include "emalloc.h"
#include <math.h>

Go to the source code of this file.

Functions


Function Documentation

void FreeMicroFeatures ( MICROFEATURES  MicroFeatures  ) 

Deallocates all of the memory consumed by a list of micro-features.

Parameters:
MicroFeatures list of micro-features to be freed
Returns:
none
Note:
Exceptions: none
Date:
7/27/89, DSJ, Created.

Definition at line 52 of file mfdefs.cpp.

References destroy_nodes(), and Efree().

Referenced by ExtractMicros().

00052                                                     { 
00053   destroy_nodes(MicroFeatures, Efree); 
00054 }                                /* FreeMicroFeatures */

MICROFEATURE NewMicroFeature (  ) 

Allocates and returns a new micro-feature data structure.

Parameters:
none 
Returns:
New micro-feature.
Note:
Exceptions: none
Date:
7/27/89, DSJ, Created.

Definition at line 38 of file mfdefs.cpp.

References Emalloc().

Referenced by ExtractMicroFeature().

00038                                { 
00039   return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
00040 }                                /* NewMicroFeature */


Generated on Wed Feb 28 19:49:20 2007 for Tesseract by  doxygen 1.5.1