Rename type_0 field to type_

This commit is contained in:
David Tolnay 2022-07-08 00:09:03 -07:00
parent a67689123f
commit b33a3f29dd
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
8 changed files with 226 additions and 238 deletions

View file

@ -841,7 +841,7 @@ pub unsafe fn yaml_emitter_set_break(mut emitter: *mut yaml_emitter_t, line_brea
}
pub unsafe fn yaml_token_delete(token: *mut yaml_token_t) {
__assert!(!token.is_null());
match (*token).type_0 as libc::c_uint {
match (*token).type_ as libc::c_uint {
4 => {
yaml_free((*token).data.tag_directive.handle as *mut libc::c_void);
yaml_free((*token).data.tag_directive.prefix as *mut libc::c_void);
@ -939,7 +939,7 @@ pub unsafe fn yaml_stream_start_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_STREAM_START_EVENT;
(*event).type_ = YAML_STREAM_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.stream_start.encoding = encoding;
@ -957,7 +957,7 @@ pub unsafe fn yaml_stream_end_event_initialize(mut event: *mut yaml_event_t) ->
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_STREAM_END_EVENT;
(*event).type_ = YAML_STREAM_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
1_i32
@ -1095,7 +1095,7 @@ pub unsafe fn yaml_document_start_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_START_EVENT;
(*event).type_ = YAML_DOCUMENT_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
let fresh164 = addr_of_mut!((*event).data.document_start.version_directive);
@ -1141,7 +1141,7 @@ pub unsafe fn yaml_document_end_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_END_EVENT;
(*event).type_ = YAML_DOCUMENT_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.document_end.implicit = implicit;
@ -1170,7 +1170,7 @@ pub unsafe fn yaml_alias_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_ALIAS_EVENT;
(*event).type_ = YAML_ALIAS_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
let fresh167 = addr_of_mut!((*event).data.alias.anchor);
@ -1249,7 +1249,7 @@ pub unsafe fn yaml_scalar_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SCALAR_EVENT;
(*event).type_ = YAML_SCALAR_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
let fresh168 = addr_of_mut!((*event).data.scalar.anchor);
@ -1329,7 +1329,7 @@ pub unsafe fn yaml_sequence_start_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_START_EVENT;
(*event).type_ = YAML_SEQUENCE_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
let fresh171 = addr_of_mut!((*event).data.sequence_start.anchor);
@ -1360,7 +1360,7 @@ pub unsafe fn yaml_sequence_end_event_initialize(mut event: *mut yaml_event_t) -
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_END_EVENT;
(*event).type_ = YAML_SEQUENCE_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
1_i32
@ -1419,7 +1419,7 @@ pub unsafe fn yaml_mapping_start_event_initialize(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_START_EVENT;
(*event).type_ = YAML_MAPPING_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
let fresh173 = addr_of_mut!((*event).data.mapping_start.anchor);
@ -1450,7 +1450,7 @@ pub unsafe fn yaml_mapping_end_event_initialize(mut event: *mut yaml_event_t) ->
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_END_EVENT;
(*event).type_ = YAML_MAPPING_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
1_i32
@ -1458,7 +1458,7 @@ pub unsafe fn yaml_mapping_end_event_initialize(mut event: *mut yaml_event_t) ->
pub unsafe fn yaml_event_delete(event: *mut yaml_event_t) {
let mut tag_directive: *mut yaml_tag_directive_t;
__assert!(!event.is_null());
match (*event).type_0 as libc::c_uint {
match (*event).type_ as libc::c_uint {
3 => {
yaml_free((*event).data.document_start.version_directive as *mut libc::c_void);
tag_directive = (*event).data.document_start.tag_directives.start;
@ -1704,7 +1704,7 @@ pub unsafe fn yaml_document_delete(document: *mut yaml_document_t) {
*fresh182 = (*fresh182).wrapping_offset(-1);
let mut node: yaml_node_t = **fresh182;
yaml_free(node.tag as *mut libc::c_void);
match node.type_0 as libc::c_uint {
match node.type_ as libc::c_uint {
1 => {
yaml_free(node.data.scalar.value as *mut libc::c_void);
}
@ -1811,7 +1811,7 @@ pub unsafe fn yaml_document_add_scalar(
0_i32,
size_of::<yaml_node_t>() as libc::c_ulong,
);
(*node).type_0 = YAML_SCALAR_NODE;
(*node).type_ = YAML_SCALAR_NODE;
(*node).tag = tag_copy;
(*node).start_mark = mark;
(*node).end_mark = mark;
@ -1896,7 +1896,7 @@ pub unsafe fn yaml_document_add_sequence(
0_i32,
size_of::<yaml_node_t>() as libc::c_ulong,
);
(*node).type_0 = YAML_SEQUENCE_NODE;
(*node).type_ = YAML_SEQUENCE_NODE;
(*node).tag = tag_copy;
(*node).start_mark = mark;
(*node).end_mark = mark;
@ -1984,7 +1984,7 @@ pub unsafe fn yaml_document_add_mapping(
0_i32,
size_of::<yaml_node_t>() as libc::c_ulong,
);
(*node).type_0 = YAML_MAPPING_NODE;
(*node).type_ = YAML_MAPPING_NODE;
(*node).tag = tag_copy;
(*node).start_mark = mark;
(*node).end_mark = mark;
@ -2037,7 +2037,7 @@ pub unsafe fn yaml_document_append_sequence_item(
<= (*document).nodes.top
);
__assert!(
(*((*document).nodes.start).wrapping_offset((sequence - 1_i32) as isize)).type_0
(*((*document).nodes.start).wrapping_offset((sequence - 1_i32) as isize)).type_
as libc::c_uint
== YAML_SEQUENCE_NODE as libc::c_int as libc::c_uint
);
@ -2114,7 +2114,7 @@ pub unsafe fn yaml_document_append_mapping_pair(
&& ((*document).nodes.start).wrapping_offset(mapping as isize) <= (*document).nodes.top
);
__assert!(
(*((*document).nodes.start).wrapping_offset((mapping - 1_i32) as isize)).type_0
(*((*document).nodes.start).wrapping_offset((mapping - 1_i32) as isize)).type_
as libc::c_uint
== YAML_MAPPING_NODE as libc::c_int as libc::c_uint
);

View file

@ -73,28 +73,27 @@ pub unsafe fn unsafe_main(
yaml_parser_delete(parser);
return Err(error.into());
}
let type_0: yaml_event_type_t = (*event).type_0;
if type_0 as libc::c_uint == YAML_NO_EVENT as libc::c_int as libc::c_uint {
let type_: yaml_event_type_t = (*event).type_;
if type_ as libc::c_uint == YAML_NO_EVENT as libc::c_int as libc::c_uint {
let _ = writeln!(stdout, "???");
} else if type_0 as libc::c_uint == YAML_STREAM_START_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_STREAM_START_EVENT as libc::c_int as libc::c_uint {
let _ = writeln!(stdout, "+STR");
} else if type_0 as libc::c_uint == YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint {
let _ = writeln!(stdout, "-STR");
} else if type_0 as libc::c_uint == YAML_DOCUMENT_START_EVENT as libc::c_int as libc::c_uint
} else if type_ as libc::c_uint == YAML_DOCUMENT_START_EVENT as libc::c_int as libc::c_uint
{
let _ = write!(stdout, "+DOC");
if (*event).data.document_start.implicit == 0 {
let _ = write!(stdout, " ---");
}
let _ = writeln!(stdout);
} else if type_0 as libc::c_uint == YAML_DOCUMENT_END_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_DOCUMENT_END_EVENT as libc::c_int as libc::c_uint {
let _ = write!(stdout, "-DOC");
if (*event).data.document_end.implicit == 0 {
let _ = write!(stdout, " ...");
}
let _ = writeln!(stdout);
} else if type_0 as libc::c_uint == YAML_MAPPING_START_EVENT as libc::c_int as libc::c_uint
{
} else if type_ as libc::c_uint == YAML_MAPPING_START_EVENT as libc::c_int as libc::c_uint {
let _ = write!(stdout, "+MAP");
if !((*event).data.mapping_start.anchor).is_null() {
let _ = write!(
@ -113,9 +112,9 @@ pub unsafe fn unsafe_main(
);
}
let _ = writeln!(stdout);
} else if type_0 as libc::c_uint == YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint {
let _ = writeln!(stdout, "-MAP");
} else if type_0 as libc::c_uint == YAML_SEQUENCE_START_EVENT as libc::c_int as libc::c_uint
} else if type_ as libc::c_uint == YAML_SEQUENCE_START_EVENT as libc::c_int as libc::c_uint
{
let _ = write!(stdout, "+SEQ");
if !((*event).data.sequence_start.anchor).is_null() {
@ -135,9 +134,9 @@ pub unsafe fn unsafe_main(
);
}
let _ = writeln!(stdout);
} else if type_0 as libc::c_uint == YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint {
let _ = writeln!(stdout, "-SEQ");
} else if type_0 as libc::c_uint == YAML_SCALAR_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_SCALAR_EVENT as libc::c_int as libc::c_uint {
let _ = write!(stdout, "=VAL");
if !((*event).data.scalar.anchor).is_null() {
let _ = write!(
@ -182,7 +181,7 @@ pub unsafe fn unsafe_main(
(*event).data.scalar.length,
);
let _ = writeln!(stdout);
} else if type_0 as libc::c_uint == YAML_ALIAS_EVENT as libc::c_int as libc::c_uint {
} else if type_ as libc::c_uint == YAML_ALIAS_EVENT as libc::c_int as libc::c_uint {
let _ = writeln!(
stdout,
"=ALI *{}",
@ -192,7 +191,7 @@ pub unsafe fn unsafe_main(
process::abort();
}
yaml_event_delete(event);
if type_0 as libc::c_uint == YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint {
if type_ as libc::c_uint == YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint {
break;
}
}

View file

@ -25,7 +25,7 @@ pub unsafe fn yaml_emitter_open(mut emitter: *mut yaml_emitter_t) -> libc::c_int
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_STREAM_START_EVENT;
(*event).type_ = YAML_STREAM_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.stream_start.encoding = YAML_ANY_ENCODING;
@ -53,7 +53,7 @@ pub unsafe fn yaml_emitter_close(mut emitter: *mut yaml_emitter_t) -> libc::c_in
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_STREAM_END_EVENT;
(*event).type_ = YAML_STREAM_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
if yaml_emitter_emit(emitter, event) == 0 {
@ -115,7 +115,7 @@ pub unsafe fn yaml_emitter_dump(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_START_EVENT;
(*event).type_ = YAML_DOCUMENT_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.document_start.version_directive = (*document).version_directive;
@ -132,7 +132,7 @@ pub unsafe fn yaml_emitter_dump(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_END_EVENT;
(*event).type_ = YAML_DOCUMENT_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.document_end.implicit = (*document).end_implicit;
@ -166,17 +166,17 @@ unsafe fn yaml_emitter_delete_document_and_anchors(mut emitter: *mut yaml_emitte
*((*(*emitter).document).nodes.start).wrapping_offset(index as isize);
if (*((*emitter).anchors).wrapping_offset(index as isize)).serialized == 0 {
yaml_free(node.tag as *mut libc::c_void);
if node.type_0 as libc::c_uint == YAML_SCALAR_NODE as libc::c_int as libc::c_uint {
if node.type_ as libc::c_uint == YAML_SCALAR_NODE as libc::c_int as libc::c_uint {
yaml_free(node.data.scalar.value as *mut libc::c_void);
}
}
if node.type_0 as libc::c_uint == YAML_SEQUENCE_NODE as libc::c_int as libc::c_uint {
if node.type_ as libc::c_uint == YAML_SEQUENCE_NODE as libc::c_int as libc::c_uint {
yaml_free(node.data.sequence.items.start as *mut libc::c_void);
node.data.sequence.items.end = ptr::null_mut::<yaml_node_item_t>();
node.data.sequence.items.top = node.data.sequence.items.end;
node.data.sequence.items.start = node.data.sequence.items.top;
}
if node.type_0 as libc::c_uint == YAML_MAPPING_NODE as libc::c_int as libc::c_uint {
if node.type_ as libc::c_uint == YAML_MAPPING_NODE as libc::c_int as libc::c_uint {
yaml_free(node.data.mapping.pairs.start as *mut libc::c_void);
node.data.mapping.pairs.end = ptr::null_mut::<yaml_node_pair_t>();
node.data.mapping.pairs.top = node.data.mapping.pairs.end;
@ -208,7 +208,7 @@ unsafe fn yaml_emitter_anchor_node(emitter: *mut yaml_emitter_t, index: libc::c_
addr_of_mut!((*((*emitter).anchors).wrapping_offset((index - 1_i32) as isize)).references);
*fresh8 += 1;
if (*((*emitter).anchors).wrapping_offset((index - 1_i32) as isize)).references == 1_i32 {
match (*node).type_0 as libc::c_uint {
match (*node).type_ as libc::c_uint {
2 => {
item = (*node).data.sequence.items.start;
while item < (*node).data.sequence.items.top {
@ -261,7 +261,7 @@ unsafe fn yaml_emitter_dump_node(emitter: *mut yaml_emitter_t, index: libc::c_in
return yaml_emitter_dump_alias(emitter, anchor);
}
(*((*emitter).anchors).wrapping_offset((index - 1_i32) as isize)).serialized = 1_i32;
match (*node).type_0 as libc::c_uint {
match (*node).type_ as libc::c_uint {
1 => yaml_emitter_dump_scalar(emitter, node, anchor),
2 => yaml_emitter_dump_sequence(emitter, node, anchor),
3 => yaml_emitter_dump_mapping(emitter, node, anchor),
@ -284,7 +284,7 @@ unsafe fn yaml_emitter_dump_alias(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_ALIAS_EVENT;
(*event).type_ = YAML_ALIAS_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.alias.anchor = anchor;
@ -315,7 +315,7 @@ unsafe fn yaml_emitter_dump_scalar(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SCALAR_EVENT;
(*event).type_ = YAML_SCALAR_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.scalar.anchor = anchor;
@ -349,7 +349,7 @@ unsafe fn yaml_emitter_dump_sequence(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_START_EVENT;
(*event).type_ = YAML_SEQUENCE_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.sequence_start.anchor = anchor;
@ -371,7 +371,7 @@ unsafe fn yaml_emitter_dump_sequence(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_END_EVENT;
(*event).type_ = YAML_SEQUENCE_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
if yaml_emitter_emit(emitter, event) == 0 {
@ -401,7 +401,7 @@ unsafe fn yaml_emitter_dump_mapping(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_START_EVENT;
(*event).type_ = YAML_MAPPING_START_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
(*event).data.mapping_start.anchor = anchor;
@ -426,7 +426,7 @@ unsafe fn yaml_emitter_dump_mapping(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_END_EVENT;
(*event).type_ = YAML_MAPPING_END_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
if yaml_emitter_emit(emitter, event) == 0 {

View file

@ -74,7 +74,7 @@ unsafe fn yaml_emitter_need_more_events(emitter: *mut yaml_emitter_t) -> libc::c
if (*emitter).events.head == (*emitter).events.tail {
return 1_i32;
}
let accumulate = match (*(*emitter).events.head).type_0 as libc::c_uint {
let accumulate = match (*(*emitter).events.head).type_ as libc::c_uint {
3 => 1_i32,
7 => 2_i32,
9 => 3_i32,
@ -87,7 +87,7 @@ unsafe fn yaml_emitter_need_more_events(emitter: *mut yaml_emitter_t) -> libc::c
}
event = (*emitter).events.head;
while event != (*emitter).events.tail {
match (*event).type_0 as libc::c_uint {
match (*event).type_ as libc::c_uint {
1 | 3 | 7 | 9 => {
level += 1_i32;
}
@ -249,7 +249,7 @@ unsafe fn yaml_emitter_emit_stream_start(
event: *mut yaml_event_t,
) -> libc::c_int {
(*emitter).open_ended = 0_i32;
if (*event).type_0 as libc::c_uint == YAML_STREAM_START_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_STREAM_START_EVENT as libc::c_int as libc::c_uint {
if (*emitter).encoding as u64 == 0 {
(*emitter).encoding = (*event).data.stream_start.encoding;
}
@ -293,7 +293,7 @@ unsafe fn yaml_emitter_emit_document_start(
event: *mut yaml_event_t,
first: libc::c_int,
) -> libc::c_int {
if (*event).type_0 as libc::c_uint == YAML_DOCUMENT_START_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_DOCUMENT_START_EVENT as libc::c_int as libc::c_uint {
let mut default_tag_directives: [yaml_tag_directive_t; 3] = [
yaml_tag_directive_t {
handle: b"!\0" as *const u8 as *const libc::c_char as *mut yaml_char_t,
@ -463,8 +463,7 @@ unsafe fn yaml_emitter_emit_document_start(
(*emitter).state = YAML_EMIT_DOCUMENT_CONTENT_STATE;
(*emitter).open_ended = 0_i32;
return 1_i32;
} else if (*event).type_0 as libc::c_uint
== YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint
} else if (*event).type_ as libc::c_uint == YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint
{
if (*emitter).open_ended == 2_i32 {
if yaml_emitter_write_indicator(
@ -522,7 +521,7 @@ unsafe fn yaml_emitter_emit_document_end(
mut emitter: *mut yaml_emitter_t,
event: *mut yaml_event_t,
) -> libc::c_int {
if (*event).type_0 as libc::c_uint == YAML_DOCUMENT_END_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_DOCUMENT_END_EVENT as libc::c_int as libc::c_uint {
if yaml_emitter_write_indent(emitter) == 0 {
return 0_i32;
}
@ -584,7 +583,7 @@ unsafe fn yaml_emitter_emit_flow_sequence_item(
let fresh12 = addr_of_mut!((*emitter).flow_level);
*fresh12 += 1;
}
if (*event).type_0 as libc::c_uint == YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint {
let fresh13 = addr_of_mut!((*emitter).flow_level);
*fresh13 -= 1;
let fresh14 = addr_of_mut!((*emitter).indents.top);
@ -680,7 +679,7 @@ unsafe fn yaml_emitter_emit_flow_mapping_key(
let fresh18 = addr_of_mut!((*emitter).flow_level);
*fresh18 += 1;
}
if (*event).type_0 as libc::c_uint == YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint {
let fresh19 = addr_of_mut!((*emitter).flow_level);
*fresh19 -= 1;
let fresh20 = addr_of_mut!((*emitter).indents.top);
@ -856,7 +855,7 @@ unsafe fn yaml_emitter_emit_block_sequence_item(
return 0_i32;
}
}
if (*event).type_0 as libc::c_uint == YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint {
let fresh28 = addr_of_mut!((*emitter).indents.top);
*fresh28 = (*fresh28).wrapping_offset(-1);
(*emitter).indent = **fresh28;
@ -909,7 +908,7 @@ unsafe fn yaml_emitter_emit_block_mapping_key(
return 0_i32;
}
}
if (*event).type_0 as libc::c_uint == YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint {
if (*event).type_ as libc::c_uint == YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint {
let fresh32 = addr_of_mut!((*emitter).indents.top);
*fresh32 = (*fresh32).wrapping_offset(-1);
(*emitter).indent = **fresh32;
@ -1039,7 +1038,7 @@ unsafe fn yaml_emitter_emit_node(
(*emitter).sequence_context = sequence;
(*emitter).mapping_context = mapping;
(*emitter).simple_key_context = simple_key;
match (*event).type_0 as libc::c_uint {
match (*event).type_ as libc::c_uint {
5 => yaml_emitter_emit_alias(emitter, event),
6 => yaml_emitter_emit_scalar(emitter, event),
7 => yaml_emitter_emit_sequence_start(emitter, event),
@ -1157,24 +1156,24 @@ unsafe fn yaml_emitter_check_empty_sequence(emitter: *mut yaml_emitter_t) -> lib
if (((*emitter).events.tail).c_offset_from((*emitter).events.head) as libc::c_long) < 2_i64 {
return 0_i32;
}
((*((*emitter).events.head).wrapping_offset(0_isize)).type_0 as libc::c_uint
((*((*emitter).events.head).wrapping_offset(0_isize)).type_ as libc::c_uint
== YAML_SEQUENCE_START_EVENT as libc::c_int as libc::c_uint
&& (*((*emitter).events.head).wrapping_offset(1_isize)).type_0 as libc::c_uint
&& (*((*emitter).events.head).wrapping_offset(1_isize)).type_ as libc::c_uint
== YAML_SEQUENCE_END_EVENT as libc::c_int as libc::c_uint) as libc::c_int
}
unsafe fn yaml_emitter_check_empty_mapping(emitter: *mut yaml_emitter_t) -> libc::c_int {
if (((*emitter).events.tail).c_offset_from((*emitter).events.head) as libc::c_long) < 2_i64 {
return 0_i32;
}
((*((*emitter).events.head).wrapping_offset(0_isize)).type_0 as libc::c_uint
((*((*emitter).events.head).wrapping_offset(0_isize)).type_ as libc::c_uint
== YAML_MAPPING_START_EVENT as libc::c_int as libc::c_uint
&& (*((*emitter).events.head).wrapping_offset(1_isize)).type_0 as libc::c_uint
&& (*((*emitter).events.head).wrapping_offset(1_isize)).type_ as libc::c_uint
== YAML_MAPPING_END_EVENT as libc::c_int as libc::c_uint) as libc::c_int
}
unsafe fn yaml_emitter_check_simple_key(emitter: *mut yaml_emitter_t) -> libc::c_int {
let event: *mut yaml_event_t = (*emitter).events.head;
let mut length: size_t = 0_u64;
match (*event).type_0 as libc::c_uint {
match (*event).type_ as libc::c_uint {
5 => {
length = (length as libc::c_ulong).wrapping_add((*emitter).anchor_data.anchor_length)
as size_t as size_t;
@ -2543,7 +2542,7 @@ unsafe fn yaml_emitter_analyze_event(
let fresh55 = addr_of_mut!((*emitter).scalar_data.value);
*fresh55 = ptr::null_mut::<yaml_char_t>();
(*emitter).scalar_data.length = 0_u64;
match (*event).type_0 as libc::c_uint {
match (*event).type_ as libc::c_uint {
5 => {
if yaml_emitter_analyze_anchor(emitter, (*event).data.alias.anchor, 1_i32) == 0 {
return 0_i32;

View file

@ -50,7 +50,7 @@ pub unsafe fn yaml_parser_load(
current_block = 6234624449317607669;
} else {
__assert!(
(*event).type_0 as libc::c_uint
(*event).type_ as libc::c_uint
== YAML_STREAM_START_EVENT as libc::c_int as libc::c_uint
);
current_block = 7815301370352969686;
@ -65,7 +65,7 @@ pub unsafe fn yaml_parser_load(
return 1_i32;
}
if !(yaml_parser_parse(parser, event) == 0) {
if (*event).type_0 as libc::c_uint
if (*event).type_ as libc::c_uint
== YAML_STREAM_END_EVENT as libc::c_int as libc::c_uint
{
return 1_i32;
@ -155,7 +155,7 @@ unsafe fn yaml_parser_load_document(
top: ptr::null_mut::<libc::c_int>(),
};
__assert!(
(*event).type_0 as libc::c_uint == YAML_DOCUMENT_START_EVENT as libc::c_int as libc::c_uint
(*event).type_ as libc::c_uint == YAML_DOCUMENT_START_EVENT as libc::c_int as libc::c_uint
);
let fresh16 = addr_of_mut!((*(*parser).document).version_directive);
*fresh16 = (*event).data.document_start.version_directive;
@ -201,7 +201,7 @@ unsafe fn yaml_parser_load_nodes(
if yaml_parser_parse(parser, event) == 0 {
return 0_i32;
}
match (*event).type_0 as libc::c_uint {
match (*event).type_ as libc::c_uint {
5 => {
if yaml_parser_load_alias(parser, event, ctx) == 0 {
return 0_i32;
@ -237,7 +237,7 @@ unsafe fn yaml_parser_load_nodes(
__assert!(false);
}
}
if !((*event).type_0 as libc::c_uint
if !((*event).type_ as libc::c_uint
!= YAML_DOCUMENT_END_EVENT as libc::c_int as libc::c_uint)
{
break;
@ -315,7 +315,7 @@ unsafe fn yaml_parser_load_node_add(
*((*(*parser).document).nodes.start).wrapping_offset((parent_index - 1_i32) as isize)
);
let current_block_17: u64;
match (*parent).type_0 as libc::c_uint {
match (*parent).type_ as libc::c_uint {
2 => {
if if (((*parent).data.sequence.items.top)
.c_offset_from((*parent).data.sequence.items.start)
@ -486,7 +486,7 @@ unsafe fn yaml_parser_load_scalar(
0_i32,
size_of::<yaml_node_t>() as libc::c_ulong,
);
(*node).type_0 = YAML_SCALAR_NODE;
(*node).type_ = YAML_SCALAR_NODE;
(*node).tag = tag;
(*node).start_mark = (*event).start_mark;
(*node).end_mark = (*event).end_mark;
@ -595,7 +595,7 @@ unsafe fn yaml_parser_load_sequence(
0_i32,
size_of::<yaml_node_t>() as libc::c_ulong,
);
(*node).type_0 = YAML_SEQUENCE_NODE;
(*node).type_ = YAML_SEQUENCE_NODE;
(*node).tag = tag;
(*node).start_mark = (*event).start_mark;
(*node).end_mark = (*event).end_mark;
@ -683,7 +683,7 @@ unsafe fn yaml_parser_load_sequence_end(
__assert!(((*ctx).top).c_offset_from((*ctx).start) as libc::c_long > 0_i64);
let index: libc::c_int = *((*ctx).top).wrapping_offset(-(1_isize));
__assert!(
(*((*(*parser).document).nodes.start).wrapping_offset((index - 1_i32) as isize)).type_0
(*((*(*parser).document).nodes.start).wrapping_offset((index - 1_i32) as isize)).type_
as libc::c_uint
== YAML_SEQUENCE_NODE as libc::c_int as libc::c_uint
);
@ -761,7 +761,7 @@ unsafe fn yaml_parser_load_mapping(
0_i32,
size_of::<yaml_node_t>() as libc::c_ulong,
);
(*node).type_0 = YAML_MAPPING_NODE;
(*node).type_ = YAML_MAPPING_NODE;
(*node).tag = tag;
(*node).start_mark = (*event).start_mark;
(*node).end_mark = (*event).end_mark;
@ -849,7 +849,7 @@ unsafe fn yaml_parser_load_mapping_end(
__assert!(((*ctx).top).c_offset_from((*ctx).start) as libc::c_long > 0_i64);
let index: libc::c_int = *((*ctx).top).wrapping_offset(-(1_isize));
__assert!(
(*((*(*parser).document).nodes.start).wrapping_offset((index - 1_i32) as isize)).type_0
(*((*(*parser).document).nodes.start).wrapping_offset((index - 1_i32) as isize)).type_
as libc::c_uint
== YAML_MAPPING_NODE as libc::c_int as libc::c_uint
);

View file

@ -138,7 +138,7 @@ unsafe fn yaml_parser_parse_stream_start(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_STREAM_START_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint != YAML_STREAM_START_TOKEN as libc::c_int as libc::c_uint {
return yaml_parser_set_parser_error(
parser,
b"did not find expected <stream-start>\0" as *const u8 as *const libc::c_char,
@ -151,14 +151,14 @@ unsafe fn yaml_parser_parse_stream_start(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_STREAM_START_EVENT;
(*event).type_ = YAML_STREAM_START_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).start_mark;
(*event).data.stream_start.encoding = (*token).data.stream_start.encoding;
(*parser).token_available = 0_i32;
let fresh3 = addr_of_mut!((*parser).tokens_parsed);
*fresh3 = (*fresh3).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh4 = addr_of_mut!((*parser).tokens.head);
@ -190,13 +190,13 @@ unsafe fn yaml_parser_parse_document_start(
return 0_i32;
}
if implicit == 0 {
while (*token).type_0 as libc::c_uint
while (*token).type_ as libc::c_uint
== YAML_DOCUMENT_END_TOKEN as libc::c_int as libc::c_uint
{
(*parser).token_available = 0_i32;
let fresh5 = addr_of_mut!((*parser).tokens_parsed);
*fresh5 = (*fresh5).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh6 = addr_of_mut!((*parser).tokens.head);
@ -213,13 +213,12 @@ unsafe fn yaml_parser_parse_document_start(
}
}
if implicit != 0
&& (*token).type_0 as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_VERSION_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
!= YAML_TAG_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_TAG_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_DOCUMENT_START_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint != YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint
{
if yaml_parser_process_directives(
parser,
@ -255,7 +254,7 @@ unsafe fn yaml_parser_parse_document_start(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_START_EVENT;
(*event).type_ = YAML_DOCUMENT_START_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).start_mark;
let fresh9 = addr_of_mut!((*event).data.document_start.version_directive);
@ -266,8 +265,7 @@ unsafe fn yaml_parser_parse_document_start(
*fresh11 = ptr::null_mut::<yaml_tag_directive_t>();
(*event).data.document_start.implicit = 1_i32;
1_i32
} else if (*token).type_0 as libc::c_uint
!= YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint
} else if (*token).type_ as libc::c_uint != YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint
{
let end_mark: yaml_mark_t;
let start_mark: yaml_mark_t = (*token).start_mark;
@ -286,7 +284,7 @@ unsafe fn yaml_parser_parse_document_start(
ptr::null_mut::<yaml_token_t>()
};
if !token.is_null() {
if (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint
!= YAML_DOCUMENT_START_TOKEN as libc::c_int as libc::c_uint
{
yaml_parser_set_parser_error(
@ -318,7 +316,7 @@ unsafe fn yaml_parser_parse_document_start(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_START_EVENT;
(*event).type_ = YAML_DOCUMENT_START_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh14 = addr_of_mut!((*event).data.document_start.version_directive);
@ -331,7 +329,7 @@ unsafe fn yaml_parser_parse_document_start(
(*parser).token_available = 0_i32;
let fresh17 = addr_of_mut!((*parser).tokens_parsed);
*fresh17 = (*fresh17).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh18 = addr_of_mut!((*parser).tokens.head);
@ -356,13 +354,13 @@ unsafe fn yaml_parser_parse_document_start(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_STREAM_END_EVENT;
(*event).type_ = YAML_STREAM_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh19 = addr_of_mut!((*parser).tokens_parsed);
*fresh19 = (*fresh19).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh20 = addr_of_mut!((*parser).tokens.head);
@ -383,14 +381,12 @@ unsafe fn yaml_parser_parse_document_content(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint
== YAML_VERSION_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_0 as libc::c_uint
== YAML_TAG_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint == YAML_VERSION_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_ as libc::c_uint == YAML_TAG_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_ as libc::c_uint
== YAML_DOCUMENT_START_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_0 as libc::c_uint == YAML_DOCUMENT_END_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_0 as libc::c_uint == YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_ as libc::c_uint == YAML_DOCUMENT_END_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_ as libc::c_uint == YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint
{
let fresh21 = addr_of_mut!((*parser).states.top);
*fresh21 = (*fresh21).wrapping_offset(-1);
@ -417,12 +413,12 @@ unsafe fn yaml_parser_parse_document_end(
}
end_mark = (*token).start_mark;
let start_mark: yaml_mark_t = end_mark;
if (*token).type_0 as libc::c_uint == YAML_DOCUMENT_END_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_DOCUMENT_END_TOKEN as libc::c_int as libc::c_uint {
end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh22 = addr_of_mut!((*parser).tokens_parsed);
*fresh22 = (*fresh22).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh23 = addr_of_mut!((*parser).tokens.head);
@ -442,7 +438,7 @@ unsafe fn yaml_parser_parse_document_end(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_DOCUMENT_END_EVENT;
(*event).type_ = YAML_DOCUMENT_END_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
(*event).data.document_end.implicit = implicit;
@ -476,7 +472,7 @@ unsafe fn yaml_parser_parse_node(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint == YAML_ALIAS_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_ALIAS_TOKEN as libc::c_int as libc::c_uint {
let fresh25 = addr_of_mut!((*parser).states.top);
*fresh25 = (*fresh25).wrapping_offset(-1);
(*parser).state = **fresh25;
@ -485,7 +481,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_ALIAS_EVENT;
(*event).type_ = YAML_ALIAS_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
let fresh26 = addr_of_mut!((*event).data.alias.anchor);
@ -493,7 +489,7 @@ unsafe fn yaml_parser_parse_node(
(*parser).token_available = 0_i32;
let fresh27 = addr_of_mut!((*parser).tokens_parsed);
*fresh27 = (*fresh27).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh28 = addr_of_mut!((*parser).tokens.head);
@ -502,14 +498,14 @@ unsafe fn yaml_parser_parse_node(
} else {
end_mark = (*token).start_mark;
start_mark = end_mark;
if (*token).type_0 as libc::c_uint == YAML_ANCHOR_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_ANCHOR_TOKEN as libc::c_int as libc::c_uint {
anchor = (*token).data.anchor.value;
start_mark = (*token).start_mark;
end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh29 = addr_of_mut!((*parser).tokens_parsed);
*fresh29 = (*fresh29).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh30 = addr_of_mut!((*parser).tokens.head);
@ -522,7 +518,7 @@ unsafe fn yaml_parser_parse_node(
};
if token.is_null() {
current_block = 17786380918591080555;
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
== YAML_TAG_TOKEN as libc::c_int as libc::c_uint
{
tag_handle = (*token).data.tag.handle;
@ -532,7 +528,7 @@ unsafe fn yaml_parser_parse_node(
(*parser).token_available = 0_i32;
let fresh31 = addr_of_mut!((*parser).tokens_parsed);
*fresh31 = (*fresh31).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh32 = addr_of_mut!((*parser).tokens.head);
@ -552,7 +548,7 @@ unsafe fn yaml_parser_parse_node(
} else {
current_block = 11743904203796629665;
}
} else if (*token).type_0 as libc::c_uint == YAML_TAG_TOKEN as libc::c_int as libc::c_uint {
} else if (*token).type_ as libc::c_uint == YAML_TAG_TOKEN as libc::c_int as libc::c_uint {
tag_handle = (*token).data.tag.handle;
tag_suffix = (*token).data.tag.suffix;
tag_mark = (*token).start_mark;
@ -561,7 +557,7 @@ unsafe fn yaml_parser_parse_node(
(*parser).token_available = 0_i32;
let fresh33 = addr_of_mut!((*parser).tokens_parsed);
*fresh33 = (*fresh33).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh34 = addr_of_mut!((*parser).tokens.head);
@ -574,7 +570,7 @@ unsafe fn yaml_parser_parse_node(
};
if token.is_null() {
current_block = 17786380918591080555;
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
== YAML_ANCHOR_TOKEN as libc::c_int as libc::c_uint
{
anchor = (*token).data.anchor.value;
@ -582,7 +578,7 @@ unsafe fn yaml_parser_parse_node(
(*parser).token_available = 0_i32;
let fresh35 = addr_of_mut!((*parser).tokens_parsed);
*fresh35 = (*fresh35).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh36 = addr_of_mut!((*parser).tokens.head);
@ -691,7 +687,7 @@ unsafe fn yaml_parser_parse_node(
_ => {
implicit = (tag.is_null() || *tag == 0) as libc::c_int;
if indentless_sequence != 0
&& (*token).type_0 as libc::c_uint
&& (*token).type_ as libc::c_uint
== YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint
{
end_mark = (*token).end_mark;
@ -701,7 +697,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_START_EVENT;
(*event).type_ = YAML_SEQUENCE_START_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh37 = addr_of_mut!((*event).data.sequence_start.anchor);
@ -711,7 +707,7 @@ unsafe fn yaml_parser_parse_node(
(*event).data.sequence_start.implicit = implicit;
(*event).data.sequence_start.style = YAML_BLOCK_SEQUENCE_STYLE;
return 1_i32;
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
== YAML_SCALAR_TOKEN as libc::c_int as libc::c_uint
{
let mut plain_implicit: libc::c_int = 0_i32;
@ -738,7 +734,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SCALAR_EVENT;
(*event).type_ = YAML_SCALAR_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh40 = addr_of_mut!((*event).data.scalar.anchor);
@ -754,14 +750,14 @@ unsafe fn yaml_parser_parse_node(
(*parser).token_available = 0_i32;
let fresh43 = addr_of_mut!((*parser).tokens_parsed);
*fresh43 = (*fresh43).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_
as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh44 = addr_of_mut!((*parser).tokens.head);
*fresh44 = (*fresh44).wrapping_offset(1);
return 1_i32;
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
== YAML_FLOW_SEQUENCE_START_TOKEN as libc::c_int as libc::c_uint
{
end_mark = (*token).end_mark;
@ -771,7 +767,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_START_EVENT;
(*event).type_ = YAML_SEQUENCE_START_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh45 = addr_of_mut!((*event).data.sequence_start.anchor);
@ -781,7 +777,7 @@ unsafe fn yaml_parser_parse_node(
(*event).data.sequence_start.implicit = implicit;
(*event).data.sequence_start.style = YAML_FLOW_SEQUENCE_STYLE;
return 1_i32;
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
== YAML_FLOW_MAPPING_START_TOKEN as libc::c_int as libc::c_uint
{
end_mark = (*token).end_mark;
@ -791,7 +787,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_START_EVENT;
(*event).type_ = YAML_MAPPING_START_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh47 = addr_of_mut!((*event).data.mapping_start.anchor);
@ -802,7 +798,7 @@ unsafe fn yaml_parser_parse_node(
(*event).data.mapping_start.style = YAML_FLOW_MAPPING_STYLE;
return 1_i32;
} else if block != 0
&& (*token).type_0 as libc::c_uint
&& (*token).type_ as libc::c_uint
== YAML_BLOCK_SEQUENCE_START_TOKEN as libc::c_int as libc::c_uint
{
end_mark = (*token).end_mark;
@ -812,7 +808,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_START_EVENT;
(*event).type_ = YAML_SEQUENCE_START_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh49 = addr_of_mut!((*event).data.sequence_start.anchor);
@ -823,7 +819,7 @@ unsafe fn yaml_parser_parse_node(
(*event).data.sequence_start.style = YAML_BLOCK_SEQUENCE_STYLE;
return 1_i32;
} else if block != 0
&& (*token).type_0 as libc::c_uint
&& (*token).type_ as libc::c_uint
== YAML_BLOCK_MAPPING_START_TOKEN as libc::c_int as libc::c_uint
{
end_mark = (*token).end_mark;
@ -833,7 +829,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_START_EVENT;
(*event).type_ = YAML_MAPPING_START_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh51 = addr_of_mut!((*event).data.mapping_start.anchor);
@ -857,7 +853,7 @@ unsafe fn yaml_parser_parse_node(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SCALAR_EVENT;
(*event).type_ = YAML_SCALAR_EVENT;
(*event).start_mark = start_mark;
(*event).end_mark = end_mark;
let fresh54 = addr_of_mut!((*event).data.scalar.anchor);
@ -934,7 +930,7 @@ unsafe fn yaml_parser_parse_block_sequence_entry(
(*parser).token_available = 0_i32;
let fresh59 = addr_of_mut!((*parser).tokens_parsed);
*fresh59 = (*fresh59).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh60 = addr_of_mut!((*parser).tokens.head);
@ -948,12 +944,12 @@ unsafe fn yaml_parser_parse_block_sequence_entry(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint == YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint {
let mark: yaml_mark_t = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh61 = addr_of_mut!((*parser).tokens_parsed);
*fresh61 = (*fresh61).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh62 = addr_of_mut!((*parser).tokens.head);
@ -966,9 +962,8 @@ unsafe fn yaml_parser_parse_block_sequence_entry(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
!= YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
|| yaml_stack_extend(
@ -994,7 +989,7 @@ unsafe fn yaml_parser_parse_block_sequence_entry(
(*parser).state = YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE;
yaml_parser_process_empty_scalar(parser, event, mark)
}
} else if (*token).type_0 as libc::c_uint == YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
} else if (*token).type_ as libc::c_uint == YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
{
let fresh65 = addr_of_mut!((*parser).states.top);
*fresh65 = (*fresh65).wrapping_offset(-1);
@ -1006,13 +1001,13 @@ unsafe fn yaml_parser_parse_block_sequence_entry(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_END_EVENT;
(*event).type_ = YAML_SEQUENCE_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh67 = addr_of_mut!((*parser).tokens_parsed);
*fresh67 = (*fresh67).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh68 = addr_of_mut!((*parser).tokens.head);
@ -1043,12 +1038,12 @@ unsafe fn yaml_parser_parse_indentless_sequence_entry(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint == YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint {
let mark: yaml_mark_t = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh70 = addr_of_mut!((*parser).tokens_parsed);
*fresh70 = (*fresh70).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh71 = addr_of_mut!((*parser).tokens.head);
@ -1061,11 +1056,10 @@ unsafe fn yaml_parser_parse_indentless_sequence_entry(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint != YAML_KEY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
!= YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_BLOCK_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_KEY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
|| yaml_stack_extend(
@ -1100,7 +1094,7 @@ unsafe fn yaml_parser_parse_indentless_sequence_entry(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_END_EVENT;
(*event).type_ = YAML_SEQUENCE_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).start_mark;
1_i32
@ -1140,7 +1134,7 @@ unsafe fn yaml_parser_parse_block_mapping_key(
(*parser).token_available = 0_i32;
let fresh77 = addr_of_mut!((*parser).tokens_parsed);
*fresh77 = (*fresh77).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh78 = addr_of_mut!((*parser).tokens.head);
@ -1154,12 +1148,12 @@ unsafe fn yaml_parser_parse_block_mapping_key(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint == YAML_KEY_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_KEY_TOKEN as libc::c_int as libc::c_uint {
let mark: yaml_mark_t = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh79 = addr_of_mut!((*parser).tokens_parsed);
*fresh79 = (*fresh79).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh80 = addr_of_mut!((*parser).tokens.head);
@ -1172,10 +1166,9 @@ unsafe fn yaml_parser_parse_block_mapping_key(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_KEY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
!= YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_KEY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
|| yaml_stack_extend(
@ -1201,7 +1194,7 @@ unsafe fn yaml_parser_parse_block_mapping_key(
(*parser).state = YAML_PARSE_BLOCK_MAPPING_VALUE_STATE;
yaml_parser_process_empty_scalar(parser, event, mark)
}
} else if (*token).type_0 as libc::c_uint == YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
} else if (*token).type_ as libc::c_uint == YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
{
let fresh83 = addr_of_mut!((*parser).states.top);
*fresh83 = (*fresh83).wrapping_offset(-1);
@ -1213,13 +1206,13 @@ unsafe fn yaml_parser_parse_block_mapping_key(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_END_EVENT;
(*event).type_ = YAML_MAPPING_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh85 = addr_of_mut!((*parser).tokens_parsed);
*fresh85 = (*fresh85).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh86 = addr_of_mut!((*parser).tokens.head);
@ -1250,12 +1243,12 @@ unsafe fn yaml_parser_parse_block_mapping_value(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint == YAML_VALUE_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_VALUE_TOKEN as libc::c_int as libc::c_uint {
let mark: yaml_mark_t = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh88 = addr_of_mut!((*parser).tokens_parsed);
*fresh88 = (*fresh88).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh89 = addr_of_mut!((*parser).tokens.head);
@ -1268,10 +1261,9 @@ unsafe fn yaml_parser_parse_block_mapping_value(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_KEY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
!= YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_KEY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_BLOCK_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
|| yaml_stack_extend(
@ -1336,7 +1328,7 @@ unsafe fn yaml_parser_parse_flow_sequence_entry(
(*parser).token_available = 0_i32;
let fresh94 = addr_of_mut!((*parser).tokens_parsed);
*fresh94 = (*fresh94).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh95 = addr_of_mut!((*parser).tokens.head);
@ -1350,17 +1342,16 @@ unsafe fn yaml_parser_parse_flow_sequence_entry(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint
!= YAML_FLOW_SEQUENCE_END_TOKEN as libc::c_int as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_FLOW_SEQUENCE_END_TOKEN as libc::c_int as libc::c_uint
{
if first == 0 {
if (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint
== YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
{
(*parser).token_available = 0_i32;
let fresh96 = addr_of_mut!((*parser).tokens_parsed);
*fresh96 = (*fresh96).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh97 = addr_of_mut!((*parser).tokens.head);
@ -1387,14 +1378,14 @@ unsafe fn yaml_parser_parse_flow_sequence_entry(
);
}
}
if (*token).type_0 as libc::c_uint == YAML_KEY_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_KEY_TOKEN as libc::c_int as libc::c_uint {
(*parser).state = YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE;
memset(
event as *mut libc::c_void,
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_START_EVENT;
(*event).type_ = YAML_MAPPING_START_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
let fresh99 = addr_of_mut!((*event).data.mapping_start.anchor);
@ -1406,13 +1397,13 @@ unsafe fn yaml_parser_parse_flow_sequence_entry(
(*parser).token_available = 0_i32;
let fresh101 = addr_of_mut!((*parser).tokens_parsed);
*fresh101 = (*fresh101).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh102 = addr_of_mut!((*parser).tokens.head);
*fresh102 = (*fresh102).wrapping_offset(1);
return 1_i32;
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
!= YAML_FLOW_SEQUENCE_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
@ -1447,13 +1438,13 @@ unsafe fn yaml_parser_parse_flow_sequence_entry(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SEQUENCE_END_EVENT;
(*event).type_ = YAML_SEQUENCE_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh107 = addr_of_mut!((*parser).tokens_parsed);
*fresh107 = (*fresh107).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh108 = addr_of_mut!((*parser).tokens.head);
@ -1473,9 +1464,9 @@ unsafe fn yaml_parser_parse_flow_sequence_entry_mapping_key(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint != YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint != YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_FLOW_SEQUENCE_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
@ -1503,7 +1494,7 @@ unsafe fn yaml_parser_parse_flow_sequence_entry_mapping_key(
(*parser).token_available = 0_i32;
let fresh111 = addr_of_mut!((*parser).tokens_parsed);
*fresh111 = (*fresh111).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh112 = addr_of_mut!((*parser).tokens.head);
@ -1525,11 +1516,11 @@ unsafe fn yaml_parser_parse_flow_sequence_entry_mapping_value(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint == YAML_VALUE_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_VALUE_TOKEN as libc::c_int as libc::c_uint {
(*parser).token_available = 0_i32;
let fresh113 = addr_of_mut!((*parser).tokens_parsed);
*fresh113 = (*fresh113).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh114 = addr_of_mut!((*parser).tokens.head);
@ -1542,8 +1533,8 @@ unsafe fn yaml_parser_parse_flow_sequence_entry_mapping_value(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_FLOW_SEQUENCE_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
@ -1590,7 +1581,7 @@ unsafe fn yaml_parser_parse_flow_sequence_entry_mapping_end(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_END_EVENT;
(*event).type_ = YAML_MAPPING_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).start_mark;
1_i32
@ -1629,7 +1620,7 @@ unsafe fn yaml_parser_parse_flow_mapping_key(
(*parser).token_available = 0_i32;
let fresh119 = addr_of_mut!((*parser).tokens_parsed);
*fresh119 = (*fresh119).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh120 = addr_of_mut!((*parser).tokens.head);
@ -1643,16 +1634,16 @@ unsafe fn yaml_parser_parse_flow_mapping_key(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_FLOW_MAPPING_END_TOKEN as libc::c_int as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_FLOW_MAPPING_END_TOKEN as libc::c_int as libc::c_uint
{
if first == 0 {
if (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint
== YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
{
(*parser).token_available = 0_i32;
let fresh121 = addr_of_mut!((*parser).tokens_parsed);
*fresh121 = (*fresh121).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh122 = addr_of_mut!((*parser).tokens.head);
@ -1679,11 +1670,11 @@ unsafe fn yaml_parser_parse_flow_mapping_key(
);
}
}
if (*token).type_0 as libc::c_uint == YAML_KEY_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_KEY_TOKEN as libc::c_int as libc::c_uint {
(*parser).token_available = 0_i32;
let fresh124 = addr_of_mut!((*parser).tokens_parsed);
*fresh124 = (*fresh124).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh125 = addr_of_mut!((*parser).tokens.head);
@ -1697,10 +1688,10 @@ unsafe fn yaml_parser_parse_flow_mapping_key(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_VALUE_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_FLOW_MAPPING_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
@ -1727,7 +1718,7 @@ unsafe fn yaml_parser_parse_flow_mapping_key(
(*parser).state = YAML_PARSE_FLOW_MAPPING_VALUE_STATE;
return yaml_parser_process_empty_scalar(parser, event, (*token).start_mark);
}
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
!= YAML_FLOW_MAPPING_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
@ -1762,13 +1753,13 @@ unsafe fn yaml_parser_parse_flow_mapping_key(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_MAPPING_END_EVENT;
(*event).type_ = YAML_MAPPING_END_EVENT;
(*event).start_mark = (*token).start_mark;
(*event).end_mark = (*token).end_mark;
(*parser).token_available = 0_i32;
let fresh132 = addr_of_mut!((*parser).tokens_parsed);
*fresh132 = (*fresh132).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh133 = addr_of_mut!((*parser).tokens.head);
@ -1793,11 +1784,11 @@ unsafe fn yaml_parser_parse_flow_mapping_value(
(*parser).state = YAML_PARSE_FLOW_MAPPING_KEY_STATE;
return yaml_parser_process_empty_scalar(parser, event, (*token).start_mark);
}
if (*token).type_0 as libc::c_uint == YAML_VALUE_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_VALUE_TOKEN as libc::c_int as libc::c_uint {
(*parser).token_available = 0_i32;
let fresh134 = addr_of_mut!((*parser).tokens_parsed);
*fresh134 = (*fresh134).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh135 = addr_of_mut!((*parser).tokens.head);
@ -1810,8 +1801,8 @@ unsafe fn yaml_parser_parse_flow_mapping_value(
if token.is_null() {
return 0_i32;
}
if (*token).type_0 as libc::c_uint != YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint != YAML_FLOW_ENTRY_TOKEN as libc::c_int as libc::c_uint
&& (*token).type_ as libc::c_uint
!= YAML_FLOW_MAPPING_END_TOKEN as libc::c_int as libc::c_uint
{
if if (*parser).states.top != (*parser).states.end
@ -1855,7 +1846,7 @@ unsafe fn yaml_parser_process_empty_scalar(
0_i32,
size_of::<yaml_event_t>() as libc::c_ulong,
);
(*event).type_0 = YAML_SCALAR_EVENT;
(*event).type_ = YAML_SCALAR_EVENT;
(*event).start_mark = mark;
(*event).end_mark = mark;
let fresh138 = addr_of_mut!((*event).data.scalar.anchor);
@ -1924,15 +1915,15 @@ unsafe fn yaml_parser_process_directives(
};
if !token.is_null() {
loop {
if !((*token).type_0 as libc::c_uint
if !((*token).type_ as libc::c_uint
== YAML_VERSION_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
|| (*token).type_0 as libc::c_uint
|| (*token).type_ as libc::c_uint
== YAML_TAG_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint)
{
current_block = 16924917904204750491;
break;
}
if (*token).type_0 as libc::c_uint
if (*token).type_ as libc::c_uint
== YAML_VERSION_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
{
if !version_directive.is_null() {
@ -1969,7 +1960,7 @@ unsafe fn yaml_parser_process_directives(
(*version_directive).minor = (*token).data.version_directive.minor;
}
}
} else if (*token).type_0 as libc::c_uint
} else if (*token).type_ as libc::c_uint
== YAML_TAG_DIRECTIVE_TOKEN as libc::c_int as libc::c_uint
{
let value = yaml_tag_directive_t {
@ -2005,7 +1996,7 @@ unsafe fn yaml_parser_process_directives(
(*parser).token_available = 0_i32;
let fresh142 = addr_of_mut!((*parser).tokens_parsed);
*fresh142 = (*fresh142).wrapping_add(1);
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_0 as libc::c_uint
(*parser).stream_end_produced = ((*(*parser).tokens.head).type_ as libc::c_uint
== YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint)
as libc::c_int;
let fresh143 = addr_of_mut!((*parser).tokens.head);

View file

@ -42,7 +42,7 @@ pub unsafe fn yaml_parser_scan(
(*parser).token_available = 0_i32;
let fresh2 = addr_of_mut!((*parser).tokens_parsed);
*fresh2 = (*fresh2).wrapping_add(1);
if (*token).type_0 as libc::c_uint == YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint {
if (*token).type_ as libc::c_uint == YAML_STREAM_END_TOKEN as libc::c_int as libc::c_uint {
(*parser).stream_end_produced = 1_i32;
}
1_i32
@ -614,7 +614,7 @@ unsafe fn yaml_parser_roll_indent(
mut parser: *mut yaml_parser_t,
column: ptrdiff_t,
number: ptrdiff_t,
type_0: yaml_token_type_t,
type_: yaml_token_type_t,
mark: yaml_mark_t,
) -> libc::c_int {
let mut token = MaybeUninit::<yaml_token_t>::uninit();
@ -652,7 +652,7 @@ unsafe fn yaml_parser_roll_indent(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = type_0;
(*token).type_ = type_;
(*token).start_mark = mark;
(*token).end_mark = mark;
if number == -1_i64 {
@ -729,7 +729,7 @@ unsafe fn yaml_parser_unroll_indent(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_BLOCK_END_TOKEN;
(*token).type_ = YAML_BLOCK_END_TOKEN;
(*token).start_mark = (*parser).mark;
(*token).end_mark = (*parser).mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -798,7 +798,7 @@ unsafe fn yaml_parser_fetch_stream_start(mut parser: *mut yaml_parser_t) -> libc
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_STREAM_START_TOKEN;
(*token).type_ = YAML_STREAM_START_TOKEN;
(*token).start_mark = (*parser).mark;
(*token).end_mark = (*parser).mark;
(*token).data.stream_start.encoding = (*parser).encoding;
@ -844,7 +844,7 @@ unsafe fn yaml_parser_fetch_stream_end(mut parser: *mut yaml_parser_t) -> libc::
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_STREAM_END_TOKEN;
(*token).type_ = YAML_STREAM_END_TOKEN;
(*token).start_mark = (*parser).mark;
(*token).end_mark = (*parser).mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -907,7 +907,7 @@ unsafe fn yaml_parser_fetch_directive(mut parser: *mut yaml_parser_t) -> libc::c
}
unsafe fn yaml_parser_fetch_document_indicator(
mut parser: *mut yaml_parser_t,
type_0: yaml_token_type_t,
type_: yaml_token_type_t,
) -> libc::c_int {
let mut token = MaybeUninit::<yaml_token_t>::uninit();
let token = token.as_mut_ptr();
@ -1006,7 +1006,7 @@ unsafe fn yaml_parser_fetch_document_indicator(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = type_0;
(*token).type_ = type_;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1033,7 +1033,7 @@ unsafe fn yaml_parser_fetch_document_indicator(
}
unsafe fn yaml_parser_fetch_flow_collection_start(
mut parser: *mut yaml_parser_t,
type_0: yaml_token_type_t,
type_: yaml_token_type_t,
) -> libc::c_int {
let mut token = MaybeUninit::<yaml_token_t>::uninit();
let token = token.as_mut_ptr();
@ -1078,7 +1078,7 @@ unsafe fn yaml_parser_fetch_flow_collection_start(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = type_0;
(*token).type_ = type_;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1105,7 +1105,7 @@ unsafe fn yaml_parser_fetch_flow_collection_start(
}
unsafe fn yaml_parser_fetch_flow_collection_end(
mut parser: *mut yaml_parser_t,
type_0: yaml_token_type_t,
type_: yaml_token_type_t,
) -> libc::c_int {
let mut token = MaybeUninit::<yaml_token_t>::uninit();
let token = token.as_mut_ptr();
@ -1150,7 +1150,7 @@ unsafe fn yaml_parser_fetch_flow_collection_end(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = type_0;
(*token).type_ = type_;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1216,7 +1216,7 @@ unsafe fn yaml_parser_fetch_flow_entry(mut parser: *mut yaml_parser_t) -> libc::
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_FLOW_ENTRY_TOKEN;
(*token).type_ = YAML_FLOW_ENTRY_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1303,7 +1303,7 @@ unsafe fn yaml_parser_fetch_block_entry(mut parser: *mut yaml_parser_t) -> libc:
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_BLOCK_ENTRY_TOKEN;
(*token).type_ = YAML_BLOCK_ENTRY_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1390,7 +1390,7 @@ unsafe fn yaml_parser_fetch_key(mut parser: *mut yaml_parser_t) -> libc::c_int {
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_KEY_TOKEN;
(*token).type_ = YAML_KEY_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1426,7 +1426,7 @@ unsafe fn yaml_parser_fetch_value(mut parser: *mut yaml_parser_t) -> libc::c_int
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_KEY_TOKEN;
(*token).type_ = YAML_KEY_TOKEN;
(*token).start_mark = (*simple_key).mark;
(*token).end_mark = (*simple_key).mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1536,7 +1536,7 @@ unsafe fn yaml_parser_fetch_value(mut parser: *mut yaml_parser_t) -> libc::c_int
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_VALUE_TOKEN;
(*token).type_ = YAML_VALUE_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
if if (*parser).tokens.tail != (*parser).tokens.end
@ -1563,7 +1563,7 @@ unsafe fn yaml_parser_fetch_value(mut parser: *mut yaml_parser_t) -> libc::c_int
}
unsafe fn yaml_parser_fetch_anchor(
mut parser: *mut yaml_parser_t,
type_0: yaml_token_type_t,
type_: yaml_token_type_t,
) -> libc::c_int {
let mut token = MaybeUninit::<yaml_token_t>::uninit();
let token = token.as_mut_ptr();
@ -1571,7 +1571,7 @@ unsafe fn yaml_parser_fetch_anchor(
return 0_i32;
}
(*parser).simple_key_allowed = 0_i32;
if yaml_parser_scan_anchor(parser, token, type_0) == 0 {
if yaml_parser_scan_anchor(parser, token, type_) == 0 {
return 0_i32;
}
if if (*parser).tokens.tail != (*parser).tokens.end
@ -2072,7 +2072,7 @@ unsafe fn yaml_parser_scan_directive(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_VERSION_DIRECTIVE_TOKEN;
(*token).type_ = YAML_VERSION_DIRECTIVE_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
(*token).data.version_directive.major = major;
@ -2099,7 +2099,7 @@ unsafe fn yaml_parser_scan_directive(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_TAG_DIRECTIVE_TOKEN;
(*token).type_ = YAML_TAG_DIRECTIVE_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh112 = addr_of_mut!((*token).data.tag_directive.handle);
@ -3149,7 +3149,7 @@ unsafe fn yaml_parser_scan_tag_directive_value(
unsafe fn yaml_parser_scan_anchor(
mut parser: *mut yaml_parser_t,
mut token: *mut yaml_token_t,
type_0: yaml_token_type_t,
type_: yaml_token_type_t,
) -> libc::c_int {
let current_block: u64;
let mut length: libc::c_int = 0_i32;
@ -3391,7 +3391,7 @@ unsafe fn yaml_parser_scan_anchor(
{
yaml_parser_set_scanner_error(
parser,
if type_0 as libc::c_uint
if type_ as libc::c_uint
== YAML_ANCHOR_TOKEN as libc::c_int as libc::c_uint
{
b"while scanning an anchor\0" as *const u8 as *const libc::c_char
@ -3403,15 +3403,14 @@ unsafe fn yaml_parser_scan_anchor(
as *const libc::c_char,
);
} else {
if type_0 as libc::c_uint
== YAML_ANCHOR_TOKEN as libc::c_int as libc::c_uint
if type_ as libc::c_uint == YAML_ANCHOR_TOKEN as libc::c_int as libc::c_uint
{
memset(
token as *mut libc::c_void,
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_ANCHOR_TOKEN;
(*token).type_ = YAML_ANCHOR_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh220 = addr_of_mut!((*token).data.anchor.value);
@ -3422,7 +3421,7 @@ unsafe fn yaml_parser_scan_anchor(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_ALIAS_TOKEN;
(*token).type_ = YAML_ALIAS_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh221 = addr_of_mut!((*token).data.alias.value);
@ -3704,7 +3703,7 @@ unsafe fn yaml_parser_scan_tag(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_TAG_TOKEN;
(*token).type_ = YAML_TAG_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh234 = addr_of_mut!((*token).data.tag.handle);
@ -5975,7 +5974,7 @@ unsafe fn yaml_parser_scan_block_scalar(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_SCALAR_TOKEN;
(*token).type_ = YAML_SCALAR_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh479 = addr_of_mut!((*token).data.scalar.value);
@ -8163,7 +8162,7 @@ unsafe fn yaml_parser_scan_flow_scalar(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_SCALAR_TOKEN;
(*token).type_ = YAML_SCALAR_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh716 = addr_of_mut!((*token).data.scalar.value);
@ -9344,7 +9343,7 @@ unsafe fn yaml_parser_scan_plain_scalar(
0_i32,
size_of::<yaml_token_t>() as libc::c_ulong,
);
(*token).type_0 = YAML_SCALAR_TOKEN;
(*token).type_ = YAML_SCALAR_TOKEN;
(*token).start_mark = start_mark;
(*token).end_mark = end_mark;
let fresh842 = addr_of_mut!((*token).data.scalar.value);

View file

@ -83,7 +83,7 @@ pub const YAML_NO_TOKEN: yaml_token_type_t = 0;
#[repr(C)]
#[non_exhaustive]
pub struct yaml_token_t {
pub type_0: yaml_token_type_t,
pub type_: yaml_token_type_t,
pub data: unnamed_yaml_token_t_data,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
@ -162,7 +162,7 @@ pub const YAML_NO_EVENT: yaml_event_type_t = 0;
#[repr(C)]
#[non_exhaustive]
pub struct yaml_event_t {
pub type_0: yaml_event_type_t,
pub type_: yaml_event_type_t,
pub data: unnamed_yaml_event_t_data,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
@ -250,7 +250,7 @@ pub const YAML_NO_NODE: yaml_node_type_t = 0;
#[repr(C)]
#[non_exhaustive]
pub struct yaml_node_t {
pub type_0: yaml_node_type_t,
pub type_: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: unnamed_yaml_node_t_data,
pub start_mark: yaml_mark_t,