mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-29 07:19:42 +08:00
protobuf-c/protobuf-c.{c,h}: remove the unused protobuf_c_system_allocator
This commit is contained in:
parent
b1056e922a
commit
b5b1d4e907
@ -155,20 +155,6 @@ ProtobufCAllocator protobuf_c_default_allocator =
|
|||||||
NULL /* allocator_data */
|
NULL /* allocator_data */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Users should NOT modify this structure,
|
|
||||||
but it's difficult to prevent.
|
|
||||||
|
|
||||||
please modify protobuf_c_default_allocator instead. */
|
|
||||||
ProtobufCAllocator protobuf_c_system_allocator =
|
|
||||||
{
|
|
||||||
system_alloc,
|
|
||||||
system_free,
|
|
||||||
NULL, /* tmp_alloc */
|
|
||||||
8192, /* max_alloca */
|
|
||||||
NULL /* allocator_data */
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/* === buffer-simple === */
|
/* === buffer-simple === */
|
||||||
void
|
void
|
||||||
protobuf_c_buffer_simple_append (ProtobufCBuffer *buffer,
|
protobuf_c_buffer_simple_append (ProtobufCBuffer *buffer,
|
||||||
|
@ -164,12 +164,6 @@ struct _ProtobufCAllocator
|
|||||||
*/
|
*/
|
||||||
extern PROTOBUF_C_API ProtobufCAllocator protobuf_c_default_allocator; /* settable */
|
extern PROTOBUF_C_API ProtobufCAllocator protobuf_c_default_allocator; /* settable */
|
||||||
|
|
||||||
/* This is the system allocator, meaning it uses malloc() and free().
|
|
||||||
*
|
|
||||||
* NOTE: please do NOT modify this allocator.
|
|
||||||
*/
|
|
||||||
extern PROTOBUF_C_API 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
|
||||||
run out-of-memory. The default behavior of this function is to
|
run out-of-memory. The default behavior of this function is to
|
||||||
terminate your program. */
|
terminate your program. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user