mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-28 14:48:18 +08:00
random old commits
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@238 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
parent
4af0161167
commit
f74d5f6c18
@ -1473,10 +1473,6 @@ struct _ScannedMember
|
|||||||
const uint8_t *data;
|
const uint8_t *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MESSAGE_GET_UNKNOWNS(message) \
|
|
||||||
STRUCT_MEMBER_PTR (ProtobufCMessageUnknownFieldArray, \
|
|
||||||
(message), (message)->descriptor->unknown_field_array_offset)
|
|
||||||
|
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
scan_length_prefixed_data (size_t len, const uint8_t *data, size_t *prefix_len_out)
|
scan_length_prefixed_data (size_t len, const uint8_t *data, size_t *prefix_len_out)
|
||||||
{
|
{
|
||||||
|
@ -91,10 +91,15 @@ struct _ProtobufCAllocator
|
|||||||
* By default, it uses the system allocator (meaning malloc() and free()).
|
* By default, it uses the system allocator (meaning malloc() and free()).
|
||||||
* This is typically done to incorporate into frameworks that provide
|
* This is typically done to incorporate into frameworks that provide
|
||||||
* some nonstandard allocation functions.
|
* some nonstandard allocation functions.
|
||||||
|
*
|
||||||
|
* NOTE: you may modify this allocator.
|
||||||
*/
|
*/
|
||||||
extern ProtobufCAllocator protobuf_c_default_allocator; /* settable */
|
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 */
|
extern ProtobufCAllocator protobuf_c_system_allocator; /* use malloc, free etc */
|
||||||
|
|
||||||
/* This is the function that our default allocators call when they
|
/* This is the function that our default allocators call when they
|
||||||
|
Loading…
x
Reference in New Issue
Block a user