git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@292 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
lahiker42@gmail.com 2011-03-24 02:12:31 +00:00
parent 5787693b48
commit 5fe8eb694a

View File

@ -159,9 +159,10 @@ ProtobufCAllocator protobuf_c_default_allocator =
{
system_alloc,
system_free,
NULL,
8192,
NULL
NULL, /* allocator_data */
NULL, /* tmp_alloc */
NULL, /* alloc_unaligned */
NULL, /* unpack_error_handler: use default */
};
/* Users should NOT modify this structure,
@ -172,11 +173,13 @@ ProtobufCAllocator protobuf_c_system_allocator =
{
system_alloc,
system_free,
NULL,
8192,
NULL
NULL, /* allocator_data */
NULL, /* tmp_alloc */
NULL, /* alloc_unaligned */
NULL, /* unpack_error_handler: use default */
};
/* === buffer-simple === */
void
protobuf_c_buffer_simple_append (ProtobufCBuffer *buffer,
@ -572,7 +575,7 @@ int32_pack (int32_t value, uint8_t *out)
return uint32_pack (value, out);
}
/* Pack a 32-bit integer in zigwag encoding. */
/* Pack a 32-bit integer in zigzag encoding. */
static inline size_t
sint32_pack (int32_t value, uint8_t *out)
{