mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
improve the prototype parser.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f027ab80dc
commit
dbdde236cb
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue