Lines Matching refs:document1
79 int compare_nodes(yaml_document_t *document1, int index1, in compare_nodes() argument
83 yaml_node_t *node1 = yaml_document_get_node(document1, index1); in compare_nodes()
107 if (!compare_nodes(document1, node1->data.sequence.items.start[k], in compare_nodes()
116 if (!compare_nodes(document1, node1->data.mapping.pairs.start[k].key, in compare_nodes()
118 if (!compare_nodes(document1, node1->data.mapping.pairs.start[k].value, in compare_nodes()
129 int compare_documents(yaml_document_t *document1, yaml_document_t *document2) in compare_documents() argument
133 if ((document1->version_directive && !document2->version_directive) in compare_documents()
134 || (!document1->version_directive && document2->version_directive) in compare_documents()
135 || (document1->version_directive && document2->version_directive in compare_documents()
136 && (document1->version_directive->major != document2->version_directive->major in compare_documents()
137 || document1->version_directive->minor != document2->version_directive->minor))) in compare_documents()
140 if ((document1->tag_directives.end - document1->tag_directives.start) != in compare_documents()
143 for (k = 0; k < (document1->tag_directives.end - document1->tag_directives.start); k ++) { in compare_documents()
144 if ((strcmp((char *)document1->tag_directives.start[k].handle, in compare_documents()
146 || (strcmp((char *)document1->tag_directives.start[k].prefix, in compare_documents()
151 if ((document1->nodes.top - document1->nodes.start) != in compare_documents()
155 if (document1->nodes.top != document1->nodes.start) { in compare_documents()
156 if (!compare_nodes(document1, 1, document2, 1, 0)) in compare_documents()