mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
|
--- ./Wnn/jserver/b_index.c.orig Tue Jun 28 11:06:49 1994
|
||
|
+++ ./Wnn/jserver/b_index.c Sat Jul 19 00:45:21 1997
|
||
|
@@ -99,8 +99,8 @@
|
||
|
|
||
|
/** For each tuple in ri1[0] create b_nodes */
|
||
|
for (i=0; i<jt->maxri1[0]; i++){
|
||
|
- serial = (jt->ri1[0]+i)->pter;
|
||
|
- yomi = KANJI_str(jt->ri2[serial].kanjipter + jt->kanji, 0);
|
||
|
+ serial = ntohs((jt->ri1[0]+i)->pter);
|
||
|
+ yomi = KANJI_str(ntohs(jt->ri2[serial].kanjipter) + jt->kanji, 0);
|
||
|
b_index_add(jt, yomi, serial);
|
||
|
}
|
||
|
return(b_cnt);
|
||
|
@@ -133,7 +133,7 @@
|
||
|
int serial;
|
||
|
{
|
||
|
w_char *yomi;
|
||
|
- yomi = KANJI_str(jt->ri2[serial].kanjipter + jt->kanji, 0);
|
||
|
+ yomi = KANJI_str(ntohs(jt->ri2[serial].kanjipter) + jt->kanji, 0);
|
||
|
delete_b_node(jt, yomi, 0, 0 );
|
||
|
}
|
||
|
|
||
|
@@ -160,7 +160,7 @@
|
||
|
tmp_node = jt->bind[tmp_node].pter_son;
|
||
|
}
|
||
|
yo_kanji = KANJI_str(
|
||
|
- jt->ri2[jt->bind[tmp_node].pter].kanjipter+jt->kanji, 0);
|
||
|
+ ntohs(jt->ri2[jt->bind[tmp_node].pter].kanjipter)+jt->kanji, 0);
|
||
|
if ( yomi[level] > yo_kanji[level] ) {
|
||
|
buf_node1 = buf_node2;
|
||
|
buf_node2 = jt->bind[buf_node2].pter_next ;
|
||
|
@@ -216,7 +216,7 @@
|
||
|
tmp_node = jt->bind[tmp_node].pter_son;
|
||
|
}
|
||
|
yo_kanji = KANJI_str(
|
||
|
- jt->ri2[jt->bind[tmp_node].pter].kanjipter+jt->kanji, 0);
|
||
|
+ ntohs(jt->ri2[jt->bind[tmp_node].pter].kanjipter)+jt->kanji, 0);
|
||
|
|
||
|
if ( yomi[level] > yo_kanji[level] ) {
|
||
|
buf_node1 = buf_node2;
|