Searched refs:subitems (Results 1 – 4 of 4) sorted by relevance
33 // 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...]
23 size_t subitems) { in _cbor_stack_push() argument29 *new_top = (struct _cbor_stack_record){stack->top, item, subitems}; in _cbor_stack_push()
31 size_t subitems; member
308 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()