[前][次][番号順一覧][スレッド一覧]

ruby-changes:42437

From: nobu <ko1@a...>
Date: Thu, 7 Apr 2016 20:17:52 +0900 (JST)
Subject: [ruby-changes:42437] nobu:r54511 (trunk): win32.c: call w32_wopen directly

nobu	2016-04-07 21:14:29 +0900 (Thu, 07 Apr 2016)

  New Revision: 54511

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54511

  Log:
    win32.c: call w32_wopen directly
    
    * win32/win32.c (rb_w32_uopen): call w32_wopen directly instead of
      variadic rb_w32_wopen.

  Modified files:
    trunk/win32/win32.c
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 54510)
+++ win32/win32.c	(revision 54511)
@@ -63,6 +63,7 @@ https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L63
 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 https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L5981
 
     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) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L6000
     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, ...)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]