94 if (emitter->closed)
return 1;
120 emitter->document = document;
122 if (!emitter->opened) {
134 emitter->anchors =
yaml_malloc(
sizeof(*(emitter->anchors))
135 * (document->nodes.top - document->nodes.start));
136 if (!emitter->anchors)
goto error;
137 memset(emitter->anchors, 0,
sizeof(*(emitter->anchors))
138 * (document->nodes.top - document->nodes.start));
141 document->tag_directives.start, document->tag_directives.end,
142 document->start_implicit, mark, mark);
216 switch (node->
type) {
219 item < node->data.sequence.items.top; item ++) {
225 pair < node->data.mapping.pairs.top; pair ++) {
244 #define ANCHOR_TEMPLATE "id%03d"
245 #define ANCHOR_TEMPLATE_LENGTH 16
252 if (!anchor)
return NULL;
272 if (!anchor)
return 0;
281 switch (node->
type) {
322 int plain_implicit = (strcmp((
char *)node->
tag,
324 int quoted_implicit = (strcmp((
char *)node->
tag,
328 node->
data.
scalar.length, plain_implicit, quoted_implicit,
354 item < node->data.sequence.items.top; item ++) {
384 pair < node->data.mapping.pairs.top; pair ++) {