From e284a9b05fdaa7ff80eae2fe0883813946bb7c57 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: http://svn.ruby-lang.org/repos/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(-) 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("*") -- cgit