#define MAXNORMLEN 256
#define STRNCASECMP(x,y) (strncasecmp(x,y,strlen(y)))
-#define GETWCHAR(W,L,N,T) ( ((u_int8_t*)(W))[ ((T)=='p') ? (N) : ( (L) - 1 - (N) ) ] )
+#define GETWCHAR(W,L,N,T) ( ((uint8*)(W))[ ((T)=='p') ? (N) : ( (L) - 1 - (N) ) ] )
#define GETCHAR(A,N,T) GETWCHAR( (A)->repl, (A)->replen, N, T )
StopHigh = node->data+node->length;
while (StopLow < StopHigh) {
StopMiddle = StopLow + (StopHigh - StopLow) / 2;
- if ( StopMiddle->val == ((u_int8_t*)(word))[level] ) {
+ if ( StopMiddle->val == ((uint8*)(word))[level] ) {
if ( wrdlen==level+1 && StopMiddle->isword ) {
if ( compoundonly && !StopMiddle->compoundallow )
return 0;
node=StopMiddle->node;
level++;
break;
- } else if ( StopMiddle->val < ((u_int8_t*)(word))[level] ) {
+ } else if ( StopMiddle->val < ((uint8*)(word))[level] ) {
StopLow = StopMiddle + 1;
} else {
StopHigh = StopMiddle;
}
lastchar=Conf->Spell[i].word[level];
}
- data->val=((u_int8_t*)(Conf->Spell[i].word))[level];
+ data->val=((uint8*)(Conf->Spell[i].word))[level];
if ( Conf->Spell[i].p.d.len == level+1 ) {
if ( data->isword && data->affix!=Conf->Spell[i].p.d.affix) {
/*
mkANode(IspellDict *Conf, int low, int high, int level, int type) {
int i;
int nchar=0;
- u_int8_t lastchar='\0';
+ uint8 lastchar='\0';
AffixNode *rs;
AffixNodeData *data;
int lownew=low;
static AffixNodeData*
FinfAffixes(AffixNode *node, const char *word, int wrdlen, int *level, int type) {
AffixNodeData *StopLow, *StopHigh, *StopMiddle;
- u_int8_t symbol;
+ uint8 symbol;
while( node && *level<wrdlen) {
StopLow = node->data;
StopHigh = node->data+node->length;
while (StopLow < StopHigh) {
StopMiddle = StopLow + (StopHigh - StopLow) / 2;
- if ( StopMiddle->val == ((u_int8_t*)(word))[level] ) {
+ if ( StopMiddle->val == ((uint8*)(word))[level] ) {
break;
- } else if ( StopMiddle->val < ((u_int8_t*)(word))[level] ) {
+ } else if ( StopMiddle->val < ((uint8*)(word))[level] ) {
StopLow = StopMiddle + 1;
} else {
StopHigh = StopMiddle;