Path: blob/main/korean/hcode/files/patch-conv.c
16461 views
--- conv.c.orig 1998-03-11 04:46:36.000000000 -05001+++ conv.c 2013-06-12 19:31:05.000000000 -04002@@ -27,7 +27,7 @@3ju = VOW[((wc>>8)&0xff)-0xa1][1];4jo = CON[(wc&0xff)-0xa1][2];5if ( ch<0x8000||ju<0x8000||jo<0x8000 )6- fprintf(stderr,"%x is not valid in Trigem Code\n",wc);7+ fprintf(stderr,"%lx is not valid in Trigem Code\n",wc);8return (ch&0xfc00)+(ju&0x03e0)+(jo&0x1f);9}1011@@ -78,6 +78,7 @@12if ( wc>>16 == 0x8ffb ) /* KS */13return wc ;1415+ h3 = 0;16if ( wc>>16 == 0 ) { /* TR */17tr = wc;18} else {19@@ -104,6 +105,7 @@20{21int ch,ju,jo;2223+ ch = ju = jo = 0;24if ( wc>>16 == 0 ) { /* Trigem */25for (ch=NoCON-1; ch>0; ch--)26if (CON[ch][1]==(wc&0x7c00)+0x8041) break;272829