Home
last modified time | relevance | path

Searched refs:subitems (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/libcbor/src/cbor/internal/
H A Dbuilder_callbacks.c33 // Handle Arrays and Maps since they can contain subitems of any type. in _cbor_builder_append()
41 CBOR_ASSERT(ctx->stack->top->subitems > 0); in _cbor_builder_append()
50 ctx->stack->top->subitems--; in _cbor_builder_append()
51 if (ctx->stack->top->subitems == 0) { in _cbor_builder_append()
57 /* Indefinite array, don't bother with subitems */ in _cbor_builder_append()
67 // Note: We use 0 and 1 subitems to distinguish between keys and values in in _cbor_builder_append()
69 if (ctx->stack->top->subitems % 2) { in _cbor_builder_append()
86 CBOR_ASSERT(ctx->stack->top->subitems > 0); in _cbor_builder_append()
87 ctx->stack->top->subitems--; in _cbor_builder_append()
88 if (ctx->stack->top->subitems in _cbor_builder_append()
134 PUSH_CTX_STACK(ctx,res,subitems) global() argument
[all...]
H A Dstack.c23 size_t subitems) { in _cbor_stack_push() argument
29 *new_top = (struct _cbor_stack_record){stack->top, item, subitems}; in _cbor_stack_push()
H A Dstack.h31 size_t subitems; member
/freebsd/contrib/libcbor/test/
H A Dcallbacks_test.c308 stack.top->subitems = 1; in test_append_array_failure()
337 _cbor_stack_push(&stack, cbor_new_indefinite_map(), /*subitems=*/0)); in test_append_map_failure()
376 assert_non_null(_cbor_stack_push(&stack, cbor_new_int8(), /*subitems=*/0)); in main()