| version 1.9, 2005/02/12 12:13:59 | version 1.11, 2005/03/20 08:58:19 | 
| Line 152  void DOSIOCALL file_setcd(const OEMCHAR | Line 152  void DOSIOCALL file_setcd(const OEMCHAR | 
 |  |  | 
 | OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { | OEMCHAR * DOSIOCALL file_getcd(const OEMCHAR *path) { | 
 |  |  | 
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | 
 | return(curpath); | return(curpath); | 
 | } | } | 
 |  |  | 
 | FILEH DOSIOCALL file_open_c(const OEMCHAR *path) { | FILEH DOSIOCALL file_open_c(const OEMCHAR *path) { | 
 |  |  | 
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | 
 | return(file_open(curpath)); | return(file_open(curpath)); | 
 | } | } | 
 |  |  | 
 | FILEH DOSIOCALL file_open_rb_c(const OEMCHAR *path) { | FILEH DOSIOCALL file_open_rb_c(const OEMCHAR *path) { | 
 |  |  | 
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | 
 | return(file_open_rb(curpath)); | return(file_open_rb(curpath)); | 
 | } | } | 
 |  |  | 
 | FILEH DOSIOCALL file_create_c(const OEMCHAR *path) { | FILEH DOSIOCALL file_create_c(const OEMCHAR *path) { | 
 |  |  | 
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | 
 | return(file_create(curpath)); | return(file_create(curpath)); | 
 | } | } | 
 |  |  | 
 | short DOSIOCALL file_delete_c(const OEMCHAR *path) { | short DOSIOCALL file_delete_c(const OEMCHAR *path) { | 
 |  |  | 
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | 
 | return(file_delete(curpath)); | return(file_delete(curpath)); | 
 | } | } | 
 |  |  | 
 | short DOSIOCALL file_attr_c(const OEMCHAR *path) { | short DOSIOCALL file_attr_c(const OEMCHAR *path) { | 
 |  |  | 
| file_cpyname(curfilep, path, sizeof(curpath) - (curfilep - curpath)); | file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath)); | 
 | return(file_attr(curpath)); | return(file_attr(curpath)); | 
 | } | } | 
 |  |  | 
| Line 278  const OEMCHAR *q; | Line 278  const OEMCHAR *q; | 
 | p = file_getname(path); | p = file_getname(path); | 
 | q = NULL; | q = NULL; | 
 | while((csize = milstr_charsize(p)) != 0) { | while((csize = milstr_charsize(p)) != 0) { | 
| if ((csize == 1) && (*path == '.')) { | if ((csize == 1) && (*p == '.')) { | 
 | q = p + 1; | q = p + 1; | 
 | } | } | 
 | p += csize; | p += csize; | 
| Line 298  void DOSIOCALL file_cutext(OEMCHAR *path | Line 298  void DOSIOCALL file_cutext(OEMCHAR *path | 
 | p = file_getname(path); | p = file_getname(path); | 
 | q = NULL; | q = NULL; | 
 | while((csize = milstr_charsize(p)) != 0) { | while((csize = milstr_charsize(p)) != 0) { | 
| if ((csize == 1) && (*path == '.')) { | if ((csize == 1) && (*p == '.')) { | 
 | q = p; | q = p; | 
 | } | } | 
 | p += csize; | p += csize; |