Lines Matching refs:events
283 if (!ENQUEUE(emitter, emitter->events, *event)) {
289 if (!yaml_emitter_analyze_event(emitter, emitter->events.head))
291 if (!yaml_emitter_state_machine(emitter, emitter->events.head))
293 yaml_event_delete(&DEQUEUE(emitter, emitter->events));
300 * Check if we need to accumulate more events before emitting.
304 * - 2 events for SEQUENCE-START
305 * - 3 events for MAPPING-START
315 if (QUEUE_EMPTY(emitter, emitter->events))
318 switch (emitter->events.head->type) {
332 if (emitter->events.tail - emitter->events.head > accumulate)
335 for (event = emitter->events.head; event != emitter->events.tail; event ++) {
1096 * Check if the next events represent an empty sequence.
1102 if (emitter->events.tail - emitter->events.head < 2)
1105 return (emitter->events.head[0].type == YAML_SEQUENCE_START_EVENT
1106 && emitter->events.head[1].type == YAML_SEQUENCE_END_EVENT);
1110 * Check if the next events represent an empty mapping.
1116 if (emitter->events.tail - emitter->events.head < 2)
1119 return (emitter->events.head[0].type == YAML_MAPPING_START_EVENT
1120 && emitter->events.head[1].type == YAML_MAPPING_END_EVENT);
1130 yaml_event_t *event = emitter->events.head;