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

Function yaml_parser_parse

external/libyaml/src/parser.c:177–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 */
176
177YAML_DECLARE(int)
178yaml_parser_parse(yaml_parser_t *parser, yaml_event_t *event)
179{
180 assert(parser); /* Non-NULL parser object is expected. */
181 assert(event); /* Non-NULL event object is expected. */
182
183 /* Erase the event object. */
184
185 memset(event, 0, sizeof(yaml_event_t));
186
187 /* No events after the end of the stream or error. */
188
189 if (parser->stream_end_produced || parser->error ||
190 parser->state == YAML_PARSE_END_STATE) {
191 return 1;
192 }
193
194 /* Generate the next event. */
195
196 return yaml_parser_state_machine(parser, event);
197}
198
199/*
200 * Set parser error.

Callers 4

require_single_documentFunction · 0.85
yaml_parser_loadFunction · 0.85
yaml_parser_load_nodesFunction · 0.85
yaml.hFile · 0.85

Calls 1

Tested by

no test coverage detected