64 "sizeof(FEATURE_STRUCT)+sizeof(FLOAT32)*(NumParamsIn(Feature)-1)");
102 "sizeof(FEATURE_STRUCT)+sizeof(FLOAT32)*(NumParamsIn(Feature)-1)");
103 Feature->
Type = FeatureDesc;
120 (NumFeatures - 1) *
sizeof (
FEATURE));
173 if (
tfscanf(File,
"%d", &NumFeatures) != 1 || NumFeatures < 0)
177 for (i = 0; i < NumFeatures; i++)
221 for (
int i = 0; i < FeatureSet->
NumFeatures; i++) {
246 fprintf (File,
"%d\n", FeatureDesc->
NumParams);
247 for (i = 0; i < FeatureDesc->
NumParams; i++) {
249 fprintf (File,
"circular ");
251 fprintf (File,
"linear ");
254 fprintf (File,
"non-essential ");
256 fprintf (File,
"essential ");
258 fprintf (File,
"%f %f\n",
void memfree(void *element)
void WriteFeature(FEATURE Feature, STRING *str)
void WriteOldParamDesc(FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc)
FEATURE NewFeature(const FEATURE_DESC_STRUCT *FeatureDesc)
int tfscanf(FILE *stream, const char *format,...)
FEATURE_SET NewFeatureSet(int NumFeatures)
const FEATURE_DESC_STRUCT * Type
FEATURE ReadFeature(FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc)
void WriteFeatureSet(FEATURE_SET FeatureSet, STRING *str)
#define ILLEGAL_NUM_FEATURES
void add_str_int(const char *str, int number)
void * alloc_struct(inT32 count, const char *)
FEATURE_SET_STRUCT * FEATURE_SET
BOOL8 AddFeature(FEATURE_SET FeatureSet, FEATURE Feature)
void FreeFeature(FEATURE Feature)
void DoError(int Error, const char *Message)
void add_str_double(const char *str, double number)
#define ILLEGAL_FEATURE_PARAM
const PARAM_DESC * ParamDesc
void free_struct(void *deadstruct, inT32, const char *)
void FreeFeatureSet(FEATURE_SET FeatureSet)
FEATURE_SET ReadFeatureSet(FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc)