diff options
| author | uema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-26 05:25:30 +0000 |
|---|---|---|
| committer | uema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-04-26 05:25:30 +0000 |
| commit | 61e00f28a6df92138dc3049da760d5245d63ed69 (patch) | |
| tree | 1330399ba14a2e9a26cba8c40db9ebd54ba95441 /wince/sys | |
| parent | b14e578873929941c117b411df41303d059d5078 (diff) | |
| download | ruby-61e00f28a6df92138dc3049da760d5245d63ed69.tar.gz ruby-61e00f28a6df92138dc3049da760d5245d63ed69.tar.xz ruby-61e00f28a6df92138dc3049da760d5245d63ed69.zip | |
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'wince/sys')
| -rw-r--r-- | wince/sys/stat.c | 3 | ||||
| -rw-r--r-- | wince/sys/utime.c | 2 | ||||
| -rw-r--r-- | wince/sys/utime.h | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/wince/sys/stat.c b/wince/sys/stat.c index f898a69f4..5d51dbf42 100644 --- a/wince/sys/stat.c +++ b/wince/sys/stat.c @@ -22,7 +22,8 @@ int _stat(const char *filename, struct _stat *st) WIN32_FIND_DATAW fd; wchar_t *wfilename; - wfilename = wce_mbtowc(filename); +// wfilename = wce_mbtowc(filename); + wfilename = wce_replaceRelativeDir(filename); dwAttribute = GetFileAttributesW(wfilename); if(dwAttribute==0xFFFFFFFF) diff --git a/wince/sys/utime.c b/wince/sys/utime.c index 02ce275e3..0139c1382 100644 --- a/wince/sys/utime.c +++ b/wince/sys/utime.c @@ -14,7 +14,7 @@ #endif #endif -int _utime(const char *f, struct utimbuf *t) +int utime(const char *f, struct utimbuf *t) { HANDLE h; FILETIME atime={0}, mtime={0}; diff --git a/wince/sys/utime.h b/wince/sys/utime.h index 46a4ddc1a..b644f02a6 100644 --- a/wince/sys/utime.h +++ b/wince/sys/utime.h @@ -16,12 +16,12 @@ struct utimbuf extern "C" { #endif -int _utime(const char *f, struct utimbuf *t); +int utime(const char *f, struct utimbuf *t); #ifdef __cplusplus }; #endif -#define utime _utime +//#define utime _utime #endif |
