diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-16 15:22:20 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-16 15:22:20 +0000 |
commit | 2ce5bb2594fbd6250b60fc9dd49d7735668fa8fa (patch) | |
tree | 9dbcd2f92e2163155a08b8a0fcb9b52439561d61 /ext/dl/lib | |
parent | 5278fa5b48c23254c5351b0524a3e92af396356e (diff) | |
download | ruby-2ce5bb2594fbd6250b60fc9dd49d7735668fa8fa.tar.gz |
added 'const char *' to use the type specifier 'S' instead of 'char *'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib')
-rw-r--r-- | ext/dl/lib/dl/types.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/dl/lib/dl/types.rb b/ext/dl/lib/dl/types.rb index b9a235f3b4..6fc373b797 100644 --- a/ext/dl/lib/dl/types.rb +++ b/ext/dl/lib/dl/types.rb @@ -97,8 +97,9 @@ module DL ["long", "L", nil, nil, nil, nil], ["float", "F", nil, nil, nil, nil], ["double", "D", nil, nil, nil, nil], - [/^char\s*\*$/,"S",nil, nil, nil, nil], - [/^.+\*$/, "P", nil, nil, nil, nil], + [/^char\s*\*$/,"s",nil, nil, nil, nil], + [/^const char\s*\*$/,"S",nil, nil, nil, nil], + [/^.+\*$/, "p", nil, nil, nil, nil], [/^.+\[\]$/, "a", nil, nil, nil, nil], ["void", "0", nil, nil, nil, nil], ] |