tesseract 3.04.01

classify/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.

                                                    { 
  destroy_nodes(MicroFeatures, Efree); 
}                                /* FreeMicroFeatures */
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.

                               { 
  return ((MICROFEATURE) Emalloc (sizeof (MFBLOCK)));
}                                /* NewMicroFeature */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines