diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-05 17:12:48 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-05 17:12:48 +0000 |
commit | eb0b9d5627fcd2b84d0a7f870b197497c835c50c (patch) | |
tree | 3b49d4be0e07394caabf988888781d33fd1ef155 | |
parent | aaea02b4477c3ff4083f55d15027c239fbcbfeaf (diff) | |
download | ruby-eb0b9d5627fcd2b84d0a7f870b197497c835c50c.tar.gz ruby-eb0b9d5627fcd2b84d0a7f870b197497c835c50c.tar.xz ruby-eb0b9d5627fcd2b84d0a7f870b197497c835c50c.zip |
improve the prototype parser.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/dl/lib/dl/import.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index ef0c79c21..42e89515c 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 |