1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-04-07 12:14:29 +00:00
parent bcdfef89ae
commit a3239b5bec

View file

@ -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, ...)