reader.c (mairix-0.23) | : | reader.c (mairix-0.24) | ||
---|---|---|---|---|
skipping to change at line 67 | skipping to change at line 67 | |||
/* Single byte encoding */ | /* Single byte encoding */ | |||
result = x0; | result = x0; | |||
} | } | |||
*encpos = j; | *encpos = j; | |||
return result; | return result; | |||
} | } | |||
/*}}}*/ | /*}}}*/ | |||
static void read_toktable_db(char *data, struct toktable_db *toktable, int start , unsigned int *uidata)/*{{{*/ | static void read_toktable_db(char *data, struct toktable_db *toktable, int start , unsigned int *uidata)/*{{{*/ | |||
{ | { | |||
int n; | toktable->n = uidata[start]; | |||
n = toktable->n = uidata[start]; | ||||
toktable->tok_offsets = uidata + uidata[start+1]; | toktable->tok_offsets = uidata + uidata[start+1]; | |||
toktable->enc_offsets = uidata + uidata[start+2]; | toktable->enc_offsets = uidata + uidata[start+2]; | |||
return; | return; | |||
} | } | |||
/*}}}*/ | /*}}}*/ | |||
static void read_toktable2_db(char *data, struct toktable2_db *toktable, int sta rt, unsigned int *uidata)/*{{{*/ | static void read_toktable2_db(char *data, struct toktable2_db *toktable, int sta rt, unsigned int *uidata)/*{{{*/ | |||
{ | { | |||
int n; | toktable->n = uidata[start]; | |||
n = toktable->n = uidata[start]; | ||||
toktable->tok_offsets = uidata + uidata[start+1]; | toktable->tok_offsets = uidata + uidata[start+1]; | |||
toktable->enc0_offsets = uidata + uidata[start+2]; | toktable->enc0_offsets = uidata + uidata[start+2]; | |||
toktable->enc1_offsets = uidata + uidata[start+3]; | toktable->enc1_offsets = uidata + uidata[start+3]; | |||
return; | return; | |||
} | } | |||
/*}}}*/ | /*}}}*/ | |||
struct read_db *open_db(char *filename)/*{{{*/ | struct read_db *open_db(char *filename)/*{{{*/ | |||
{ | { | |||
int fd, len; | int fd, len; | |||
char *data; | char *data; | |||
End of changes. 2 change blocks. | ||||
4 lines changed or deleted | 2 lines changed or added |