random old commits

git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@238 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
lahiker42 2010-06-18 14:46:53 +00:00
parent 4af0161167
commit f74d5f6c18
2 changed files with 6 additions and 5 deletions

View File

@ -1473,10 +1473,6 @@ struct _ScannedMember
const uint8_t *data;
};
#define MESSAGE_GET_UNKNOWNS(message) \
STRUCT_MEMBER_PTR (ProtobufCMessageUnknownFieldArray, \
(message), (message)->descriptor->unknown_field_array_offset)
static inline uint32_t
scan_length_prefixed_data (size_t len, const uint8_t *data, size_t *prefix_len_out)
{

View File

@ -91,10 +91,15 @@ struct _ProtobufCAllocator
* By default, it uses the system allocator (meaning malloc() and free()).
* This is typically done to incorporate into frameworks that provide
* some nonstandard allocation functions.
*
* NOTE: you may modify this allocator.
*/
extern ProtobufCAllocator protobuf_c_default_allocator; /* settable */
/* This is the system allocator, meaning it uses malloc() and free() */
/* This is the system allocator, meaning it uses malloc() and free().
*
* NOTE: please do NOT modify this allocator.
*/
extern ProtobufCAllocator protobuf_c_system_allocator; /* use malloc, free etc */
/* This is the function that our default allocators call when they