Lines Matching refs:version_directive
346 yaml_version_directive_t *version_directive = NULL; in yaml_parser_parse_document_start() local
389 if (!yaml_parser_process_directives(parser, &version_directive, in yaml_parser_parse_document_start()
403 DOCUMENT_START_EVENT_INIT(*event, version_directive, in yaml_parser_parse_document_start()
407 version_directive = NULL; in yaml_parser_parse_document_start()
423 yaml_free(version_directive); in yaml_parser_parse_document_start()
1244 yaml_version_directive_t *version_directive = NULL; in yaml_parser_process_directives() local
1262 if (version_directive) { in yaml_parser_process_directives()
1267 if (token->data.version_directive.major != 1 in yaml_parser_process_directives()
1268 || token->data.version_directive.minor != 1) { in yaml_parser_process_directives()
1273 version_directive = yaml_malloc(sizeof(yaml_version_directive_t)); in yaml_parser_process_directives()
1274 if (!version_directive) { in yaml_parser_process_directives()
1278 version_directive->major = token->data.version_directive.major; in yaml_parser_process_directives()
1279 version_directive->minor = token->data.version_directive.minor; in yaml_parser_process_directives()
1307 *version_directive_ref = version_directive; in yaml_parser_process_directives()
1326 yaml_free(version_directive); in yaml_parser_process_directives()