format
This commit is contained in:
parent
feab74e968
commit
42788836f4
1 changed files with 8 additions and 8 deletions
|
|
@ -87,7 +87,7 @@ static __inline int yomicmp_seg(SJ4_CONTEXT u_char* ptr1, u_char* ptr2, u_char*
|
||||||
for(i = same; i; i--)
|
for(i = same; i; i--)
|
||||||
if(*ptr1++ != *ptr2++) return OVER;
|
if(*ptr1++ != *ptr2++) return OVER;
|
||||||
|
|
||||||
j = segidxlen - same;
|
j = segidxlen - same;
|
||||||
ptr2 = (u_char*)ptr2;
|
ptr2 = (u_char*)ptr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,11 +154,11 @@ srchdict(SJ4_CONTEXT u_char* tagp) {
|
||||||
TypeDicSeg segno;
|
TypeDicSeg segno;
|
||||||
int cmp;
|
int cmp;
|
||||||
int maxlen;
|
int maxlen;
|
||||||
u_char* segidx = NULL;
|
u_char* segidx = NULL;
|
||||||
int segidxlen = 0;
|
int segidxlen = 0;
|
||||||
|
|
||||||
if(prevseg != (TypeDicSeg)-1){
|
if(prevseg != (TypeDicSeg)-1) {
|
||||||
segidx = idxbuf + idxofs[prevseg];
|
segidx = idxbuf + idxofs[prevseg];
|
||||||
segidxlen = sstrlen(segidx);
|
segidxlen = sstrlen(segidx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -173,8 +173,8 @@ srchdict(SJ4_CONTEXT u_char* tagp) {
|
||||||
if(prevseg != segno) {
|
if(prevseg != segno) {
|
||||||
(*curdict->getdic)(SJ4_CONTEXT_PASS curdict, segno);
|
(*curdict->getdic)(SJ4_CONTEXT_PASS curdict, segno);
|
||||||
|
|
||||||
prevseg = segno;
|
prevseg = segno;
|
||||||
segidx = idxbuf + idxofs[segno];
|
segidx = idxbuf + idxofs[segno];
|
||||||
segidxlen = sstrlen(segidx);
|
segidxlen = sstrlen(segidx);
|
||||||
|
|
||||||
tagp = dicbuf;
|
tagp = dicbuf;
|
||||||
|
|
@ -191,7 +191,7 @@ srchdict(SJ4_CONTEXT u_char* tagp) {
|
||||||
if(segno >= curdict->segunit) return NULL;
|
if(segno >= curdict->segunit) return NULL;
|
||||||
|
|
||||||
(*curdict->getdic)(SJ4_CONTEXT_PASS curdict, segno);
|
(*curdict->getdic)(SJ4_CONTEXT_PASS curdict, segno);
|
||||||
segidx = idxbuf + idxofs[segno];
|
segidx = idxbuf + idxofs[segno];
|
||||||
segidxlen = sstrlen(segidx);
|
segidxlen = sstrlen(segidx);
|
||||||
|
|
||||||
tagp = dicbuf;
|
tagp = dicbuf;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue