Lines Matching refs:event2
78 int compare_events(yaml_event_t *event1, yaml_event_t *event2) in compare_events() argument
82 if (event1->type != event2->type) in compare_events()
93 …if ((event1->data.document_start.version_directive && !event2->data.document_start.version_directi… in compare_events()
94 …|| (!event1->data.document_start.version_directive && event2->data.document_start.version_directiv… in compare_events()
95 … || (event1->data.document_start.version_directive && event2->data.document_start.version_directive in compare_events()
96 …&& (event1->data.document_start.version_directive->major != event2->data.document_start.version_di… in compare_events()
97 …|| event1->data.document_start.version_directive->minor != event2->data.document_start.version_dir… in compare_events()
100 …(event2->data.document_start.tag_directives.end - event2->data.document_start.tag_directives.start… in compare_events()
104 … (char *)event2->data.document_start.tag_directives.start[k].handle) != 0) in compare_events()
106 … (char *)event2->data.document_start.tag_directives.start[k].prefix) != 0)) in compare_events()
120 (char *)event2->data.alias.anchor) == 0); in compare_events()
123 if ((event1->data.scalar.anchor && !event2->data.scalar.anchor) in compare_events()
124 || (!event1->data.scalar.anchor && event2->data.scalar.anchor) in compare_events()
125 || (event1->data.scalar.anchor && event2->data.scalar.anchor in compare_events()
127 (char *)event2->data.scalar.anchor) != 0)) in compare_events()
129 if ((event1->data.scalar.tag && !event2->data.scalar.tag in compare_events()
131 || (!event1->data.scalar.tag && event2->data.scalar.tag in compare_events()
132 && strcmp((char *)event2->data.scalar.tag, "!") != 0) in compare_events()
133 || (event1->data.scalar.tag && event2->data.scalar.tag in compare_events()
135 (char *)event2->data.scalar.tag) != 0)) in compare_events()
137 if ((event1->data.scalar.length != event2->data.scalar.length) in compare_events()
138 || memcmp(event1->data.scalar.value, event2->data.scalar.value, in compare_events()
141 if ((event1->data.scalar.plain_implicit != event2->data.scalar.plain_implicit) in compare_events()
142 || (event2->data.scalar.quoted_implicit != event2->data.scalar.quoted_implicit) in compare_events()
148 if ((event1->data.sequence_start.anchor && !event2->data.sequence_start.anchor) in compare_events()
149 || (!event1->data.sequence_start.anchor && event2->data.sequence_start.anchor) in compare_events()
150 || (event1->data.sequence_start.anchor && event2->data.sequence_start.anchor in compare_events()
152 (char *)event2->data.sequence_start.anchor) != 0)) in compare_events()
154 if ((event1->data.sequence_start.tag && !event2->data.sequence_start.tag) in compare_events()
155 || (!event1->data.sequence_start.tag && event2->data.sequence_start.tag) in compare_events()
156 || (event1->data.sequence_start.tag && event2->data.sequence_start.tag in compare_events()
158 (char *)event2->data.sequence_start.tag) != 0)) in compare_events()
160 if ((event1->data.sequence_start.implicit != event2->data.sequence_start.implicit) in compare_events()
166 if ((event1->data.mapping_start.anchor && !event2->data.mapping_start.anchor) in compare_events()
167 || (!event1->data.mapping_start.anchor && event2->data.mapping_start.anchor) in compare_events()
168 || (event1->data.mapping_start.anchor && event2->data.mapping_start.anchor in compare_events()
170 (char *)event2->data.mapping_start.anchor) != 0)) in compare_events()
172 if ((event1->data.mapping_start.tag && !event2->data.mapping_start.tag) in compare_events()
173 || (!event1->data.mapping_start.tag && event2->data.mapping_start.tag) in compare_events()
174 || (event1->data.mapping_start.tag && event2->data.mapping_start.tag in compare_events()
176 (char *)event2->data.mapping_start.tag) != 0)) in compare_events()
178 if ((event1->data.mapping_start.implicit != event2->data.mapping_start.implicit) in compare_events()