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

Function yaml_parser_set_scanner_error

xs/tools/yaml/scanner.c:803–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801 */
802
803static int
804yaml_parser_set_scanner_error(yaml_parser_t *parser, const char *context,
805 yaml_mark_t context_mark, const char *problem)
806{
807 parser->error = YAML_SCANNER_ERROR;
808 parser->context = context;
809 parser->context_mark = context_mark;
810 parser->problem = problem;
811 parser->problem_mark = parser->mark;
812
813 return 0;
814}
815
816/*
817 * Ensure that the tokens queue contains at least one token which can be

Calls

no outgoing calls

Tested by

no test coverage detected