--- np2/x11/dosio.c 2011/01/03 11:49:25 1.16 +++ np2/x11/dosio.c 2011/01/15 14:56:55 1.17 @@ -1,4 +1,4 @@ -/* $Id: dosio.c,v 1.16 2011/01/03 11:49:25 monaka Exp $ */ +/* $Id: dosio.c,v 1.17 2011/01/15 14:56:55 monaka Exp $ */ #include "compiler.h" @@ -352,7 +352,7 @@ file_catname(OEMCHAR *path, const OEMCHA } else if (((*path - 0x41) & 0xff) < 26) { *path |= 0x20; } else if (*path == '\\') { - *path = '/'; + *path = G_DIR_SEPARATOR; } } } @@ -376,7 +376,7 @@ file_getname(const OEMCHAR *path) if (*path == '\0') { break; } - } else if (*path == '/') { + } else if (*path == G_DIR_SEPARATOR) { ret = path + 1; } } @@ -429,7 +429,7 @@ file_cutseparator(OEMCHAR *path) int pos; pos = strlen(path) - 1; - if ((pos > 0) && (path[pos] == '/')) { + if ((pos > 0) && (path[pos] == G_DIR_SEPARATOR)) { path[pos] = '\0'; } } @@ -440,8 +440,8 @@ file_setseparator(OEMCHAR *path, int max int pos; pos = strlen(path); - if ((pos) && (path[pos-1] != '/') && ((pos + 2) < maxlen)) { - path[pos++] = '/'; + if ((pos) && (path[pos-1] != G_DIR_SEPARATOR) && ((pos + 2) < maxlen)) { + path[pos++] = G_DIR_SEPARATOR; path[pos] = '\0'; } }