• Home
  • Raw
  • Download

Lines Matching refs:event1

30 bool events_equal(yaml_event_t *event1, yaml_event_t *event2) {  in events_equal()  argument
34 if (event1->type != event2->type) in events_equal()
37 switch (event1->type) { in events_equal()
42 if ((event1->data.document_start.version_directive && in events_equal()
44 (!event1->data.document_start.version_directive && in events_equal()
46 (event1->data.document_start.version_directive && in events_equal()
48 (event1->data.document_start.version_directive->major != in events_equal()
50 event1->data.document_start.version_directive->minor != in events_equal()
53 if ((event1->data.document_start.tag_directives.end - in events_equal()
54 event1->data.document_start.tag_directives.start) != in events_equal()
58 for (int k = 0; k < (event1->data.document_start.tag_directives.end - in events_equal()
59 event1->data.document_start.tag_directives.start); in events_equal()
61 if ((strcmp((char *)event1->data.document_start.tag_directives.start[k] in events_equal()
65 (strcmp((char *)event1->data.document_start.tag_directives.start[k] in events_equal()
77 return (strcmp((char *)event1->data.alias.anchor, in events_equal()
81 if ((event1->data.scalar.anchor && !event2->data.scalar.anchor) || in events_equal()
82 (!event1->data.scalar.anchor && event2->data.scalar.anchor) || in events_equal()
83 (event1->data.scalar.anchor && event2->data.scalar.anchor && in events_equal()
84 strcmp((char *)event1->data.scalar.anchor, in events_equal()
87 if ((event1->data.scalar.tag && !event2->data.scalar.tag && in events_equal()
88 strcmp((char *)event1->data.scalar.tag, "!") != 0) || in events_equal()
89 (!event1->data.scalar.tag && event2->data.scalar.tag && in events_equal()
91 (event1->data.scalar.tag && event2->data.scalar.tag && in events_equal()
92 strcmp((char *)event1->data.scalar.tag, in events_equal()
95 if ((event1->data.scalar.length != event2->data.scalar.length) || in events_equal()
96 memcmp(event1->data.scalar.value, event2->data.scalar.value, in events_equal()
97 event1->data.scalar.length) != 0) in events_equal()
99 if ((event1->data.scalar.plain_implicit != in events_equal()
101 (event1->data.scalar.quoted_implicit != in events_equal()
107 if ((event1->data.sequence_start.anchor && in events_equal()
109 (!event1->data.sequence_start.anchor && in events_equal()
111 (event1->data.sequence_start.anchor && in events_equal()
113 strcmp((char *)event1->data.sequence_start.anchor, in events_equal()
116 if ((event1->data.sequence_start.tag && !event2->data.sequence_start.tag) || in events_equal()
117 (!event1->data.sequence_start.tag && event2->data.sequence_start.tag) || in events_equal()
118 (event1->data.sequence_start.tag && event2->data.sequence_start.tag && in events_equal()
119 strcmp((char *)event1->data.sequence_start.tag, in events_equal()
122 if ((event1->data.sequence_start.implicit != in events_equal()
128 if ((event1->data.mapping_start.anchor && in events_equal()
130 (!event1->data.mapping_start.anchor && in events_equal()
132 (event1->data.mapping_start.anchor && in events_equal()
134 strcmp((char *)event1->data.mapping_start.anchor, in events_equal()
137 if ((event1->data.mapping_start.tag && !event2->data.mapping_start.tag) || in events_equal()
138 (!event1->data.mapping_start.tag && event2->data.mapping_start.tag) || in events_equal()
139 (event1->data.mapping_start.tag && event2->data.mapping_start.tag && in events_equal()
140 strcmp((char *)event1->data.mapping_start.tag, in events_equal()
143 if ((event1->data.mapping_start.implicit != in events_equal()