88 #define NumNonEmptyClassesIn(Template) ((Template)->NumNonEmptyClasses) 90 #define IsEmptyAdaptedClass(Class) ((Class)->NumPermConfigs == 0 && \ 91 (Class)->TempProtos == NIL_LIST) 93 #define ConfigIsPermanent(Class,ConfigId) \ 94 (test_bit ((Class)->PermConfigs, ConfigId)) 96 #define MakeConfigPermanent(Class,ConfigId) \ 97 (SET_BIT ((Class)->PermConfigs, ConfigId)) 99 #define MakeProtoPermanent(Class,ProtoId) \ 100 (SET_BIT ((Class)->PermProtos, ProtoId)) 102 #define TempConfigFor(Class,ConfigId) \ 103 ((Class)->Config[ConfigId].Temp) 105 #define PermConfigFor(Class,ConfigId) \ 106 ((Class)->Config[ConfigId].Perm) 108 #define IncreaseConfidence(TempConfig) \ 109 ((TempConfig)->NumTimesSeen++) void FreeTempProto(void *arg)
void free_adapted_class(ADAPT_CLASS adapt_class)
PERM_CONFIG ReadPermConfig(FILE *File)
void FreeTempConfig(TEMP_CONFIG Config)
PERM_CONFIG_STRUCT * PERM_CONFIG
TEMP_PROTO_STRUCT * TEMP_PROTO
void WritePermConfig(FILE *File, PERM_CONFIG Config)
TEMP_CONFIG NewTempConfig(int MaxProtoId, int FontinfoId)
ADAPT_CLASS NewAdaptedClass()
TEMP_PROTO NewTempProto()
TEMP_CONFIG ReadTempConfig(FILE *File)
void WriteTempConfig(FILE *File, TEMP_CONFIG Config)
void free_adapted_templates(ADAPT_TEMPLATES templates)
ADAPT_CLASS ReadAdaptedClass(FILE *File)
TEMP_CONFIG_STRUCT * TEMP_CONFIG
ADAPT_CLASS_STRUCT * ADAPT_CLASS
ADAPT_TEMPLATES_STRUCT * ADAPT_TEMPLATES
void AddAdaptedClass(ADAPT_TEMPLATES Templates, ADAPT_CLASS Class, CLASS_ID ClassId)
void WriteAdaptedClass(FILE *File, ADAPT_CLASS Class, int NumConfigs)