--- np2/wince/dosio.h 2004/01/10 20:15:43 1.3 +++ np2/wince/dosio.h 2004/06/20 02:57:47 1.5 @@ -1,22 +1,4 @@ -enum { // ver0.28 - FTYPE_NONE = 0, // 自動判別 or PC - FTYPE_SMIL, // システム予約 - FTYPE_TEXT, // テキストファイル - FTYPE_BMP, // Bitmap - FTYPE_PICT, // Picture (予約) - FTYPE_PNG, // Png (予約) - FTYPE_WAV, // Wave - FTYPE_D88, // D88 - FTYPE_BETA, // ベタイメージ - FTYPE_THD, // .thd ハードディスクイメージ - FTYPE_HDI, // .hdi ハードディスクイメージ - FTYPE_HDD, // .hdd ハードディスクイメージ (予約) - FTYPE_S98, // .s98 ハードディスクイメージ - FTYPE_MIMPI // mimpi defaultファイル -}; - - #define FILEH HANDLE #define FILEH_INVALID (INVALID_HANDLE_VALUE) @@ -101,15 +83,21 @@ FLISTH file_list1st(const char *dir, FLI BOOL file_listnext(FLISTH hdl, FLINFO *fli); void file_listclose(FLISTH hdl); +#if defined(OSLANG_SJIS) #define file_cpyname(a, b, c) milsjis_ncpy(a, b, c) #define file_catname(a, b, c) milsjis_ncat(a, b, c) #define file_cmpname(a, b) milsjis_cmp(a, b) -char *file_getname(char *path); -void file_cutname(char *path); -char *file_getext(char *path); -void file_cutext(char *path); -void file_cutseparator(char *path); -void file_setseparator(char *path, int maxlen); +#else +#define file_cpyname(a, b, c) milutf8_ncpy(a, b, c) +#define file_catname(a, b, c) milutf8_ncat(a, b, c) +#define file_cmpname(a, b) milutf8_cmp(a, b) +#endif +OEMCHAR *file_getname(const OEMCHAR *path); +void file_cutname(OEMCHAR *path); +OEMCHAR *file_getext(const OEMCHAR *path); +void file_cutext(OEMCHAR *path); +void file_cutseparator(OEMCHAR *path); +void file_setseparator(OEMCHAR *path, int maxlen); #ifdef __cplusplus }