- Modernize code to use Py_ssize_t more intensively.

- Do some minor code clean-ups.
This commit is contained in:
Hye-Shik Chang 2006-03-04 16:08:19 +00:00
parent ad9afcf213
commit 4b96c1384e
18 changed files with 131 additions and 168 deletions

View file

@ -2,7 +2,6 @@
* _codecs_hk.c: Codecs collection for encodings from Hong Kong
*
* Written by Hye-Shik Chang <perky@FreeBSD.org>
* $CJKCodecs: _codecs_hk.c,v 1.4 2004/07/18 04:44:27 perky Exp $
*/
#define USING_IMPORTED_MAPS
@ -32,7 +31,7 @@ ENCODER(big5hkscs)
while (inleft > 0) {
ucs4_t c = **inbuf;
DBCHAR code;
int insize;
Py_ssize_t insize;
if (c < 0x80) {
REQUIRE_OUTBUF(1)