summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-01 10:52:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-01 10:52:48 +0000
commitc256b3c7a0c1dbb583c3277f235fa6684a026907 (patch)
treea842649ae92048fabc01b8af48c6ef01e858f4c0 /ext
parent3b9bcfd40305d2c87b0d3815b15ba95f4cb08dc4 (diff)
downloadruby-c256b3c7a0c1dbb583c3277f235fa6684a026907.tar.gz
ruby-c256b3c7a0c1dbb583c3277f235fa6684a026907.tar.xz
ruby-c256b3c7a0c1dbb583c3277f235fa6684a026907.zip
* ext/dl/win32/lib/Win32API.rb (initialize): passes rest
arguments to DL. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/win32/lib/Win32API.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/win32/lib/Win32API.rb b/ext/dl/win32/lib/Win32API.rb
index 97f6c5135..17b4c86d6 100644
--- a/ext/dl/win32/lib/Win32API.rb
+++ b/ext/dl/win32/lib/Win32API.rb
@@ -8,10 +8,10 @@ class Win32API
DLL = {}
TYPEMAP = {"0" => DL::TYPE_VOID, "S" => DL::TYPE_VOIDP, "I" => DL::TYPE_LONG}
- def initialize(dllname, func, import, export = "0")
+ def initialize(dllname, func, import, export = "0", *rest)
@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)
+ @func = DL::CFunc.new(handle[func], TYPEMAP[export.tr("VPpNnLlIi", "0SSI")], func, *rest)
rescue DL::DLError => e
raise LoadError, e.message, e.backtrace
end