87 #define NumNonEmptyClassesIn(Template) ((Template)->NumNonEmptyClasses) 89 #define IsEmptyAdaptedClass(Class) ((Class)->NumPermConfigs == 0 && \ 90 (Class)->TempProtos == NIL_LIST) 92 #define ConfigIsPermanent(Class,ConfigId) \ 93 (test_bit ((Class)->PermConfigs, ConfigId)) 95 #define MakeConfigPermanent(Class,ConfigId) \ 96 (SET_BIT ((Class)->PermConfigs, ConfigId)) 98 #define MakeProtoPermanent(Class,ProtoId) \ 99 (SET_BIT ((Class)->PermProtos, ProtoId)) 101 #define TempConfigFor(Class,ConfigId) \ 102 ((Class)->Config[ConfigId].Temp) 104 #define PermConfigFor(Class,ConfigId) \ 105 ((Class)->Config[ConfigId].Perm) 107 #define IncreaseConfidence(TempConfig) \ 108 ((TempConfig)->NumTimesSeen++) 114 void FreeTempProto(
void *arg);
124 TEMP_CONFIG NewTempConfig(
int MaxProtoId,
int FontinfoId);
134 void WriteAdaptedClass(FILE *File,
ADAPT_CLASS Class,
int NumConfigs);
136 void WritePermConfig(FILE *File,
PERM_CONFIG Config);
138 void WriteTempConfig(FILE *File,
TEMP_CONFIG Config);
int NumNonEmptyClasses
Definition: adaptive.h:77
PROTO_STRUCT Proto
Definition: adaptive.h:32
Definition: adaptive.h:39
uint8_t NumPermClasses
Definition: adaptive.h:78
uint8_t MaxNumTimesSeen
Definition: adaptive.h:65
TEMP_CONFIG Temp
Definition: adaptive.h:58
Definition: intproto.h:118
BIT_VECTOR PermConfigs
Definition: adaptive.h:68
BIT_VECTOR Protos
Definition: adaptive.h:44
uint8_t NumPermConfigs
Definition: adaptive.h:64
uint16_t ProtoId
Definition: adaptive.h:30
uint16_t dummy
Definition: adaptive.h:31
Definition: serialis.h:77
Definition: adaptive.h:74
Definition: adaptive.h:28
PROTO_ID MaxProtoId
Definition: adaptive.h:43
LIST TempProtos
Definition: adaptive.h:69
int FontinfoId
Definition: adaptive.h:45
Definition: adaptive.h:49
Definition: adaptive.h:62
Definition: adaptive.h:56
uint8_t NumTimesSeen
Definition: adaptive.h:41
UNICHAR_ID * Ambigs
Definition: adaptive.h:51
PERM_CONFIG Perm
Definition: adaptive.h:59
int FontinfoId
Definition: adaptive.h:52
Definition: oldlist.h:124
BIT_VECTOR PermProtos
Definition: adaptive.h:67
uint8_t ProtoVectorSize
Definition: adaptive.h:42
INT_TEMPLATES Templates
Definition: adaptive.h:76