--- xmil/common/milstr.c 2004/08/01 05:31:29 1.1 +++ xmil/common/milstr.c 2008/06/02 20:07:30 1.5 @@ -1,7 +1,7 @@ #include "compiler.h" -// ---- ANK / UCS2 / UCS4 +/* ANK / UCS2 / UCS4 */ #if defined(SUPPORT_ANK) int STRCALL milank_charsize(const OEMCHAR *str) { @@ -101,7 +101,7 @@ OEMCHAR * STRCALL milank_chr(const OEMCH #endif -// ---- Shift-JIS +/* Shift-JIS */ #if defined(SUPPORT_SJIS) int STRCALL milsjis_charsize(const char *str) { @@ -264,9 +264,9 @@ char * STRCALL milsjis_chr(const char *s #endif -// ---- EUC +/* EUC */ -#if defined(SUPPORT_EUC) // あれ 半角カナ忘れてるぞ? +#if defined(SUPPORT_EUC) /* あれ 半角カナ忘れてるぞ? */ int STRCALL mileuc_charsize(const char *str) { int pos; @@ -328,7 +328,7 @@ int STRCALL mileuc_memcmp(const char *st if (((c - 'a') & 0xff) < 26) { c -= 0x20; } - s = (BYTE)*str++; + s = (UINT8)*str++; if (((s - 'a') & 0xff) < 26) { s -= 0x20; } @@ -426,7 +426,7 @@ char * STRCALL mileuc_chr(const char *st #endif -// ---- UTF8 +/* UTF8 */ #if defined(SUPPORT_UTF8) int STRCALL milutf8_charsize(const char *str) { @@ -461,7 +461,7 @@ int STRCALL milutf8_cmp(const char *str, if (((s - 'a') & 0xff) < 26) { s -= 0x20; } - c = (BYTE)*cmp++; + c = (UINT8)*cmp++; if (((c - 'a') & 0xff) < 26) { c -= 0x20; } @@ -567,16 +567,16 @@ char * STRCALL milutf8_chr(const char *s #endif -// ---- other +/* other */ -int STRCALL milstr_extendcmp(const char *str, const char *cmp) { +int STRCALL milstr_extendcmp(const OEMCHAR *str, const OEMCHAR *cmp) { int c; int s; do { while(1) { - c = (BYTE)*cmp++; + c = (UINT8)*cmp++; if (!c) { return(0); } @@ -619,7 +619,7 @@ int STRCALL milstr_getarg(OEMCHAR *str, int ret = 0; OEMCHAR *p; - BOOL quot; + BRESULT quot; while(maxarg--) { quot = FALSE; @@ -653,7 +653,7 @@ long STRCALL milstr_solveHEX(const OEMCH long ret; int i; - char c; + OEMCHAR c; ret = 0; for (i=0; i<8; i++) {