Searched refs:node (Results 1 – 5 of 5) sorted by relevance
/optee_benchmark/libyaml/src/ |
A D | dumper.c | 181 yaml_free(node.tag); in yaml_emitter_delete_document_and_anchors() 182 if (node.type == YAML_SCALAR_NODE) { in yaml_emitter_delete_document_and_anchors() 183 yaml_free(node.data.scalar.value); in yaml_emitter_delete_document_and_anchors() 186 if (node.type == YAML_SEQUENCE_NODE) { in yaml_emitter_delete_document_and_anchors() 189 if (node.type == YAML_MAPPING_NODE) { in yaml_emitter_delete_document_and_anchors() 216 switch (node->type) { in yaml_emitter_anchor_node() 281 switch (node->type) { in yaml_emitter_dump_node() 327 SCALAR_EVENT_INIT(event, anchor, node->tag, node->data.scalar.value, in yaml_emitter_dump_scalar() 329 node->data.scalar.style, mark, mark); in yaml_emitter_dump_scalar() 353 for (item = node->data.sequence.items.start; in yaml_emitter_dump_sequence() [all …]
|
A D | yaml_private.h | 630 #define NODE_INIT(node,node_type,node_tag,node_start_mark,node_end_mark) \ argument 631 (memset(&(node), 0, sizeof(yaml_node_t)), \ 632 (node).type = (node_type), \ 633 (node).tag = (node_tag), \ 634 (node).start_mark = (node_start_mark), \ 635 (node).end_mark = (node_end_mark)) 637 #define SCALAR_NODE_INIT(node,node_tag,node_value,node_length, \ argument 639 (NODE_INIT((node),YAML_SCALAR_NODE,(node_tag),(start_mark),(end_mark)), \ 642 (node).data.scalar.style = (node_style)) 650 (node).data.sequence.style = (node_style)) [all …]
|
A D | loader.c | 285 yaml_node_t node; in yaml_parser_load_scalar() local 297 SCALAR_NODE_INIT(node, tag, first_event->data.scalar.value, in yaml_parser_load_scalar() 301 if (!PUSH(parser, parser->document->nodes, node)) goto error; in yaml_parser_load_scalar() 325 yaml_node_t node; in yaml_parser_load_sequence() local 344 SEQUENCE_NODE_INIT(node, tag, items.start, items.end, in yaml_parser_load_sequence() 348 if (!PUSH(parser, parser->document->nodes, node)) goto error; in yaml_parser_load_sequence() 387 yaml_node_t node; in yaml_parser_load_mapping() local 407 MAPPING_NODE_INIT(node, tag, pairs.start, pairs.end, in yaml_parser_load_mapping() 411 if (!PUSH(parser, parser->document->nodes, node)) goto error; in yaml_parser_load_mapping()
|
A D | api.c | 1129 yaml_node_t node = POP(&context, document->nodes); in yaml_document_delete() local 1130 yaml_free(node.tag); in yaml_document_delete() 1131 switch (node.type) { in yaml_document_delete() 1133 yaml_free(node.data.scalar.value); in yaml_document_delete() 1139 STACK_DEL(&context, node.data.mapping.pairs); in yaml_document_delete() 1204 yaml_node_t node; in yaml_document_add_scalar() local 1228 if (!PUSH(&context, document->nodes, node)) goto error; in yaml_document_add_scalar() 1257 yaml_node_t node; in yaml_document_add_sequence() local 1273 if (!PUSH(&context, document->nodes, node)) goto error; in yaml_document_add_sequence() 1302 yaml_node_t node; in yaml_document_add_mapping() local [all …]
|
/optee_benchmark/libyaml/tests/ |
A D | run-dumper.c | 17 yaml_node_t *node; in copy_document() local 27 for (node = document_from->nodes.start; in copy_document() 28 node < document_from->nodes.top; node ++) { in copy_document() 29 switch (node->type) { in copy_document() 32 node->data.scalar.value, node->data.scalar.length, in copy_document() 33 node->data.scalar.style)) goto error; in copy_document() 49 for (node = document_from->nodes.start; in copy_document() 50 node < document_from->nodes.top; node ++) { in copy_document() 51 switch (node->type) { in copy_document() 53 for (item = node->data.sequence.items.start; in copy_document() [all …]
|
Completed in 11 milliseconds