summaryrefslogtreecommitdiff
path: root/ruby/unpack.c
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@vcore.(none)>2009-02-26 01:15:14 +0900
committerfrsyuki <frsyuki@vcore.(none)>2009-02-26 01:15:14 +0900
commit5697b9a15d89a397a53174b9eca2d96bc7ebaef0 (patch)
tree9168b29e6d8c495001bf18573a5f712ff158c9b4 /ruby/unpack.c
parent8893523776e5258e2817711da75f00a6074a13ae (diff)
downloadmsgpack-python-5697b9a15d89a397a53174b9eca2d96bc7ebaef0.tar.gz
remove msgpack_unpacker_buffered_size, add msgpack_unpacker_parsed_size
Diffstat (limited to 'ruby/unpack.c')
-rw-r--r--ruby/unpack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby/unpack.c b/ruby/unpack.c
index 4de4955..411a94d 100644
--- a/ruby/unpack.c
+++ b/ruby/unpack.c
@@ -278,6 +278,7 @@ static VALUE MessagePack_unpack_rescue(VALUE args)
static VALUE MessagePack_unpack_limit(VALUE self, VALUE data, VALUE limit)
{
CHECK_STRING_TYPE(data);
+
msgpack_unpack_t mp;
template_init(&mp);
unpack_user u = {0, Qnil};
@@ -288,6 +289,7 @@ static VALUE MessagePack_unpack_limit(VALUE self, VALUE data, VALUE limit)
VALUE ret = rb_rescue(MessagePack_unpack_impl, (VALUE)args,
MessagePack_unpack_rescue, Qnil);
rb_gc_enable();
+
return ret;
}