diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 05:32:22 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 05:32:22 +0000 |
commit | 38698dbbe365c3ca2955ce4ecdc4dca340806fef (patch) | |
tree | 630691a6410a98093c105da6f8aadb8aedfcc2d2 | |
parent | 1ee89595bc28f8bcfcaa34b817d6c4fe31b6a019 (diff) | |
download | ruby-38698dbbe365c3ca2955ce4ecdc4dca340806fef.tar.gz |
Add "unsigned short".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/dl/lib/dl/types.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/types.rb b/ext/dl/lib/dl/types.rb index f93a4eb2b9..51489921ff 100644 --- a/ext/dl/lib/dl/types.rb +++ b/ext/dl/lib/dl/types.rb @@ -52,6 +52,10 @@ module DL proc{|v| [v].pack("C").unpack("c")[0]}, proc{|v| [v].pack("c").unpack("C")[0]}, nil, nil], + ["unsigned short", "H", + proc{|v| [v].pack("S").unpack("s")[0]}, + proc{|v| [v].pack("s").unpack("S")[0]}, + nil, nil], ["unsigned int", "I", proc{|v| [v].pack("I").unpack("i")[0]}, proc{|v| [v].pack("i").unpack("I")[0]}, |