mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3afd0f9a91
commit
f661c0be44
1 changed files with 2 additions and 2 deletions
|
@ -82,10 +82,10 @@ module Fiddle
|
|||
tymap ||= {}
|
||||
case compact(signature)
|
||||
when /^(?:[\w\*\s]+)\(\*(\w+)\((.*?)\)\)(?:\[\w*\]|\(.*?\));?$/
|
||||
func, args = $1, $2
|
||||
func, args = $1, $2
|
||||
return [func, TYPE_VOIDP, split_arguments(args).collect {|arg| parse_ctype(arg, tymap)}]
|
||||
when /^([\w\*\s]+[\*\s])(\w+)\((.*?)\);?$/
|
||||
ret, func, args = $1.strip, $2, $3
|
||||
ret, func, args = $1.strip, $2, $3
|
||||
return [func, parse_ctype(ret, tymap), split_arguments(args).collect {|arg| parse_ctype(arg, tymap)}]
|
||||
else
|
||||
raise(RuntimeError,"can't parse the function prototype: #{signature}")
|
||||
|
|
Loading…
Add table
Reference in a new issue