Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/korean/hcode/files/patch-conv.c
18157 views
1
--- conv.c.orig 1998-03-11 04:46:36.000000000 -0500
2
+++ conv.c 2013-06-12 19:31:05.000000000 -0400
3
@@ -27,7 +27,7 @@
4
ju = VOW[((wc>>8)&0xff)-0xa1][1];
5
jo = CON[(wc&0xff)-0xa1][2];
6
if ( ch<0x8000||ju<0x8000||jo<0x8000 )
7
- fprintf(stderr,"%x is not valid in Trigem Code\n",wc);
8
+ fprintf(stderr,"%lx is not valid in Trigem Code\n",wc);
9
return (ch&0xfc00)+(ju&0x03e0)+(jo&0x1f);
10
}
11
12
@@ -78,6 +78,7 @@
13
if ( wc>>16 == 0x8ffb ) /* KS */
14
return wc ;
15
16
+ h3 = 0;
17
if ( wc>>16 == 0 ) { /* TR */
18
tr = wc;
19
} else {
20
@@ -104,6 +105,7 @@
21
{
22
int ch,ju,jo;
23
24
+ ch = ju = jo = 0;
25
if ( wc>>16 == 0 ) { /* Trigem */
26
for (ch=NoCON-1; ch>0; ch--)
27
if (CON[ch][1]==(wc&0x7c00)+0x8041) break;
28
29