Lines Matching refs:stack
8 #include "stack.h"
14 void _cbor_stack_pop(struct _cbor_stack* stack) {
15 struct _cbor_stack_record* top = stack->top;
16 stack->top = stack->top->lower;
18 stack->size--;
21 struct _cbor_stack_record* _cbor_stack_push(struct _cbor_stack* stack,
24 if (stack->size == CBOR_MAX_STACK_SIZE) return NULL;
29 *new_top = (struct _cbor_stack_record){stack->top, item, subitems};
30 stack->top = new_top;
31 stack->size++;