/* nkf32.dll nfk32dll.c */
-// e-mail:tkaneto@nifty.com
-// URL: http://www1.ttcn.ne.jp/~kaneto
+/* e-mail:tkaneto@nifty.com */
+/* URL: http://www1.ttcn.ne.jp/~kaneto */
/*WIN32DLL*/
/* \82±\82¿\82ç\82Ì\83o\81[\83W\83\87\83\93\82à\8dX\90V\82µ\82Ä\82\82¾\82³\82¢\81B */
-#define NKF_VERSIONW L"2.0.6"
+#define NKF_VERSIONW L"2.0.8"
/* NKF_VERSION \82Ì\83\8f\83C\83h\95¶\8e\9a */
-#define DLL_VERSION "2.0.6.0 1"
+#define DLL_VERSION "2.0.8.0 1"
/* DLL\82ª\95Ô\82· */
-#define DLL_VERSIONW L"2.0.6.0 1"
+#define DLL_VERSIONW L"2.0.8.0 1"
/* DLL\82ª\95Ô\82· DLL_VERSION \82Ì\83\8f\83C\83h\95¶\8e\9a */
/* nkf32.dll main */
return EOF;
}
-static FILE *fout = stdout;
+static FILE *fout = NULL;
static unsigned char *cout = NULL;
static int nout = -1;
static int noutmax = -1;
#endif /*UNICODESUPPORT*/
}
-int CALLBACK SetNkfOption(LPCSTR optStr)
+int CALLBACK SetNkfOption(LPSTR optStr)
{
LPSTR p;
int CALLBACK NkfGetKanjiCode(VOID)
{
int iCode=0;
- //if(iconv == s_iconv)iCode=0; /* 0:\83V\83t\83gJIS */
+ /* if(iconv == s_iconv)iCode=0; */ /* 0:\83V\83t\83gJIS */
if(iconv == w_iconv)iCode=3; /* UTF-8 */
else if(iconv == w_iconv16){
- if(utf16_mode == UTF16BE_INPUT)iCode=5; /* 5:UTF-16BE */
+ if(input_endian == ENDIAN_BIG)iCode=5; /* 5:UTF-16BE */
else iCode=4; /* 4:UTF-16LE */
}else if(iconv == e_iconv){
if(estab_f == FALSE)iCode=2; /* 2:ISO-2022-JP */
{
*lpBytesReturned = sizeof NkfSupportFunctions;
if ( outStr == NULL || nBufferLength == 0 ) return FALSE;
- NkfSupportFunctions.copyrightA = CopyRight;
+ NkfSupportFunctions.copyrightA = COPY_RIGHT;
memcpy(outStr,&NkfSupportFunctions,sizeof NkfSupportFunctions > nBufferLength ? nBufferLength : sizeof NkfSupportFunctions);
return TRUE;
}