--- np2/win9x/np2arg.cpp 2003/10/16 17:58:42 1.1.1.1 +++ np2/win9x/np2arg.cpp 2005/03/19 18:54:58 1.3 @@ -1,6 +1,6 @@ #include "compiler.h" -#include "dosio.h" #include "np2arg.h" +#include "dosio.h" // ver0.26 np2arg.cpp append // コマンドラインの解析 @@ -19,19 +19,19 @@ // win32の場合 コマンドラインが stringが返ってくる・・・ -static char argstrtmp[1024]; +static OEMCHAR argstrtmp[1024]; -void np2arg_analize(char *argstr) { +void np2arg_analize(const TCHAR *argstr) { - int np2argc; - char *np2argv[MAXARG]; - int i; - int drv = 0; - char c; -const char *p; + int np2argc; + OEMCHAR *np2argv[MAXARG]; + int i; + int drv = 0; + char c; +const OEMCHAR *p; - milstr_ncpy(argstrtmp, argstr, sizeof(argstrtmp)); - np2argc = milstr_getarg(argstrtmp, np2argv, sizeof(argstrtmp)); + milstr_ncpy(argstrtmp, argstr, NELEMENTS(argstrtmp)); + np2argc = milstr_getarg(argstrtmp, np2argv, NELEMENTS(np2argv)); for (i=ARG_BASE; i