Skip to content

Commit

Permalink
Merge remote branch 'lavena/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Apr 28, 2010
2 parents fc23792 + 5731624 commit 7afcc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rbreadline.rb
Expand Up @@ -4286,10 +4286,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", calltype = :stdcall)
@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, calltype)
end

def call(*args)
Expand Down

0 comments on commit 7afcc7b

Please sign in to comment.