11 return (
struct _cbor_stack){.top = NULL, .size = 0};
24 if (stack->
size == CBOR_MAX_STACK_SIZE)
return NULL;
27 if (new_top == NULL)
return NULL;
_cbor_malloc_t _cbor_malloc
void _cbor_stack_pop(struct _cbor_stack *stack)
struct _cbor_stack _cbor_stack_init(void)
struct _cbor_stack_record * _cbor_stack_push(struct _cbor_stack *stack, cbor_item_t *item, size_t subitems)
Simple stack record for the parser.
cbor_item_t * item
Item under construction.
size_t subitems
How many outstanding subitems are expected.
struct _cbor_stack_record * lower
Pointer to the parent stack frame.
Stack handle - contents and size.
struct _cbor_stack_record * top