Thread: [KoCo-CVS] [Commit] KoreanCodecs/src _koco_ksc5601.h _koco_uhc.h cp949_codec.h euckr_codec.h koco_st
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-10-16 16:28:39
|
perky 02/10/16 09:28:30 Modified: src _koco_ksc5601.h _koco_uhc.h cp949_codec.h euckr_codec.h koco_stream.h Log: Cast explicitly to suppress warnings on HP-UX cc. Revision Changes Path 1.8 +8 -8 KoreanCodecs/src/_koco_ksc5601.h Index: _koco_ksc5601.h =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/_koco_ksc5601.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- _koco_ksc5601.h 14 Oct 2002 09:01:22 -0000 1.7 +++ _koco_ksc5601.h 16 Oct 2002 16:28:29 -0000 1.8 @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Generated by tablegen.py on Tue Jul 23 18:03:34 2002 - * $Id: _koco_ksc5601.h,v 1.7 2002/10/14 09:01:22 perky Exp $ + * $Id: _koco_ksc5601.h,v 1.8 2002/10/16 16:28:29 perky Exp $ */ #define ksc5601_decode_bottom 161 @@ -1489,7 +1489,7 @@ }; -static unsigned char *ksc5601_encode_page0[945] = { /* 0x00a1 - 0x0451 */ +static char *ksc5601_encode_page0[945] = { /* 0x00a1 - 0x0451 */ "\xa2\xae", 0, 0, "\xa2\xb4", 0, 0, "\xa1\xd7", "\xa1\xa7", 0, "\xa8\xa3", 0, 0, "\xa1\xa9", "\xa2\xe7", 0, "\xa1\xc6", "\xa1\xbe", "\xa9\xf7", "\xa9\xf8", "\xa2\xa5", 0, "\xa2\xd2", "\xa1\xa4", "\xa2\xac", @@ -1611,7 +1611,7 @@ "\xac\xd7", }; -static unsigned char *ksc5601_encode_page1[1625] = { /* 0x2015 - 0x266d */ +static char *ksc5601_encode_page1[1625] = { /* 0x2015 - 0x266d */ "\xa1\xaa", 0, 0, "\xa1\xae", "\xa1\xaf", 0, 0, "\xa1\xb0", "\xa1\xb1", 0, 0, "\xa2\xd3", "\xa2\xd4", 0, 0, 0, "\xa1\xa5", "\xa1\xa6", 0, 0, 0, 0, 0, 0, @@ -1818,7 +1818,7 @@ "\xa2\xda", }; -static unsigned char *ksc5601_encode_page2[990] = { /* 0x3000 - 0x33dd */ +static char *ksc5601_encode_page2[990] = { /* 0x3000 - 0x33dd */ "\xa1\xa1", "\xa1\xa2", "\xa1\xa3", "\xa1\xa8", 0, 0, 0, 0, "\xa1\xb4", "\xa1\xb5", "\xa1\xb6", "\xa1\xb7", "\xa1\xb8", "\xa1\xb9", "\xa1\xba", "\xa1\xbb", "\xa1\xbc", "\xa1\xbd", 0, "\xa1\xeb", "\xa1\xb2", "\xa1\xb3", 0, 0, @@ -1945,7 +1945,7 @@ "\xa2\xe4", 0, 0, "\xa7\xe4", "\xa7\xee", "\xa7\xe9", }; -static unsigned char *ksc5601_encode_page3[20893] = { /* 0x4e00 - 0x9f9c */ +static char *ksc5601_encode_page3[20893] = { /* 0x4e00 - 0x9f9c */ "\xec\xe9", "\xef\xcb", 0, "\xf6\xd2", 0, 0, 0, "\xd8\xb2", "\xed\xdb", "\xdf\xb2", "\xdf\xbe", "\xf9\xbb", 0, "\xdc\xf4", 0, 0, 0, "\xf5\xe4", 0, 0, "\xf3\xa6", "\xdd\xe0", "\xe1\xa6", 0, @@ -4560,7 +4560,7 @@ 0, 0, 0, 0, "\xcf\xcf", }; -static unsigned char *ksc5601_encode_page4[11166] = { /* 0xac00 - 0xd79d */ +static char *ksc5601_encode_page4[11166] = { /* 0xac00 - 0xd79d */ "\xb0\xa1", "\xb0\xa2", 0, 0, "\xb0\xa3", 0, 0, "\xb0\xa4", "\xb0\xa5", "\xb0\xa6", "\xb0\xa7", 0, 0, 0, 0, 0, "\xb0\xa8", "\xb0\xa9", "\xb0\xaa", "\xb0\xab", "\xb0\xac", "\xb0\xad", "\xb0\xae", "\xb0\xaf", @@ -5959,7 +5959,7 @@ "\xc8\xfb", "\xc8\xfc", 0, "\xc8\xfd", 0, "\xc8\xfe", }; -static unsigned char *ksc5601_encode_page5[268] = { /* 0xf900 - 0xfa0b */ +static char *ksc5601_encode_page5[268] = { /* 0xf900 - 0xfa0b */ "\xcb\xd0", "\xcb\xd6", "\xcb\xe7", "\xcd\xcf", "\xcd\xe8", "\xce\xad", "\xcf\xfb", "\xd0\xa2", "\xd0\xb8", "\xd0\xd0", "\xd0\xdd", "\xd1\xd4", "\xd1\xd5", "\xd1\xd8", "\xd1\xdb", "\xd1\xdc", "\xd1\xdd", "\xd1\xde", "\xd1\xdf", "\xd1\xe0", "\xd1\xe2", "\xd1\xe3", "\xd1\xe4", "\xd1\xe5", @@ -5996,7 +5996,7 @@ "\xfa\xa1", "\xfa\xa2", "\xfa\xe6", "\xfc\xa9", }; -static unsigned char *ksc5601_encode_page6[230] = { /* 0xff01 - 0xffe6 */ +static char *ksc5601_encode_page6[230] = { /* 0xff01 - 0xffe6 */ "\xa3\xa1", "\xa3\xa2", "\xa3\xa3", "\xa3\xa4", "\xa3\xa5", "\xa3\xa6", "\xa3\xa7", "\xa3\xa8", "\xa3\xa9", "\xa3\xaa", "\xa3\xab", "\xa3\xac", "\xa3\xad", "\xa3\xae", "\xa3\xaf", "\xa3\xb0", "\xa3\xb1", "\xa3\xb2", "\xa3\xb3", "\xa3\xb4", "\xa3\xb5", "\xa3\xb6", "\xa3\xb7", "\xa3\xb8", 1.7 +2 -2 KoreanCodecs/src/_koco_uhc.h Index: _koco_uhc.h =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/_koco_uhc.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- _koco_uhc.h 14 Oct 2002 09:01:22 -0000 1.6 +++ _koco_uhc.h 16 Oct 2002 16:28:30 -0000 1.7 @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Generated by tablegen.py on Sat Mar 16 01:24:41 2002 - * $Id: _koco_uhc.h,v 1.6 2002/10/14 09:01:22 perky Exp $ + * $Id: _koco_uhc.h,v 1.7 2002/10/16 16:28:30 perky Exp $ */ #define uhc_page0_bottom 0x41 @@ -1609,7 +1609,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; -static unsigned char *uhc_encode_page0[11170] = { /* 0xac02 - 0xd7a3 */ +static char *uhc_encode_page0[11170] = { /* 0xac02 - 0xd7a3 */ "\x81\x41", "\x81\x42", 0, "\x81\x43", "\x81\x44", 0, 0, 0, 0, "\x81\x45", "\x81\x46", "\x81\x47", "\x81\x48", "\x81\x49", 0, 0, 0, 0, 0, 0, 0, 0, "\x81\x4a", 0, 1.8 +5 -5 KoreanCodecs/src/cp949_codec.h Index: cp949_codec.h =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/cp949_codec.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- cp949_codec.h 14 Oct 2002 10:27:13 -0000 1.7 +++ cp949_codec.h 16 Oct 2002 16:28:30 -0000 1.8 @@ -1,10 +1,10 @@ /* - * cp949_codec.h - $Revision: 1.7 $ + * cp949_codec.h - $Revision: 1.8 $ * * KoreanCodecs CP949 Codec C Implementation * * Author : Hye-Shik Chang <pe...@Fr...> - * Date : $Date: 2002/10/14 10:27:13 $ + * Date : $Date: 2002/10/16 16:28:30 $ * Created : 15 March 2002 * * This file is part of KoreanCodecs. @@ -153,9 +153,9 @@ if (*srccur <= 0x7F) *(destcur++) = (unsigned char)*srccur; else { - decbuf = _ksc5601_encode(*srccur); + decbuf = (unsigned char *)_ksc5601_encode(*srccur); if (!decbuf) - decbuf = _uhc_encode(*srccur); + decbuf = (unsigned char *)_uhc_encode(*srccur); if(decbuf == 0) { switch (errtype) { case error_strict: @@ -185,6 +185,6 @@ } /* - * $Id: cp949_codec.h,v 1.7 2002/10/14 10:27:13 perky Exp $ + * $Id: cp949_codec.h,v 1.8 2002/10/16 16:28:30 perky Exp $ * ex: ts=8 sts=4 et */ 1.8 +4 -4 KoreanCodecs/src/euckr_codec.h Index: euckr_codec.h =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/euckr_codec.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- euckr_codec.h 14 Oct 2002 10:27:13 -0000 1.7 +++ euckr_codec.h 16 Oct 2002 16:28:30 -0000 1.8 @@ -1,10 +1,10 @@ /* - * euckr_codec.h - $Revision: 1.7 $ + * euckr_codec.h - $Revision: 1.8 $ * * KoreanCodecs EUC-KR Codec C Implementation * * Author : Hye-Shik Chang <pe...@Fr...> - * Date : $Date: 2002/10/14 10:27:13 $ + * Date : $Date: 2002/10/16 16:28:30 $ * Created : 15 March 2002 * * This file is part of KoreanCodecs. @@ -125,7 +125,7 @@ if (*srccur <= 0x7F) *(destcur++) = (unsigned char)*srccur; else - if((decbuf = _ksc5601_encode(*srccur)) == 0) { + if((decbuf = (unsigned char *)_ksc5601_encode(*srccur)) == 0) { switch (errtype) { case error_strict: PyMem_Del(destptr); @@ -153,6 +153,6 @@ } /* - * $Id: euckr_codec.h,v 1.7 2002/10/14 10:27:13 perky Exp $ + * $Id: euckr_codec.h,v 1.8 2002/10/16 16:28:30 perky Exp $ * ex: ts=8 sts=4 et */ 1.9 +7 -7 KoreanCodecs/src/koco_stream.h Index: koco_stream.h =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/src/koco_stream.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- koco_stream.h 14 Oct 2002 10:27:13 -0000 1.8 +++ koco_stream.h 16 Oct 2002 16:28:30 -0000 1.9 @@ -1,10 +1,10 @@ /* - * euckr_stream.c - $Revision: 1.8 $ + * euckr_stream.c - $Revision: 1.9 $ * * KoreanCodecs EUC-KR StreamReader C Implementation * * Author : Hye-Shik Chang <pe...@Fr...> - * Date : $Date: 2002/10/14 10:27:13 $ + * Date : $Date: 2002/10/16 16:28:30 $ * Created : 28 April 2002 * * This file is part of KoreanCodecs. @@ -39,8 +39,8 @@ PyObject *r; destcur = destptr = PyMem_New(Py_UNICODE, slen+1); - srccur = s; - srcend = s + slen; + srccur = (unsigned char *)s; + srcend = (unsigned char *)s + slen; if (HAS_STATE(*state)) { unsigned char c; @@ -140,8 +140,8 @@ PyObject *r; destcur = destptr = PyMem_New(Py_UNICODE, slen+1); - srccur = s; - srcend = s + slen; + srccur = (unsigned char *)s; + srcend = (unsigned char *)s + slen; if (HAS_STATE(*state)) { unsigned char c; @@ -606,6 +606,6 @@ }; /* - * $Id: koco_stream.h,v 1.8 2002/10/14 10:27:13 perky Exp $ + * $Id: koco_stream.h,v 1.9 2002/10/16 16:28:30 perky Exp $ * ex: ts=8 sts=4 et */ |