lang/c/msgpack: removed string type

git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@54 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
frsyuki
2009-02-15 09:09:56 +00:00
parent f41c20a250
commit 249d3e9c90
9 changed files with 29 additions and 44 deletions

View File

@@ -119,10 +119,4 @@ check([
0xdf, 0x00, 0x00, 0x00, 0x02, 0xc0, 0xc2, 0xc3, 0xc2,
], [{}, {nil=>false}, {true=>false, nil=>false}, {}, {nil=>false}, {true=>false, nil=>false}])
# string
check([
0x92,
0xc1, 0x00,
0xc1, ?a, ?b, ?c, 0x00,
], ["", "abc"])

View File

@@ -71,11 +71,8 @@ static inline VALUE msgpack_unpack_map_start(msgpack_unpack_context* x, unsigned
static inline void msgpack_unpack_map_item(msgpack_unpack_context* x, VALUE c, VALUE k, VALUE v)
{ rb_hash_aset(c, k, v); }
static inline VALUE msgpack_unpack_string(msgpack_unpack_context* x, const void* b, size_t l)
{ return rb_str_new(b, l); }
static inline VALUE msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, size_t l)
{ return rb_str_new(b, l); }
static inline VALUE msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, const void* p, size_t l)
{ return rb_str_new(p, l); }
#include "msgpack/unpack/inline_impl.h"