ruby-changes:10727
From: nobu <ko1@a...>
Date: Fri, 13 Feb 2009 23:37:22 +0900 (JST)
Subject: [ruby-changes:10727] Ruby:r22291 (trunk): * ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
nobu 2009-02-13 23:37:11 +0900 (Fri, 13 Feb 2009) New Revision: 22291 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22291 Log: * ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen raises DLError. Modified files: trunk/ChangeLog trunk/ext/dl/win32/lib/Win32API.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 22290) +++ ChangeLog (revision 22291) @@ -1,3 +1,8 @@ +Fri Feb 13 23:37:10 2009 Nobuyoshi Nakada <nobu@r...> + + * ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen + raises DLError. + Fri Feb 13 21:13:19 2009 Tanaka Akira <akr@f...> * ext/socket/socket.c (Init_socket): define TCPServer#listen and Index: ext/dl/win32/lib/Win32API.rb =================================================================== --- ext/dl/win32/lib/Win32API.rb (revision 22290) +++ ext/dl/win32/lib/Win32API.rb (revision 22291) @@ -12,6 +12,8 @@ @proto = [import].join.tr("VPpNnLlIi", "0SSI").sub(/^(.)0*$/, '\1') handle = DLL[dllname] ||= DL.dlopen(dllname) @func = DL::CFunc.new(handle[func], TYPEMAP[export.tr("VPpNnLlIi", "0SSI")], func) + rescue DL::DLError => e + raise LoadError, e.message, e.backtrace end def call(*args) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/