summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/import.rb
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-05 17:12:48 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-05 17:12:48 +0000
commitdbdde236cb73b0508c8bc0733d98ba21d39b9ee6 (patch)
tree3b49d4be0e07394caabf988888781d33fd1ef155 /ext/dl/lib/dl/import.rb
parentf027ab80dcfc1d5507aecaa553a629d2149c8528 (diff)
improve the prototype parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl/import.rb')
-rw-r--r--ext/dl/lib/dl/import.rb4
1 files changed, 4 insertions, 0 deletions
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