summaryrefslogtreecommitdiff
path: root/ruby/unpack_inline.c
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:56 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:09:56 +0000
commit249d3e9c908ea4a3fd2012a753ca7f0cea0b4ee5 (patch)
treee5e469b0a0ff4f2bc211044fad72ccb26528c8d6 /ruby/unpack_inline.c
parentf41c20a2503411393012d01e3f3c3ea0e9c7dde8 (diff)
downloadmsgpack-python-249d3e9c908ea4a3fd2012a753ca7f0cea0b4ee5.tar.gz
lang/c/msgpack: removed string type
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@54 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'ruby/unpack_inline.c')
-rw-r--r--ruby/unpack_inline.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ruby/unpack_inline.c b/ruby/unpack_inline.c
index f6715d9..b30754b 100644
--- a/ruby/unpack_inline.c
+++ b/ruby/unpack_inline.c
@@ -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"