From c827e7cce5a6c8f65feb515660083c32e714056c Mon Sep 17 00:00:00 2001 From: ttate Date: Mon, 7 Mar 2005 15:52:09 +0000 Subject: [PATCH] bugfix for typealias() in import.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/import.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index 2a98ace8ab..1cb6606dd7 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -99,9 +99,10 @@ module DL # example: # typealias("uint", "unsigned int") # - def typealias(*args) + def typealias(alias_type, ty1, enc1=nil, dec1=nil, ty2=nil, enc2=nil, dec2=nil) init_types() - @types.typealias(*args) + @types.typealias(alias_type, ty1, enc1, dec1, + ty2||ty1, enc2, dec2) end # example: