From dbdde236cb73b0508c8bc0733d98ba21d39b9ee6 Mon Sep 17 00:00:00 2001 From: ttate Date: Fri, 5 Apr 2002 17:12:48 +0000 Subject: improve the prototype parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/import.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index ef0c79c21f..42e89515c8 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -49,6 +49,10 @@ module DL ret = ret.split(/\s+/) args = args.split(/\s*,\s*/) func = ret.pop + if( func =~ /^\*/ ) + func.gsub!(/^\*+/,"") + ret.push("*") + end ret = ret.join(" ") return import(func, ret, args) else -- cgit v1.2.3