From 16cb9d65eda9e2a692b9f0f5299a477793a8ba11 Mon Sep 17 00:00:00 2001 From: ttate Date: Fri, 8 Apr 2005 20:04:10 +0000 Subject: 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 --- ext/dl/lib/dl/import.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') 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("*") -- cgit v1.2.3