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 | 6ef0fd4e60a4e9ebde606dfceb16f861ee163d4c (patch) | |
tree | 9dbcd2f92e2163155a08b8a0fcb9b52439561d61 | |
parent | bdf4e8e20834dbba5a82badf71ff25dd7a70013f (diff) | |
download | ruby-6ef0fd4e60a4e9ebde606dfceb16f861ee163d4c.tar.gz ruby-6ef0fd4e60a4e9ebde606dfceb16f861ee163d4c.tar.xz ruby-6ef0fd4e60a4e9ebde606dfceb16f861ee163d4c.zip |
added 'const char *' to use the type specifier 'S' instead of 'char *'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 b9a235f3b..6fc373b79 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], ] |