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 free_adapted_class(ADAPT_CLASS adapt_class)
void WriteAdaptedClass(FILE *File, ADAPT_CLASS Class, int NumConfigs)
TEMP_PROTO NewTempProto()
void FreeTempProto(void *arg)
TEMP_CONFIG ReadTempConfig(FILE *File)
PERM_CONFIG_STRUCT * PERM_CONFIG
void FreeTempConfig(TEMP_CONFIG Config)
void WritePermConfig(FILE *File, PERM_CONFIG Config)
PERM_CONFIG ReadPermConfig(FILE *File)
ADAPT_CLASS_STRUCT * ADAPT_CLASS
TEMP_PROTO_STRUCT * TEMP_PROTO
void WriteTempConfig(FILE *File, TEMP_CONFIG Config)
ADAPT_TEMPLATES_STRUCT * ADAPT_TEMPLATES
TEMP_CONFIG NewTempConfig(int MaxProtoId, int FontinfoId)
ADAPT_CLASS NewAdaptedClass()
void free_adapted_templates(ADAPT_TEMPLATES templates)
ADAPT_CLASS ReadAdaptedClass(FILE *File)
void AddAdaptedClass(ADAPT_TEMPLATES Templates, ADAPT_CLASS Class, CLASS_ID ClassId)
TEMP_CONFIG_STRUCT * TEMP_CONFIG