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 | dbdde236cb73b0508c8bc0733d98ba21d39b9ee6 (patch) | |
tree | 3b49d4be0e07394caabf988888781d33fd1ef155 /ext/dl | |
parent | f027ab80dcfc1d5507aecaa553a629d2149c8528 (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')
-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 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 |