|
|
| version 1.16, 2011/01/03 11:49:25 | version 1.17, 2011/01/15 14:56:55 |
|---|---|
| Line 352 file_catname(OEMCHAR *path, const OEMCHA | Line 352 file_catname(OEMCHAR *path, const OEMCHA |
| } else if (((*path - 0x41) & 0xff) < 26) { | } else if (((*path - 0x41) & 0xff) < 26) { |
| *path |= 0x20; | *path |= 0x20; |
| } else if (*path == '\\') { | } else if (*path == '\\') { |
| *path = '/'; | *path = G_DIR_SEPARATOR; |
| } | } |
| } | } |
| } | } |
| Line 376 file_getname(const OEMCHAR *path) | Line 376 file_getname(const OEMCHAR *path) |
| if (*path == '\0') { | if (*path == '\0') { |
| break; | break; |
| } | } |
| } else if (*path == '/') { | } else if (*path == G_DIR_SEPARATOR) { |
| ret = path + 1; | ret = path + 1; |
| } | } |
| } | } |
| Line 429 file_cutseparator(OEMCHAR *path) | Line 429 file_cutseparator(OEMCHAR *path) |
| int pos; | int pos; |
| pos = strlen(path) - 1; | pos = strlen(path) - 1; |
| if ((pos > 0) && (path[pos] == '/')) { | if ((pos > 0) && (path[pos] == G_DIR_SEPARATOR)) { |
| path[pos] = '\0'; | path[pos] = '\0'; |
| } | } |
| } | } |
| Line 440 file_setseparator(OEMCHAR *path, int max | Line 440 file_setseparator(OEMCHAR *path, int max |
| int pos; | int pos; |
| pos = strlen(path); | pos = strlen(path); |
| if ((pos) && (path[pos-1] != '/') && ((pos + 2) < maxlen)) { | if ((pos) && (path[pos-1] != G_DIR_SEPARATOR) && ((pos + 2) < maxlen)) { |
| path[pos++] = '/'; | path[pos++] = G_DIR_SEPARATOR; |
| path[pos] = '\0'; | path[pos] = '\0'; |
| } | } |
| } | } |