diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-08 20:04:10 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-08 20:04:10 +0000 |
commit | 16cb9d65eda9e2a692b9f0f5299a477793a8ba11 (patch) | |
tree | d6d4c84cffbf315677a61e053ac933dd799d4831 /ext/dl | |
parent | f479ed6da6d9f89cd97b56f5cc9a76364ad8dc21 (diff) |
accept space characters at the end of a prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/lib/dl/import.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index 1cb6606dd7..63c9b2c050 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -38,10 +38,10 @@ module DL case proto when /^([\d\w\*_\s]+)\(([\d\w\*_\s\,\[\]]*)\)$/ ret = $1 - args = $2 + args = $2.strip() ret = ret.split(/\s+/) args = args.split(/\s*,\s*/) - func = ret.pop + func = ret.pop() if( func =~ /^\*/ ) func.gsub!(/^\*+/,"") ret.push("*") |