lang/c/msgpack: divide pack_raw() into pack_raw() and pack_raw_body()

git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@74 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
frsyuki
2009-02-15 09:09:58 +00:00
parent 921b0ff62e
commit 1ad04b22d8
9 changed files with 28 additions and 139 deletions

View File

@@ -257,7 +257,7 @@ zone* unpacker::release_zone()
throw;
}
}
m_ctx->user(&*m_zone);
m_ctx->user(m_zone.get());
return old.release();
}
@@ -268,7 +268,7 @@ object unpacker::data()
void unpacker::reset()
{
if(m_off != 0) { std::auto_ptr<zone> old(release_zone()); }
if(m_off != 0) { delete release_zone(); }
m_ctx->reset();
}