[KoCo-CVS] [Commit] cjkcodecs/src _johab.c
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-05-29 07:40:34
|
perky 03/05/29 00:31:08 Modified: src _johab.c Log: Remove debug routines. Revision Changes Path 1.2 +2 -6 cjkcodecs/src/_johab.c Index: _johab.c =================================================================== RCS file: /cvsroot/koco/cjkcodecs/src/_johab.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- _johab.c 29 May 2003 07:22:38 -0000 1.1 +++ _johab.c 29 May 2003 07:31:07 -0000 1.2 @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $Id: _johab.c,v 1.1 2003/05/29 07:22:38 perky Exp $ + * $Id: _johab.c,v 1.2 2003/05/29 07:31:07 perky Exp $ */ #include "codeccommon.h" @@ -83,7 +83,6 @@ (u2johabidx_choseong[c / 588] << 10) | (u2johabidx_jungseong[(c / 28) % 21] << 5) | u2johabidx_jongseong[c % 28]; - printf("cho %d jung %d jong %d\n", c / 588, (c / 28) % 21, c % 28); } else if (c >= 0x3131 && c <= 0x3163) code = u2johabjamo[c - 0x3131]; else TRYMAP_ENC(cp949, code, c) { @@ -206,13 +205,11 @@ **outbuf = 0x3100 | johabjamo_choseong[c_cho]; else return 2; - } else { - printf("cho %d jung %d jong %d\n", i_cho, i_jung, i_jong); + } else **outbuf = 0xac00 + i_cho * 588 + i_jung * 28 + (i_jong == FILL ? 0 : i_jong); - } } NEXT(2, 1) } else { @@ -230,7 +227,6 @@ t1 = t1 + (t2 < 0x5e ? 0 : 1) + 0x21; t2 = (t2 < 0x5e ? t2 : t2 - 0x5e) + 0x21; - printf("t1 %02x t2 %02x\n", t1, t2); TRYMAP_DEC(ksx1001, **outbuf, t1, t2); else return 2; NEXT(2, 1) |