mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
raises DLError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2a2cc2e9c4
commit
1fb7ce6303
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Feb 13 23:37:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
|
||||
raises DLError.
|
||||
|
||||
Fri Feb 13 21:13:19 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c (Init_socket): define TCPServer#listen and
|
||||
|
|
|
@ -12,6 +12,8 @@ class Win32API
|
|||
@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)
|
||||
|
|
Loading…
Reference in a new issue