summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-08 20:04:10 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-08 20:04:10 +0000
commite284a9b05fdaa7ff80eae2fe0883813946bb7c57 (patch)
treed6d4c84cffbf315677a61e053ac933dd799d4831
parent4e284a641362d2eb83b874b0c758b3417cb0441c (diff)
downloadruby-e284a9b05fdaa7ff80eae2fe0883813946bb7c57.tar.gz
ruby-e284a9b05fdaa7ff80eae2fe0883813946bb7c57.tar.xz
ruby-e284a9b05fdaa7ff80eae2fe0883813946bb7c57.zip
accept space characters at the end of a prototype.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/dl/lib/dl/import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb
index 1cb6606dd..63c9b2c05 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("*")