MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / yaml_parser_fetch_flow_entry

Function yaml_parser_fetch_flow_entry

external/libyaml/src/scanner.c:1552–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1550 */
1551
1552static int
1553yaml_parser_fetch_flow_entry(yaml_parser_t *parser)
1554{
1555 yaml_mark_t start_mark, end_mark;
1556 yaml_token_t token;
1557
1558 /* Reset any potential simple keys on the current flow level. */
1559
1560 if (!yaml_parser_remove_simple_key(parser))
1561 return 0;
1562
1563 /* Simple keys are allowed after ','. */
1564
1565 parser->simple_key_allowed = 1;
1566
1567 /* Consume the token. */
1568
1569 start_mark = parser->mark;
1570 SKIP(parser);
1571 end_mark = parser->mark;
1572
1573 /* Create the FLOW-ENTRY token and append it to the queue. */
1574
1575 TOKEN_INIT(token, YAML_FLOW_ENTRY_TOKEN, start_mark, end_mark);
1576
1577 if (!ENQUEUE(parser, parser->tokens, token))
1578 return 0;
1579
1580 return 1;
1581}
1582
1583/*
1584 * Produce the BLOCK-ENTRY token.

Callers 1

Calls 1

Tested by

no test coverage detected