Lines Matching refs:emitter
24 #define yaml_emitter_emit_or_die(emitter, event) ( \ argument
26 if (!yaml_emitter_emit(emitter, event)) \
28 yaml_error_name[(emitter)->error], \
29 (emitter)->problem, __func__, __LINE__); \
32 static void yaml_propval_int(yaml_emitter_t *emitter, struct marker *markers, char *data, int len, … in yaml_propval_int() argument
50 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int()
88 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int()
92 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_int()
95 static void yaml_propval_string(yaml_emitter_t *emitter, char *str, int len) in yaml_propval_string() argument
109 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval_string()
112 static void yaml_propval(yaml_emitter_t *emitter, struct property *prop) in yaml_propval() argument
122 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval()
130 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval()
139 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval()
154 yaml_propval_int(emitter, m, data, chunk_len, 2); in yaml_propval()
157 yaml_propval_int(emitter, m, data, chunk_len, 4); in yaml_propval()
160 yaml_propval_int(emitter, m, data, chunk_len, 8); in yaml_propval()
163 yaml_propval_string(emitter, data, chunk_len); in yaml_propval()
166 yaml_propval_int(emitter, m, data, chunk_len, 1); in yaml_propval()
172 yaml_emitter_emit_or_die(emitter, &event); in yaml_propval()
176 static void yaml_tree(struct node *tree, yaml_emitter_t *emitter) in yaml_tree() argument
187 yaml_emitter_emit_or_die(emitter, &event); in yaml_tree()
190 yaml_propval(emitter, prop); in yaml_tree()
197 yaml_emitter_emit_or_die(emitter, &event); in yaml_tree()
198 yaml_tree(child, emitter); in yaml_tree()
202 yaml_emitter_emit_or_die(emitter, &event); in yaml_tree()
207 yaml_emitter_t emitter; in dt_to_yaml() local
210 yaml_emitter_initialize(&emitter); in dt_to_yaml()
211 yaml_emitter_set_output_file(&emitter, f); in dt_to_yaml()
213 yaml_emitter_emit_or_die(&emitter, &event); in dt_to_yaml()
216 yaml_emitter_emit_or_die(&emitter, &event); in dt_to_yaml()
219 yaml_emitter_emit_or_die(&emitter, &event); in dt_to_yaml()
221 yaml_tree(dti->dt, &emitter); in dt_to_yaml()
224 yaml_emitter_emit_or_die(&emitter, &event); in dt_to_yaml()
227 yaml_emitter_emit_or_die(&emitter, &event); in dt_to_yaml()
230 yaml_emitter_emit_or_die(&emitter, &event); in dt_to_yaml()
232 yaml_emitter_delete(&emitter); in dt_to_yaml()