diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-07 12:14:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-07 12:14:29 +0000 |
commit | a3239b5bec6b31a86942f58db9ae0ffb22925bb9 (patch) | |
tree | 68385f41dcaf388b3d967904381a8380d6e61250 /win32/win32.c | |
parent | bcdfef89ae7479ac6c3eaf53652cc6c12620d60b (diff) |
win32.c: call w32_wopen directly
* win32/win32.c (rb_w32_uopen): call w32_wopen directly instead of
variadic rb_w32_wopen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c index 1ee56aaf2c..537793ef73 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -63,6 +63,7 @@ DWORD WINAPI GetFinalPathNameByHandleW(HANDLE, LPWSTR, DWORD, DWORD); #endif +static int w32_wopen(const WCHAR *file, int oflag, int perm); static int w32_stati64(const char *path, struct stati64 *st, UINT cp); static int w32_lstati64(const char *path, struct stati64 *st, UINT cp); static char *w32_getenv(const char *name, UINT cp); @@ -5980,7 +5981,7 @@ rb_w32_uopen(const char *file, int oflag, ...) if (!(wfile = utf8_to_wstr(file, NULL))) return -1; - ret = rb_w32_wopen(wfile, oflag, pmode); + ret = w32_wopen(wfile, oflag, pmode); free(wfile); return ret; } @@ -5999,8 +6000,6 @@ check_if_wdir(const WCHAR *wfile) return TRUE; } -static int w32_wopen(const WCHAR *file, int oflag, int perm); - /* License: Ruby's */ int rb_w32_open(const char *file, int oflag, ...) |