ruby-changes:21832
From: usa <ko1@a...>
Date: Mon, 28 Nov 2011 12:33:23 +0900 (JST)
Subject: [ruby-changes:21832] usa:r33881 (trunk): * include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove
usa 2011-11-28 12:33:10 +0900 (Mon, 28 Nov 2011) New Revision: 33881 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33881 Log: * include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove unused old API. Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 33880) +++ ChangeLog (revision 33881) @@ -1,3 +1,8 @@ +Mon Nov 28 12:32:24 2011 NAKAMURA Usaku <usa@r...> + + * include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove + unused old API. + Mon Nov 28 12:29:20 2011 NAKAMURA Usaku <usa@r...> * win32/mkexports.rb (Exports#initialize): remove old symbol name. Index: win32/win32.c =================================================================== --- win32/win32.c (revision 33880) +++ win32/win32.c (revision 33881) @@ -279,25 +279,8 @@ #define IfWin95(win95, winnt) (winnt) #endif -/* License: Ruby's */ -HANDLE -GetCurrentThreadHandle(void) -{ - static HANDLE current_process_handle = NULL; - HANDLE h; - - if (!current_process_handle) - current_process_handle = GetCurrentProcess(); - if (!DuplicateHandle(current_process_handle, GetCurrentThread(), - current_process_handle, &h, - 0, FALSE, DUPLICATE_SAME_ACCESS)) - return NULL; - return h; -} - /* simulate flock by locking a range on the file */ - /* License: Artistic or GPL */ #define LK_ERR(f,i) \ do { \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/