• Home
  • Raw
  • Download

Lines Matching refs:event2

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()
43 !event2->data.document_start.version_directive) || in events_equal()
45 event2->data.document_start.version_directive) || in events_equal()
47 event2->data.document_start.version_directive && in events_equal()
49 event2->data.document_start.version_directive->major || in events_equal()
51 event2->data.document_start.version_directive->minor))) in events_equal()
55 (event2->data.document_start.tag_directives.end - in events_equal()
56 event2->data.document_start.tag_directives.start)) in events_equal()
63 (char *)event2->data.document_start.tag_directives.start[k] in events_equal()
67 (char *)event2->data.document_start.tag_directives.start[k] in events_equal()
78 (char *)event2->data.alias.anchor) == 0); 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()
85 (char *)event2->data.scalar.anchor) != 0)) in events_equal()
87 if ((event1->data.scalar.tag && !event2->data.scalar.tag && in events_equal()
89 (!event1->data.scalar.tag && event2->data.scalar.tag && in events_equal()
90 strcmp((char *)event2->data.scalar.tag, "!") != 0) || in events_equal()
91 (event1->data.scalar.tag && event2->data.scalar.tag && in events_equal()
93 (char *)event2->data.scalar.tag) != 0)) 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()
100 event2->data.scalar.plain_implicit) || in events_equal()
102 event2->data.scalar.quoted_implicit)) in events_equal()
108 !event2->data.sequence_start.anchor) || in events_equal()
110 event2->data.sequence_start.anchor) || in events_equal()
112 event2->data.sequence_start.anchor && in events_equal()
114 (char *)event2->data.sequence_start.anchor) != 0)) 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()
120 (char *)event2->data.sequence_start.tag) != 0)) in events_equal()
123 event2->data.sequence_start.implicit)) in events_equal()
129 !event2->data.mapping_start.anchor) || in events_equal()
131 event2->data.mapping_start.anchor) || in events_equal()
133 event2->data.mapping_start.anchor && in events_equal()
135 (char *)event2->data.mapping_start.anchor) != 0)) 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()
141 (char *)event2->data.mapping_start.tag) != 0)) in events_equal()
144 event2->data.mapping_start.implicit)) in events_equal()