Lines Matching refs:event1
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()
85 switch (event1->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()
99 …if ((event1->data.document_start.tag_directives.end - event1->data.document_start.tag_directives.s… in compare_events()
102 …for (k = 0; k < (event1->data.document_start.tag_directives.end - event1->data.document_start.tag_… in compare_events()
103 if ((strcmp((char *)event1->data.document_start.tag_directives.start[k].handle, in compare_events()
105 … || (strcmp((char *)event1->data.document_start.tag_directives.start[k].prefix, in compare_events()
119 return (strcmp((char *)event1->data.alias.anchor, 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()
126 && strcmp((char *)event1->data.scalar.anchor, in compare_events()
129 if ((event1->data.scalar.tag && !event2->data.scalar.tag in compare_events()
130 && strcmp((char *)event1->data.scalar.tag, "!") != 0) in compare_events()
131 || (!event1->data.scalar.tag && event2->data.scalar.tag in compare_events()
133 || (event1->data.scalar.tag && event2->data.scalar.tag in compare_events()
134 && strcmp((char *)event1->data.scalar.tag, 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()
139 event1->data.scalar.length) != 0) in compare_events()
141 if ((event1->data.scalar.plain_implicit != event2->data.scalar.plain_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()
151 && strcmp((char *)event1->data.sequence_start.anchor, 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()
157 && strcmp((char *)event1->data.sequence_start.tag, 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()
169 && strcmp((char *)event1->data.mapping_start.anchor, 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()
175 && strcmp((char *)event1->data.mapping_start.tag, in compare_events()
178 if ((event1->data.mapping_start.implicit != event2->data.mapping_start.implicit) in compare_events()