summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-16 15:22:20 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-16 15:22:20 +0000
commit6ef0fd4e60a4e9ebde606dfceb16f861ee163d4c (patch)
tree9dbcd2f92e2163155a08b8a0fcb9b52439561d61
parentbdf4e8e20834dbba5a82badf71ff25dd7a70013f (diff)
downloadruby-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.rb5
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],
]