From a6754983942e46bb17c477fd648c5b18f1644714 Mon Sep 17 00:00:00 2001 From: ttate Date: Thu, 25 Nov 2004 08:15:29 +0000 Subject: Use 'P' instead of 'p' in types.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/lib/dl/types.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/dl/lib/dl/types.rb b/ext/dl/lib/dl/types.rb index 24595b748..a929df6cc 100644 --- a/ext/dl/lib/dl/types.rb +++ b/ext/dl/lib/dl/types.rb @@ -153,7 +153,7 @@ module DL "S",nil, nil], [/^const char\s*\*$/,"S",nil, nil, "S",nil, nil], - [/^.+\*$/, "p", nil, nil, + [/^.+\*$/, "P", nil, nil, "P", nil, nil], [/^.+\[\]$/, "a", nil, nil, "a", nil, nil], @@ -186,8 +186,8 @@ module DL # t1 = Regexp.new("^" + t1 + "$") # end if( (t1.is_a?(Regexp) && (t1 =~ ty)) || (t1 == ty) ) - ty1 = ty.gsub(t1,t2) - ty2 = ty.gsub(t1,t3) + ty1 = ty.gsub(t1,t2) if t2 + ty2 = ty.gsub(t1,t3) if t3 ty1.strip! if ty1 ty2.strip! if ty2 if( enc ) -- cgit