/* Create and emit the SEQUENCE-START event. */
if (!yaml_sequence_start_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:seq", 1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:seq", 1,
YAML_BLOCK_SEQUENCE_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Create and emit a MAPPING-START event. */
if (!yaml_mapping_start_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:map", 1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
YAML_BLOCK_MAPPING_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'STREAM-START'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "STREAM-START", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"STREAM-START", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'encoding'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "encoding", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"encoding", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the stream encoding. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
- (encoding == YAML_UTF8_ENCODING ? "utf-8" :
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
+ (yaml_char_t *)(encoding == YAML_UTF8_ENCODING ? "utf-8" :
encoding == YAML_UTF16LE_ENCODING ? "utf-16-le" :
encoding == YAML_UTF16BE_ENCODING ? "utf-16-be" :
"unknown"), -1,
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'STREAM-END'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "STREAM-END", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"STREAM-END", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'DOCUMENT-START'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "DOCUMENT-START", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"DOCUMENT-START", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'version'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "version", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"version", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write '{'. */
if (!yaml_mapping_start_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:map", 1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
YAML_FLOW_MAPPING_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'major'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "major", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"major", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
sprintf(number, "%d", version->major);
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:int", number, -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:int", (yaml_char_t *)number, -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'minor'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "minor", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"minor", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
sprintf(number, "%d", version->minor);
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:int", number, -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:int", (yaml_char_t *)number, -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'tags'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "tags", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tags", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Start a block sequence. */
if (!yaml_sequence_start_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:seq", 1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:seq", 1,
YAML_BLOCK_SEQUENCE_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write '{'. */
if (!yaml_mapping_start_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:map", 1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
YAML_FLOW_MAPPING_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'handle'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "handle", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"handle", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the tag directive handle. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
tag->handle, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'prefix'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "prefix", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"prefix", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the tag directive prefix. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
tag->prefix, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'implicit'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "implicit", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write if the document is implicit. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:bool",
- (input_event.data.document_start.implicit ?
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
+ (yaml_char_t *)(input_event.data.document_start.implicit ?
"true" : "false"), -1,
1, 0, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'DOCUMENT-END'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "DOCUMENT-END", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"DOCUMENT-END", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'implicit'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "implicit", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write if the document is implicit. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:bool",
- (input_event.data.document_end.implicit ?
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
+ (yaml_char_t *)(input_event.data.document_end.implicit ?
"true" : "false"), -1,
1, 0, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'ALIAS'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "ALIAS", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"ALIAS", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'anchor'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "anchor", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the alias anchor. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.alias.anchor, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'SCALAR'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "SCALAR", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"SCALAR", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'anchor'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "anchor", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the scalar anchor. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.scalar.anchor, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'tag'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "tag", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tag", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the scalar tag. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.scalar.tag, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'value'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "value", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"value", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the scalar value. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.scalar.value,
input_event.data.scalar.length,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
/* Write 'implicit'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "implicit", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write '{'. */
if (!yaml_mapping_start_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:map", 1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:map", 1,
YAML_FLOW_MAPPING_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'plain'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "plain", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"plain", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write if the scalar is implicit in the plain style. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:bool",
- (input_event.data.scalar.plain_implicit ?
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
+ (yaml_char_t * )(input_event.data.scalar.plain_implicit ?
"true" : "false"), -1,
1, 0, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
/* Write 'quoted'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "non-plain", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"non-plain", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write if the scalar is implicit in a non-plain style. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:bool",
- (input_event.data.scalar.quoted_implicit ?
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
+ (yaml_char_t *)(input_event.data.scalar.quoted_implicit ?
"true" : "false"), -1,
1, 0, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
/* Write 'style'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "style", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"style", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the scalar style. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
- (style == YAML_PLAIN_SCALAR_STYLE ? "plain" :
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
+ (yaml_char_t *)(style == YAML_PLAIN_SCALAR_STYLE ? "plain" :
style == YAML_SINGLE_QUOTED_SCALAR_STYLE ?
"single-quoted" :
style == YAML_DOUBLE_QUOTED_SCALAR_STYLE ?
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'SEQUENCE-START'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "SEQUENCE-START", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"SEQUENCE-START", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'anchor'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "anchor", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the sequence anchor. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.sequence_start.anchor, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'tag'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "tag", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tag", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the sequence tag. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.sequence_start.tag, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'implicit'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "implicit", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write if the sequence tag is implicit. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:bool",
- (input_event.data.sequence_start.implicit ?
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
+ (yaml_char_t *)(input_event.data.sequence_start.implicit ?
"true" : "false"), -1,
1, 0, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
/* Write 'style'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "style", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"style", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the scalar style. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
- (style == YAML_BLOCK_SEQUENCE_STYLE ? "block" :
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
+ (yaml_char_t *)(style == YAML_BLOCK_SEQUENCE_STYLE ? "block" :
style == YAML_FLOW_SEQUENCE_STYLE ? "flow" :
"unknown"), -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'SEQUENCE-END'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "SEQUENCE-END", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"SEQUENCE-END", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'MAPPING-START'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "MAPPING-START", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"MAPPING-START", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'anchor'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "anchor", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"anchor", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the mapping anchor. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.mapping_start.anchor, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'tag'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "tag", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"tag", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the mapping tag. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
input_event.data.mapping_start.tag, -1,
0, 1, YAML_DOUBLE_QUOTED_SCALAR_STYLE))
goto event_error;
/* Write 'implicit'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "implicit", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"implicit", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write if the mapping tag is implicit. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:bool",
- (input_event.data.mapping_start.implicit ?
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:bool",
+ (yaml_char_t *)(input_event.data.mapping_start.implicit ?
"true" : "false"), -1,
1, 0, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
/* Write 'style'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "style", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"style", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write the scalar style. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str",
- (style == YAML_BLOCK_MAPPING_STYLE ? "block" :
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str",
+ (yaml_char_t *)(style == YAML_BLOCK_MAPPING_STYLE ? "block" :
style == YAML_FLOW_MAPPING_STYLE ? "flow" :
"unknown"), -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
/* Write 'type'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "type", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"type", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))
/* Write 'MAPPING-END'. */
if (!yaml_scalar_event_initialize(&output_event,
- NULL, "tag:yaml.org,2002:str", "MAPPING-END", -1,
+ NULL, (yaml_char_t *)"tag:yaml.org,2002:str", (yaml_char_t *)"MAPPING-END", -1,
1, 1, YAML_PLAIN_SCALAR_STYLE))
goto event_error;
if (!yaml_emitter_emit(&emitter, &output_event))