Lines Matching refs:node1
83 yaml_node_t *node1 = yaml_document_get_node(document1, index1); in compare_nodes() local
87 assert(node1); in compare_nodes()
90 if (node1->type != node2->type) in compare_nodes()
93 if (strcmp((char *)node1->tag, (char *)node2->tag) != 0) return 0; in compare_nodes()
95 switch (node1->type) { in compare_nodes()
97 if (node1->data.scalar.length != node2->data.scalar.length) in compare_nodes()
99 if (strncmp((char *)node1->data.scalar.value, (char *)node2->data.scalar.value, in compare_nodes()
100 node1->data.scalar.length) != 0) return 0; in compare_nodes()
103 if ((node1->data.sequence.items.top - node1->data.sequence.items.start) != in compare_nodes()
106 … for (k = 0; k < (node1->data.sequence.items.top - node1->data.sequence.items.start); k ++) { in compare_nodes()
107 if (!compare_nodes(document1, node1->data.sequence.items.start[k], in compare_nodes()
112 if ((node1->data.mapping.pairs.top - node1->data.mapping.pairs.start) != in compare_nodes()
115 … for (k = 0; k < (node1->data.mapping.pairs.top - node1->data.mapping.pairs.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()