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 | a6754983942e46bb17c477fd648c5b18f1644714 (patch) | |
| tree | f5735fe8e1ed75d4fc268b7a57bb2cb7e81384f5 | |
| parent | d9be7eeb61cdf2164d80b5aff8acda57892188bb (diff) | |
| download | ruby-a6754983942e46bb17c477fd648c5b18f1644714.tar.gz ruby-a6754983942e46bb17c477fd648c5b18f1644714.tar.xz ruby-a6754983942e46bb17c477fd648c5b18f1644714.zip | |
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
| -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 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 ) |
