From a3239b5bec6b31a86942f58db9ae0ffb22925bb9 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 7 Apr 2016 12:14:29 +0000 Subject: 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 --- win32/win32.c | 5 ++--- 1 file 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, ...) -- cgit v1.2.3