MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / yaml_parser_set_input_file

Function yaml_parser_set_input_file

xs/tools/yaml/api.c:328–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 */
327
328YAML_DECLARE(void)
329yaml_parser_set_input_file(yaml_parser_t *parser, FILE *file)
330{
331 assert(parser); /* Non-NULL parser object expected. */
332 assert(!parser->read_handler); /* You can set the source only once. */
333 assert(file); /* Non-NULL file object expected. */
334
335 parser->read_handler = yaml_file_read_handler;
336 parser->read_handler_data = parser;
337
338 parser->input.file = file;
339}
340
341/*
342 * Set a generic input.

Callers 2

fxReadConfigurationFunction · 0.85
yaml.hFile · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected