line |
true |
false |
branch |
68
|
0 |
0 |
assert(parser); /* Non-NULL parser object is expected. */ |
69
|
0 |
0 |
assert(document); /* Non-NULL document object is expected. */ |
72
|
0 |
0 |
if (!STACK_INIT(parser, document->nodes, yaml_node_t*)) |
|
0 |
0 |
if (!STACK_INIT(parser, document->nodes, yaml_node_t*)) |
75
|
0 |
0 |
if (!parser->stream_start_produced) { |
76
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) |
78
|
0 |
0 |
assert(event.type == YAML_STREAM_START_EVENT); |
82
|
0 |
0 |
if (parser->stream_end_produced) { |
86
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) |
88
|
0 |
0 |
if (event.type == YAML_STREAM_END_EVENT) { |
92
|
0 |
0 |
if (!STACK_INIT(parser, parser->aliases, yaml_alias_data_t*)) |
|
0 |
0 |
if (!STACK_INIT(parser, parser->aliases, yaml_alias_data_t*)) |
97
|
0 |
0 |
if (!yaml_parser_load_document(parser, &event)) |
154
|
0 |
0 |
while (!STACK_EMPTY(parser, parser->aliases)) { |
169
|
0 |
0 |
assert(first_event->type == YAML_DOCUMENT_START_EVENT); |
182
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) return 0; |
184
|
0 |
0 |
if (!yaml_parser_load_node(parser, &event)) return 0; |
186
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) return 0; |
187
|
0 |
0 |
assert(event.type == YAML_DOCUMENT_END_EVENT); |
231
|
0 |
0 |
if (!anchor) return 1; |
237
|
0 |
0 |
for (alias_data = parser->aliases.start; |
239
|
0 |
0 |
if (strcmp((char *)alias_data->anchor, (char *)anchor) == 0) { |
247
|
0 |
0 |
if (!PUSH(parser, parser->aliases, data)) { |
|
0 |
0 |
if (!PUSH(parser, parser->aliases, data)) { |
|
0 |
0 |
if (!PUSH(parser, parser->aliases, data)) { |
265
|
0 |
0 |
for (alias_data = parser->aliases.start; |
267
|
0 |
0 |
if (strcmp((char *)alias_data->anchor, (char *)anchor) == 0) { |
289
|
0 |
0 |
if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) |
|
0 |
0 |
if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) |
292
|
0 |
0 |
if (!tag || strcmp((char *)tag, "!") == 0) { |
|
0 |
0 |
if (!tag || strcmp((char *)tag, "!") == 0) { |
295
|
0 |
0 |
if (!tag) |
303
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
308
|
0 |
0 |
if (!yaml_parser_register_anchor(parser, index, |
338
|
0 |
0 |
if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) |
|
0 |
0 |
if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) |
341
|
0 |
0 |
if (!tag || strcmp((char *)tag, "!") == 0) { |
|
0 |
0 |
if (!tag || strcmp((char *)tag, "!") == 0) { |
344
|
0 |
0 |
if (!tag) |
348
|
0 |
0 |
if (!STACK_INIT(parser, items, yaml_node_item_t*)) |
|
0 |
0 |
if (!STACK_INIT(parser, items, yaml_node_item_t*)) |
355
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
360
|
0 |
0 |
if (!yaml_parser_register_anchor(parser, index, |
364
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) return 0; |
366
|
0 |
0 |
while (event.type != YAML_SEQUENCE_END_EVENT) { |
367
|
0 |
0 |
if (!STACK_LIMIT(parser, |
|
0 |
0 |
if (!STACK_LIMIT(parser, |
371
|
0 |
0 |
if (!item_index) return 0; |
372
|
0 |
0 |
if (!PUSH(parser, |
|
0 |
0 |
if (!PUSH(parser, |
|
0 |
0 |
if (!PUSH(parser, |
375
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) return 0; |
406
|
0 |
0 |
if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) |
|
0 |
0 |
if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) |
409
|
0 |
0 |
if (!tag || strcmp((char *)tag, "!") == 0) { |
|
0 |
0 |
if (!tag || strcmp((char *)tag, "!") == 0) { |
412
|
0 |
0 |
if (!tag) |
416
|
0 |
0 |
if (!STACK_INIT(parser, pairs, yaml_node_pair_t*)) |
|
0 |
0 |
if (!STACK_INIT(parser, pairs, yaml_node_pair_t*)) |
423
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
|
0 |
0 |
if (!PUSH(parser, parser->document->nodes, node)) |
428
|
0 |
0 |
if (!yaml_parser_register_anchor(parser, index, |
432
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) |
435
|
0 |
0 |
while (event.type != YAML_MAPPING_END_EVENT) { |
436
|
0 |
0 |
if (!STACK_LIMIT(parser, |
|
0 |
0 |
if (!STACK_LIMIT(parser, |
441
|
0 |
0 |
if (!pair.key) return 0; |
442
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) |
445
|
0 |
0 |
if (!pair.value) |
447
|
0 |
0 |
if (!PUSH(parser, |
|
0 |
0 |
if (!PUSH(parser, |
|
0 |
0 |
if (!PUSH(parser, |
450
|
0 |
0 |
if (!yaml_parser_parse(parser, &event)) |