protobuf-c-text
Library to generate & parse text format protobufs in C.
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
Functions
Utility functions
Collaboration diagram for Utility functions:

Functions

static void * local_realloc (void *ptr, size_t old_size, size_t size, ProtobufCAllocator *allocator)
 A realloc implementation using ProtobufCAllocator functions. More...
 

Detailed Description

Function Documentation

static void* local_realloc ( void *  ptr,
size_t  old_size,
size_t  size,
ProtobufCAllocator *  allocator 
)
static

A realloc implementation using ProtobufCAllocator functions.

Similar to realloc, but using ProtobufCAllocator functions to do the memory manipulations.

Parameters
[in,out]ptrMemory to realloc.
[in]old_sizeThe size of ptr before realloc.
[in]sizeThe desired size of ptr after realloc.
[in]allocatorThe functions to use to achieve this.
Returns
NULL on realloc failure - note ptr isn't freed in this case. The new, size sized pointer (and ptr is freed in this case).

Definition at line 56 of file parse.re.

References PBC_ALLOC, and PBC_FREE.

Referenced by state_assignment(), and state_value().

Here is the caller graph for this function: