Lines Matching refs:data
32 node->data.scalar.value, node->data.scalar.length, in copy_document()
33 node->data.scalar.style)) goto error; in copy_document()
37 node->data.sequence.style)) goto error; in copy_document()
41 node->data.mapping.style)) goto error; in copy_document()
53 for (item = node->data.sequence.items.start; in copy_document()
54 item < node->data.sequence.items.top; item ++) { in copy_document()
61 for (pair = node->data.mapping.pairs.start; in copy_document()
62 pair < node->data.mapping.pairs.top; pair ++) { in copy_document()
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()
104 (node2->data.sequence.items.top - node2->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()
108 document2, node2->data.sequence.items.start[k], level)) return 0; in compare_nodes()
112 if ((node1->data.mapping.pairs.top - node1->data.mapping.pairs.start) != in compare_nodes()
113 (node2->data.mapping.pairs.top - node2->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()
117 document2, node2->data.mapping.pairs.start[k].key, level)) return 0; in compare_nodes()
118 if (!compare_nodes(document1, node1->data.mapping.pairs.start[k].value, in compare_nodes()
119 document2, node2->data.mapping.pairs.start[k].value, level)) return 0; in compare_nodes()
166 char data[BUFFER_SIZE]; in print_output() local
175 data_size = fread(data, 1, BUFFER_SIZE, file); in print_output()
178 assert(fwrite(data, 1, data_size, stdout) == data_size); in print_output()