diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-25 08:15:29 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-25 08:15:29 +0000 |
commit | f7a5ee56d72e4badc825d60af0d8efc36d3d95d1 (patch) | |
tree | a7834cca33ebaa8aaebbce9fefe0cefad4436292 /ext/dl/lib | |
parent | 058c1d1620218ef0a8304516007479922a1a4523 (diff) | |
download | ruby-f7a5ee56d72e4badc825d60af0d8efc36d3d95d1.tar.gz |
Use 'P' instead of 'p' in types.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib')
-rw-r--r-- | ext/dl/lib/dl/types.rb | 6 |
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 ) |