summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-25 08:15:29 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-25 08:15:29 +0000
commitbf6f327fb247dfd19ac5c1254f088750218a6b84 (patch)
treef5735fe8e1ed75d4fc268b7a57bb2cb7e81384f5 /ext
parenta460a366f863aabd2a9eecc85cfca756f077e4ec (diff)
Use 'P' instead of 'p' in types.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dl/lib/dl/types.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dl/lib/dl/types.rb b/ext/dl/lib/dl/types.rb
index 24595b748a..a929df6ccd 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 )