C2RustUnnamed -> Unnamed

This commit is contained in:
David Tolnay 2022-07-03 09:19:20 -07:00
parent 488bc751a7
commit aebf6a7924
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
21 changed files with 1878 additions and 1878 deletions

View file

@ -212,59 +212,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -285,24 +285,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -310,7 +310,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -318,7 +318,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -329,30 +329,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -367,26 +367,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -400,13 +400,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -414,7 +414,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -423,9 +423,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -433,13 +433,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -506,76 +506,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -583,7 +583,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -591,7 +591,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -599,13 +599,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -651,20 +651,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_44,
pub buffer: C2RustUnnamed_43,
pub raw_buffer: C2RustUnnamed_42,
pub output: Unnamed_44,
pub buffer: Unnamed_43,
pub raw_buffer: Unnamed_42,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_41,
pub states: Unnamed_41,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_40,
pub indents: C2RustUnnamed_39,
pub tag_directives: C2RustUnnamed_38,
pub events: Unnamed_40,
pub indents: Unnamed_39,
pub tag_directives: Unnamed_38,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -676,9 +676,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_37,
pub tag_data: C2RustUnnamed_36,
pub scalar_data: C2RustUnnamed_35,
pub anchor_data: Unnamed_37,
pub tag_data: Unnamed_36,
pub scalar_data: Unnamed_35,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -687,7 +687,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -699,7 +699,7 @@ pub struct C2RustUnnamed_35 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -707,28 +707,28 @@ pub struct C2RustUnnamed_36 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -736,14 +736,14 @@ pub struct C2RustUnnamed_40 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -751,7 +751,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -759,13 +759,13 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_44 {
pub string: C2RustUnnamed_45,
pub union Unnamed_44 {
pub string: Unnamed_45,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_45 {
pub struct Unnamed_45 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -799,22 +799,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -830,7 +830,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -838,35 +838,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -878,20 +878,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_44 {
string: C2RustUnnamed_45 {
output: Unnamed_44 {
string: Unnamed_45 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_43 {
buffer: Unnamed_43 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_42 {
raw_buffer: Unnamed_42 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -903,24 +903,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_41 {
states: Unnamed_41 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_40 {
events: Unnamed_40 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_39 {
indents: Unnamed_39 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_38 {
tag_directives: Unnamed_38 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -936,18 +936,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_37 {
anchor_data: Unnamed_37 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_36 {
tag_data: Unnamed_36 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_35 {
scalar_data: Unnamed_35 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -965,8 +965,8 @@ unsafe fn main_0(
};
let mut input_event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},
@ -983,8 +983,8 @@ unsafe fn main_0(
};
let mut output_event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -209,59 +209,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -282,24 +282,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -307,7 +307,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -315,7 +315,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -326,30 +326,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -364,26 +364,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -397,13 +397,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -411,7 +411,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -420,9 +420,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -430,13 +430,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -503,76 +503,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -580,7 +580,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -588,7 +588,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -596,13 +596,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -648,20 +648,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_44,
pub buffer: C2RustUnnamed_43,
pub raw_buffer: C2RustUnnamed_42,
pub output: Unnamed_44,
pub buffer: Unnamed_43,
pub raw_buffer: Unnamed_42,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_41,
pub states: Unnamed_41,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_40,
pub indents: C2RustUnnamed_39,
pub tag_directives: C2RustUnnamed_38,
pub events: Unnamed_40,
pub indents: Unnamed_39,
pub tag_directives: Unnamed_38,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -673,9 +673,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_37,
pub tag_data: C2RustUnnamed_36,
pub scalar_data: C2RustUnnamed_35,
pub anchor_data: Unnamed_37,
pub tag_data: Unnamed_36,
pub scalar_data: Unnamed_35,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -684,7 +684,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -696,7 +696,7 @@ pub struct C2RustUnnamed_35 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -704,28 +704,28 @@ pub struct C2RustUnnamed_36 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -733,14 +733,14 @@ pub struct C2RustUnnamed_40 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -748,7 +748,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -756,13 +756,13 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_44 {
pub string: C2RustUnnamed_45,
pub union Unnamed_44 {
pub string: Unnamed_45,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_45 {
pub struct Unnamed_45 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -796,22 +796,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -827,7 +827,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -835,35 +835,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -875,20 +875,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_44 {
string: C2RustUnnamed_45 {
output: Unnamed_44 {
string: Unnamed_45 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_43 {
buffer: Unnamed_43 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_42 {
raw_buffer: Unnamed_42 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -900,24 +900,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_41 {
states: Unnamed_41 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_40 {
events: Unnamed_40 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_39 {
indents: Unnamed_39 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_38 {
tag_directives: Unnamed_38 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -933,18 +933,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_37 {
anchor_data: Unnamed_37 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_36 {
tag_data: Unnamed_36 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_35 {
scalar_data: Unnamed_35 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -962,8 +962,8 @@ unsafe fn main_0(
};
let mut input_event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},
@ -979,13 +979,13 @@ unsafe fn main_0(
},
};
let mut output_document: yaml_document_t = yaml_document_t {
nodes: C2RustUnnamed_23 {
nodes: Unnamed_23 {
start: 0 as *mut yaml_node_t,
end: 0 as *mut yaml_node_t,
top: 0 as *mut yaml_node_t,
},
version_directive: 0 as *mut yaml_version_directive_t,
tag_directives: C2RustUnnamed_22 {
tag_directives: Unnamed_22 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
},

View file

@ -168,59 +168,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -241,24 +241,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -266,7 +266,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -274,7 +274,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -285,30 +285,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -323,26 +323,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -356,13 +356,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -370,7 +370,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -379,9 +379,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -389,13 +389,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -462,76 +462,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -539,7 +539,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -547,7 +547,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -555,13 +555,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -607,20 +607,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_44,
pub buffer: C2RustUnnamed_43,
pub raw_buffer: C2RustUnnamed_42,
pub output: Unnamed_44,
pub buffer: Unnamed_43,
pub raw_buffer: Unnamed_42,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_41,
pub states: Unnamed_41,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_40,
pub indents: C2RustUnnamed_39,
pub tag_directives: C2RustUnnamed_38,
pub events: Unnamed_40,
pub indents: Unnamed_39,
pub tag_directives: Unnamed_38,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -632,9 +632,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_37,
pub tag_data: C2RustUnnamed_36,
pub scalar_data: C2RustUnnamed_35,
pub anchor_data: Unnamed_37,
pub tag_data: Unnamed_36,
pub scalar_data: Unnamed_35,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -643,7 +643,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -655,7 +655,7 @@ pub struct C2RustUnnamed_35 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -663,28 +663,28 @@ pub struct C2RustUnnamed_36 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -692,14 +692,14 @@ pub struct C2RustUnnamed_40 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -707,7 +707,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -715,13 +715,13 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_44 {
pub string: C2RustUnnamed_45,
pub union Unnamed_44 {
pub string: Unnamed_45,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_45 {
pub struct Unnamed_45 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -755,22 +755,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -786,7 +786,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -794,35 +794,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -834,20 +834,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_44 {
string: C2RustUnnamed_45 {
output: Unnamed_44 {
string: Unnamed_45 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_43 {
buffer: Unnamed_43 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_42 {
raw_buffer: Unnamed_42 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -859,24 +859,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_41 {
states: Unnamed_41 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_40 {
events: Unnamed_40 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_39 {
indents: Unnamed_39 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_38 {
tag_directives: Unnamed_38 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -892,18 +892,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_37 {
anchor_data: Unnamed_37 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_36 {
tag_data: Unnamed_36 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_35 {
scalar_data: Unnamed_35 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -921,8 +921,8 @@ unsafe fn main_0(
};
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -169,59 +169,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -242,24 +242,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -267,7 +267,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -275,7 +275,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -286,30 +286,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -324,26 +324,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -357,13 +357,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -371,7 +371,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -380,9 +380,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -390,13 +390,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -463,76 +463,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -540,7 +540,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -548,7 +548,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -556,13 +556,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -608,20 +608,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_44,
pub buffer: C2RustUnnamed_43,
pub raw_buffer: C2RustUnnamed_42,
pub output: Unnamed_44,
pub buffer: Unnamed_43,
pub raw_buffer: Unnamed_42,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_41,
pub states: Unnamed_41,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_40,
pub indents: C2RustUnnamed_39,
pub tag_directives: C2RustUnnamed_38,
pub events: Unnamed_40,
pub indents: Unnamed_39,
pub tag_directives: Unnamed_38,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -633,9 +633,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_37,
pub tag_data: C2RustUnnamed_36,
pub scalar_data: C2RustUnnamed_35,
pub anchor_data: Unnamed_37,
pub tag_data: Unnamed_36,
pub scalar_data: Unnamed_35,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -644,7 +644,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -656,7 +656,7 @@ pub struct C2RustUnnamed_35 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -664,28 +664,28 @@ pub struct C2RustUnnamed_36 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -693,14 +693,14 @@ pub struct C2RustUnnamed_40 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -708,7 +708,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -716,13 +716,13 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_44 {
pub string: C2RustUnnamed_45,
pub union Unnamed_44 {
pub string: Unnamed_45,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_45 {
pub struct Unnamed_45 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -756,22 +756,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -787,7 +787,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -795,35 +795,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -835,20 +835,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_44 {
string: C2RustUnnamed_45 {
output: Unnamed_44 {
string: Unnamed_45 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_43 {
buffer: Unnamed_43 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_42 {
raw_buffer: Unnamed_42 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -860,24 +860,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_41 {
states: Unnamed_41 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_40 {
events: Unnamed_40 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_39 {
indents: Unnamed_39 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_38 {
tag_directives: Unnamed_38 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -893,18 +893,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_37 {
anchor_data: Unnamed_37 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_36 {
tag_data: Unnamed_36 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_35 {
scalar_data: Unnamed_35 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -921,13 +921,13 @@ unsafe fn main_0(
document: 0 as *mut yaml_document_t,
};
let mut document: yaml_document_t = yaml_document_t {
nodes: C2RustUnnamed_23 {
nodes: Unnamed_23 {
start: 0 as *mut yaml_node_t,
end: 0 as *mut yaml_node_t,
top: 0 as *mut yaml_node_t,
},
version_directive: 0 as *mut yaml_version_directive_t,
tag_directives: C2RustUnnamed_22 {
tag_directives: Unnamed_22 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
},

View file

@ -172,59 +172,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -245,24 +245,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -270,7 +270,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -278,7 +278,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -289,43 +289,43 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub error: yaml_error_type_t,
}
pub type yaml_node_type_e = libc::c_uint;
@ -339,26 +339,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_18,
pub data: Unnamed_18,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_18 {
pub scalar: C2RustUnnamed_23,
pub sequence: C2RustUnnamed_21,
pub mapping: C2RustUnnamed_19,
pub union Unnamed_18 {
pub scalar: Unnamed_23,
pub sequence: Unnamed_21,
pub mapping: Unnamed_19,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub pairs: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub pairs: Unnamed_20,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -372,13 +372,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub items: C2RustUnnamed_22,
pub struct Unnamed_21 {
pub items: Unnamed_22,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -386,7 +386,7 @@ pub struct C2RustUnnamed_22 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -395,9 +395,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_25,
pub nodes: Unnamed_25,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_24,
pub tag_directives: Unnamed_24,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -405,13 +405,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -419,60 +419,60 @@ pub struct C2RustUnnamed_25 {
pub type yaml_document_t = yaml_document_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub error: yaml_error_type_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub error: yaml_error_type_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub error: yaml_error_type_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_33 {
pub struct Unnamed_33 {
pub error: yaml_error_type_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub error: yaml_error_type_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub error: yaml_error_type_t,
}
pub type yaml_read_handler_t = unsafe extern "C" fn(
@ -536,76 +536,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_45,
pub input: Unnamed_45,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_44,
pub buffer: Unnamed_44,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_43,
pub raw_buffer: Unnamed_43,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_42,
pub tokens: Unnamed_42,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_41,
pub indents: Unnamed_41,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_40,
pub states: C2RustUnnamed_39,
pub simple_keys: Unnamed_40,
pub states: Unnamed_39,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_38,
pub tag_directives: C2RustUnnamed_37,
pub aliases: C2RustUnnamed_36,
pub marks: Unnamed_38,
pub tag_directives: Unnamed_37,
pub aliases: Unnamed_36,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -613,7 +613,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -621,7 +621,7 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_44 {
pub struct Unnamed_44 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -629,13 +629,13 @@ pub struct C2RustUnnamed_44 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_45 {
pub string: C2RustUnnamed_46,
pub union Unnamed_45 {
pub string: Unnamed_46,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_46 {
pub struct Unnamed_46 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -681,20 +681,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_56,
pub buffer: C2RustUnnamed_55,
pub raw_buffer: C2RustUnnamed_54,
pub output: Unnamed_56,
pub buffer: Unnamed_55,
pub raw_buffer: Unnamed_54,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_53,
pub states: Unnamed_53,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_52,
pub indents: C2RustUnnamed_51,
pub tag_directives: C2RustUnnamed_50,
pub events: Unnamed_52,
pub indents: Unnamed_51,
pub tag_directives: Unnamed_50,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -706,9 +706,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_49,
pub tag_data: C2RustUnnamed_48,
pub scalar_data: C2RustUnnamed_47,
pub anchor_data: Unnamed_49,
pub tag_data: Unnamed_48,
pub scalar_data: Unnamed_47,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -717,7 +717,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_47 {
pub struct Unnamed_47 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -729,7 +729,7 @@ pub struct C2RustUnnamed_47 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_48 {
pub struct Unnamed_48 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -737,28 +737,28 @@ pub struct C2RustUnnamed_48 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_49 {
pub struct Unnamed_49 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_50 {
pub struct Unnamed_50 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_51 {
pub struct Unnamed_51 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_52 {
pub struct Unnamed_52 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -766,14 +766,14 @@ pub struct C2RustUnnamed_52 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_53 {
pub struct Unnamed_53 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_54 {
pub struct Unnamed_54 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -781,7 +781,7 @@ pub struct C2RustUnnamed_54 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_55 {
pub struct Unnamed_55 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -789,13 +789,13 @@ pub struct C2RustUnnamed_55 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_56 {
pub string: C2RustUnnamed_57,
pub union Unnamed_56 {
pub string: Unnamed_57,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_57 {
pub struct Unnamed_57 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -2369,7 +2369,7 @@ pub unsafe extern "C" fn yaml_document_start_event_initialize(
mut implicit: libc::c_int,
) -> libc::c_int {
let mut current_block: u64;
let mut context: C2RustUnnamed_17 = C2RustUnnamed_17 {
let mut context: Unnamed_17 = Unnamed_17 {
error: YAML_NO_ERROR,
};
let mut mark: yaml_mark_t = {
@ -2382,8 +2382,8 @@ pub unsafe extern "C" fn yaml_document_start_event_initialize(
};
let mut version_directive_copy: *mut yaml_version_directive_t = 0
as *mut yaml_version_directive_t;
let mut tag_directives_copy: C2RustUnnamed_16 = {
let mut init = C2RustUnnamed_16 {
let mut tag_directives_copy: Unnamed_16 = {
let mut init = Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -3141,11 +3141,11 @@ pub unsafe extern "C" fn yaml_document_initialize(
mut end_implicit: libc::c_int,
) -> libc::c_int {
let mut current_block: u64;
let mut context: C2RustUnnamed_28 = C2RustUnnamed_28 {
let mut context: Unnamed_28 = Unnamed_28 {
error: YAML_NO_ERROR,
};
let mut nodes: C2RustUnnamed_27 = {
let mut init = C2RustUnnamed_27 {
let mut nodes: Unnamed_27 = {
let mut init = Unnamed_27 {
start: 0 as *mut yaml_node_t,
end: 0 as *mut yaml_node_t,
top: 0 as *mut yaml_node_t,
@ -3154,8 +3154,8 @@ pub unsafe extern "C" fn yaml_document_initialize(
};
let mut version_directive_copy: *mut yaml_version_directive_t = 0
as *mut yaml_version_directive_t;
let mut tag_directives_copy: C2RustUnnamed_26 = {
let mut init = C2RustUnnamed_26 {
let mut tag_directives_copy: Unnamed_26 = {
let mut init = Unnamed_26 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -3527,7 +3527,7 @@ pub unsafe extern "C" fn yaml_document_add_scalar(
mut length: libc::c_int,
mut style: yaml_scalar_style_t,
) -> libc::c_int {
let mut context: C2RustUnnamed_29 = C2RustUnnamed_29 {
let mut context: Unnamed_29 = Unnamed_29 {
error: YAML_NO_ERROR,
};
let mut mark: yaml_mark_t = {
@ -3543,8 +3543,8 @@ pub unsafe extern "C" fn yaml_document_add_scalar(
let mut node: yaml_node_t = yaml_node_t {
type_0: YAML_NO_NODE,
tag: 0 as *mut yaml_char_t,
data: C2RustUnnamed_18 {
scalar: C2RustUnnamed_23 {
data: Unnamed_18 {
scalar: Unnamed_23 {
value: 0 as *mut yaml_char_t,
length: 0,
style: YAML_ANY_SCALAR_STYLE,
@ -3659,7 +3659,7 @@ pub unsafe extern "C" fn yaml_document_add_sequence(
mut tag: *const yaml_char_t,
mut style: yaml_sequence_style_t,
) -> libc::c_int {
let mut context: C2RustUnnamed_31 = C2RustUnnamed_31 {
let mut context: Unnamed_31 = Unnamed_31 {
error: YAML_NO_ERROR,
};
let mut mark: yaml_mark_t = {
@ -3671,8 +3671,8 @@ pub unsafe extern "C" fn yaml_document_add_sequence(
init
};
let mut tag_copy: *mut yaml_char_t = 0 as *mut yaml_char_t;
let mut items: C2RustUnnamed_30 = {
let mut init = C2RustUnnamed_30 {
let mut items: Unnamed_30 = {
let mut init = Unnamed_30 {
start: 0 as *mut yaml_node_item_t,
end: 0 as *mut yaml_node_item_t,
top: 0 as *mut yaml_node_item_t,
@ -3682,8 +3682,8 @@ pub unsafe extern "C" fn yaml_document_add_sequence(
let mut node: yaml_node_t = yaml_node_t {
type_0: YAML_NO_NODE,
tag: 0 as *mut yaml_char_t,
data: C2RustUnnamed_18 {
scalar: C2RustUnnamed_23 {
data: Unnamed_18 {
scalar: Unnamed_23 {
value: 0 as *mut yaml_char_t,
length: 0,
style: YAML_ANY_SCALAR_STYLE,
@ -3789,7 +3789,7 @@ pub unsafe extern "C" fn yaml_document_add_mapping(
mut tag: *const yaml_char_t,
mut style: yaml_mapping_style_t,
) -> libc::c_int {
let mut context: C2RustUnnamed_33 = C2RustUnnamed_33 {
let mut context: Unnamed_33 = Unnamed_33 {
error: YAML_NO_ERROR,
};
let mut mark: yaml_mark_t = {
@ -3801,8 +3801,8 @@ pub unsafe extern "C" fn yaml_document_add_mapping(
init
};
let mut tag_copy: *mut yaml_char_t = 0 as *mut yaml_char_t;
let mut pairs: C2RustUnnamed_32 = {
let mut init = C2RustUnnamed_32 {
let mut pairs: Unnamed_32 = {
let mut init = Unnamed_32 {
start: 0 as *mut yaml_node_pair_t,
end: 0 as *mut yaml_node_pair_t,
top: 0 as *mut yaml_node_pair_t,
@ -3812,8 +3812,8 @@ pub unsafe extern "C" fn yaml_document_add_mapping(
let mut node: yaml_node_t = yaml_node_t {
type_0: YAML_NO_NODE,
tag: 0 as *mut yaml_char_t,
data: C2RustUnnamed_18 {
scalar: C2RustUnnamed_23 {
data: Unnamed_18 {
scalar: Unnamed_23 {
value: 0 as *mut yaml_char_t,
length: 0,
style: YAML_ANY_SCALAR_STYLE,
@ -3919,7 +3919,7 @@ pub unsafe extern "C" fn yaml_document_append_sequence_item(
mut sequence: libc::c_int,
mut item: libc::c_int,
) -> libc::c_int {
let mut context: C2RustUnnamed_34 = C2RustUnnamed_34 {
let mut context: Unnamed_34 = Unnamed_34 {
error: YAML_NO_ERROR,
};
if !document.is_null() {} else {
@ -4036,7 +4036,7 @@ pub unsafe extern "C" fn yaml_document_append_mapping_pair(
mut key: libc::c_int,
mut value: libc::c_int,
) -> libc::c_int {
let mut context: C2RustUnnamed_35 = C2RustUnnamed_35 {
let mut context: Unnamed_35 = Unnamed_35 {
error: YAML_NO_ERROR,
};
let mut pair: yaml_node_pair_t = yaml_node_pair_t {

View file

@ -253,59 +253,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -326,24 +326,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -351,7 +351,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -359,7 +359,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -370,30 +370,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -408,26 +408,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -441,13 +441,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -455,7 +455,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -464,9 +464,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -474,13 +474,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -547,76 +547,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -624,7 +624,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -632,7 +632,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -640,13 +640,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -692,20 +692,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_44,
pub buffer: C2RustUnnamed_43,
pub raw_buffer: C2RustUnnamed_42,
pub output: Unnamed_44,
pub buffer: Unnamed_43,
pub raw_buffer: Unnamed_42,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_41,
pub states: Unnamed_41,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_40,
pub indents: C2RustUnnamed_39,
pub tag_directives: C2RustUnnamed_38,
pub events: Unnamed_40,
pub indents: Unnamed_39,
pub tag_directives: Unnamed_38,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -717,9 +717,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_37,
pub tag_data: C2RustUnnamed_36,
pub scalar_data: C2RustUnnamed_35,
pub anchor_data: Unnamed_37,
pub tag_data: Unnamed_36,
pub scalar_data: Unnamed_35,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -728,7 +728,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -740,7 +740,7 @@ pub struct C2RustUnnamed_35 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -748,28 +748,28 @@ pub struct C2RustUnnamed_36 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -777,14 +777,14 @@ pub struct C2RustUnnamed_40 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -792,7 +792,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -800,13 +800,13 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_44 {
pub string: C2RustUnnamed_45,
pub union Unnamed_44 {
pub string: Unnamed_45,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_45 {
pub struct Unnamed_45 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -1329,22 +1329,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1360,7 +1360,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -1368,35 +1368,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -1408,20 +1408,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_44 {
string: C2RustUnnamed_45 {
output: Unnamed_44 {
string: Unnamed_45 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_43 {
buffer: Unnamed_43 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_42 {
raw_buffer: Unnamed_42 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1433,24 +1433,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_41 {
states: Unnamed_41 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_40 {
events: Unnamed_40 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_39 {
indents: Unnamed_39 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_38 {
tag_directives: Unnamed_38 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -1466,18 +1466,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_37 {
anchor_data: Unnamed_37 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_36 {
tag_data: Unnamed_36 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_35 {
scalar_data: Unnamed_35 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -1494,13 +1494,13 @@ unsafe fn main_0(
document: 0 as *mut yaml_document_t,
};
let mut document: yaml_document_t = yaml_document_t {
nodes: C2RustUnnamed_23 {
nodes: Unnamed_23 {
start: 0 as *mut yaml_node_t,
end: 0 as *mut yaml_node_t,
top: 0 as *mut yaml_node_t,
},
version_directive: 0 as *mut yaml_version_directive_t,
tag_directives: C2RustUnnamed_22 {
tag_directives: Unnamed_22 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
},
@ -1520,13 +1520,13 @@ unsafe fn main_0(
let mut buffer: [libc::c_uchar; 65537] = [0; 65537];
let mut written: size_t = 0 as libc::c_int as size_t;
let mut documents: [yaml_document_t; 16] = [yaml_document_t {
nodes: C2RustUnnamed_23 {
nodes: Unnamed_23 {
start: 0 as *mut yaml_node_t,
end: 0 as *mut yaml_node_t,
top: 0 as *mut yaml_node_t,
},
version_directive: 0 as *mut yaml_version_directive_t,
tag_directives: C2RustUnnamed_22 {
tag_directives: Unnamed_22 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
},

View file

@ -255,59 +255,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -328,24 +328,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -353,7 +353,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -361,7 +361,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -372,30 +372,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -410,26 +410,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -443,13 +443,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -457,7 +457,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -466,9 +466,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -476,13 +476,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -549,76 +549,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -626,7 +626,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -634,7 +634,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -642,13 +642,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -694,20 +694,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_44,
pub buffer: C2RustUnnamed_43,
pub raw_buffer: C2RustUnnamed_42,
pub output: Unnamed_44,
pub buffer: Unnamed_43,
pub raw_buffer: Unnamed_42,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_41,
pub states: Unnamed_41,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_40,
pub indents: C2RustUnnamed_39,
pub tag_directives: C2RustUnnamed_38,
pub events: Unnamed_40,
pub indents: Unnamed_39,
pub tag_directives: Unnamed_38,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -719,9 +719,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_37,
pub tag_data: C2RustUnnamed_36,
pub scalar_data: C2RustUnnamed_35,
pub anchor_data: Unnamed_37,
pub tag_data: Unnamed_36,
pub scalar_data: Unnamed_35,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -730,7 +730,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -742,7 +742,7 @@ pub struct C2RustUnnamed_35 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -750,28 +750,28 @@ pub struct C2RustUnnamed_36 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_37 {
pub struct Unnamed_37 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_38 {
pub struct Unnamed_38 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_39 {
pub struct Unnamed_39 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_40 {
pub struct Unnamed_40 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -779,14 +779,14 @@ pub struct C2RustUnnamed_40 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_41 {
pub struct Unnamed_41 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_42 {
pub struct Unnamed_42 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -794,7 +794,7 @@ pub struct C2RustUnnamed_42 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_43 {
pub struct Unnamed_43 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -802,13 +802,13 @@ pub struct C2RustUnnamed_43 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_44 {
pub string: C2RustUnnamed_45,
pub union Unnamed_44 {
pub string: Unnamed_45,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_45 {
pub struct Unnamed_45 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -1243,22 +1243,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1274,7 +1274,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -1282,35 +1282,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -1322,20 +1322,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_44 {
string: C2RustUnnamed_45 {
output: Unnamed_44 {
string: Unnamed_45 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_43 {
buffer: Unnamed_43 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_42 {
raw_buffer: Unnamed_42 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1347,24 +1347,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_41 {
states: Unnamed_41 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_40 {
events: Unnamed_40 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_39 {
indents: Unnamed_39 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_38 {
tag_directives: Unnamed_38 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -1380,18 +1380,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_37 {
anchor_data: Unnamed_37 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_36 {
tag_data: Unnamed_36 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_35 {
scalar_data: Unnamed_35 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -1409,8 +1409,8 @@ unsafe fn main_0(
};
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1429,8 +1429,8 @@ unsafe fn main_0(
let mut written: size_t = 0 as libc::c_int as size_t;
let mut events: [yaml_event_t; 1024] = [yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -217,24 +217,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_7,
pub document_start: C2RustUnnamed_5,
pub document_end: C2RustUnnamed_4,
pub alias: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub sequence_start: C2RustUnnamed_1,
pub mapping_start: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_7,
pub document_start: Unnamed_5,
pub document_end: Unnamed_4,
pub alias: Unnamed_3,
pub scalar: Unnamed_2,
pub sequence_start: Unnamed_1,
pub mapping_start: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -242,7 +242,7 @@ pub struct C2RustUnnamed_0 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -250,7 +250,7 @@ pub struct C2RustUnnamed_1 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -261,30 +261,30 @@ pub struct C2RustUnnamed_2 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_6,
pub tag_directives: Unnamed_6,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_7 {
pub struct Unnamed_7 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -299,26 +299,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_8,
pub data: Unnamed_8,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_8 {
pub scalar: C2RustUnnamed_13,
pub sequence: C2RustUnnamed_11,
pub mapping: C2RustUnnamed_9,
pub union Unnamed_8 {
pub scalar: Unnamed_13,
pub sequence: Unnamed_11,
pub mapping: Unnamed_9,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub pairs: C2RustUnnamed_10,
pub struct Unnamed_9 {
pub pairs: Unnamed_10,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -332,13 +332,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub items: C2RustUnnamed_12,
pub struct Unnamed_11 {
pub items: Unnamed_12,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -346,7 +346,7 @@ pub struct C2RustUnnamed_12 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -355,9 +355,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_15,
pub nodes: Unnamed_15,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -365,13 +365,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -417,20 +417,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_25,
pub buffer: C2RustUnnamed_24,
pub raw_buffer: C2RustUnnamed_23,
pub output: Unnamed_25,
pub buffer: Unnamed_24,
pub raw_buffer: Unnamed_23,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_22,
pub states: Unnamed_22,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_21,
pub indents: C2RustUnnamed_20,
pub tag_directives: C2RustUnnamed_19,
pub events: Unnamed_21,
pub indents: Unnamed_20,
pub tag_directives: Unnamed_19,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -442,9 +442,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_18,
pub tag_data: C2RustUnnamed_17,
pub scalar_data: C2RustUnnamed_16,
pub anchor_data: Unnamed_18,
pub tag_data: Unnamed_17,
pub scalar_data: Unnamed_16,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -453,7 +453,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -465,7 +465,7 @@ pub struct C2RustUnnamed_16 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -473,28 +473,28 @@ pub struct C2RustUnnamed_17 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -502,14 +502,14 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -517,7 +517,7 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -525,13 +525,13 @@ pub struct C2RustUnnamed_24 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_25 {
pub string: C2RustUnnamed_26,
pub union Unnamed_25 {
pub string: Unnamed_26,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -548,20 +548,20 @@ unsafe fn main_0(
problem: 0 as *const libc::c_char,
write_handler: None,
write_handler_data: 0 as *mut libc::c_void,
output: C2RustUnnamed_25 {
string: C2RustUnnamed_26 {
output: Unnamed_25 {
string: Unnamed_26 {
buffer: 0 as *mut libc::c_uchar,
size: 0,
size_written: 0 as *mut size_t,
},
},
buffer: C2RustUnnamed_24 {
buffer: Unnamed_24 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
raw_buffer: C2RustUnnamed_23 {
raw_buffer: Unnamed_23 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -573,24 +573,24 @@ unsafe fn main_0(
best_width: 0,
unicode: 0,
line_break: YAML_ANY_BREAK,
states: C2RustUnnamed_22 {
states: Unnamed_22 {
start: 0 as *mut yaml_emitter_state_t,
end: 0 as *mut yaml_emitter_state_t,
top: 0 as *mut yaml_emitter_state_t,
},
state: YAML_EMIT_STREAM_START_STATE,
events: C2RustUnnamed_21 {
events: Unnamed_21 {
start: 0 as *mut yaml_event_t,
end: 0 as *mut yaml_event_t,
head: 0 as *mut yaml_event_t,
tail: 0 as *mut yaml_event_t,
},
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
tag_directives: C2RustUnnamed_19 {
tag_directives: Unnamed_19 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
@ -606,18 +606,18 @@ unsafe fn main_0(
whitespace: 0,
indention: 0,
open_ended: 0,
anchor_data: C2RustUnnamed_18 {
anchor_data: Unnamed_18 {
anchor: 0 as *mut yaml_char_t,
anchor_length: 0,
alias: 0,
},
tag_data: C2RustUnnamed_17 {
tag_data: Unnamed_17 {
handle: 0 as *mut yaml_char_t,
handle_length: 0,
suffix: 0 as *mut yaml_char_t,
suffix_length: 0,
},
scalar_data: C2RustUnnamed_16 {
scalar_data: Unnamed_16 {
value: 0 as *mut yaml_char_t,
length: 0,
multiline: 0,
@ -635,8 +635,8 @@ unsafe fn main_0(
};
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -155,59 +155,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -222,26 +222,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub scalar: C2RustUnnamed_12,
pub sequence: C2RustUnnamed_10,
pub mapping: C2RustUnnamed_8,
pub union Unnamed_7 {
pub scalar: Unnamed_12,
pub sequence: Unnamed_10,
pub mapping: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub pairs: C2RustUnnamed_9,
pub struct Unnamed_8 {
pub pairs: Unnamed_9,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -255,13 +255,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub items: C2RustUnnamed_11,
pub struct Unnamed_10 {
pub items: Unnamed_11,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -269,7 +269,7 @@ pub struct C2RustUnnamed_11 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -278,9 +278,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_14,
pub nodes: Unnamed_14,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_13,
pub tag_directives: Unnamed_13,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -288,13 +288,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -361,76 +361,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_24,
pub input: Unnamed_24,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_23,
pub buffer: Unnamed_23,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_22,
pub raw_buffer: Unnamed_22,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_21,
pub tokens: Unnamed_21,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_20,
pub indents: Unnamed_20,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_19,
pub states: C2RustUnnamed_18,
pub simple_keys: Unnamed_19,
pub states: Unnamed_18,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_17,
pub tag_directives: C2RustUnnamed_16,
pub aliases: C2RustUnnamed_15,
pub marks: Unnamed_17,
pub tag_directives: Unnamed_16,
pub aliases: Unnamed_15,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -438,7 +438,7 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -446,7 +446,7 @@ pub struct C2RustUnnamed_22 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -454,13 +454,13 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_24 {
pub string: C2RustUnnamed_25,
pub union Unnamed_24 {
pub string: Unnamed_25,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -499,22 +499,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_24 {
string: C2RustUnnamed_25 {
input: Unnamed_24 {
string: Unnamed_25 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_23 {
buffer: Unnamed_23 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_22 {
raw_buffer: Unnamed_22 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -530,7 +530,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_21 {
tokens: Unnamed_21 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -538,35 +538,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_19 {
simple_keys: Unnamed_19 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_18 {
states: Unnamed_18 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_17 {
marks: Unnamed_17 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_16 {
tag_directives: Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_15 {
aliases: Unnamed_15 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -574,13 +574,13 @@ unsafe fn main_0(
document: 0 as *mut yaml_document_t,
};
let mut document: yaml_document_t = yaml_document_t {
nodes: C2RustUnnamed_14 {
nodes: Unnamed_14 {
start: 0 as *mut yaml_node_t,
end: 0 as *mut yaml_node_t,
top: 0 as *mut yaml_node_t,
},
version_directive: 0 as *mut yaml_version_directive_t,
tag_directives: C2RustUnnamed_13 {
tag_directives: Unnamed_13 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
},

View file

@ -154,59 +154,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -227,24 +227,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -252,7 +252,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -260,7 +260,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -271,30 +271,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -309,26 +309,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -342,13 +342,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -356,7 +356,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -365,9 +365,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -375,13 +375,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -448,76 +448,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -525,7 +525,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -533,7 +533,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -541,13 +541,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -586,22 +586,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -617,7 +617,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -625,35 +625,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -662,8 +662,8 @@ unsafe fn main_0(
};
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -163,59 +163,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -236,24 +236,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -261,7 +261,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -269,7 +269,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -280,30 +280,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -318,26 +318,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -351,13 +351,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -365,7 +365,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -374,9 +374,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -384,13 +384,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -457,76 +457,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -534,7 +534,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -542,7 +542,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -550,13 +550,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -585,22 +585,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_33 {
string: C2RustUnnamed_34 {
input: Unnamed_33 {
string: Unnamed_34 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_32 {
buffer: Unnamed_32 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_31 {
raw_buffer: Unnamed_31 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -616,7 +616,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_30 {
tokens: Unnamed_30 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -624,35 +624,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_29 {
indents: Unnamed_29 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_28 {
simple_keys: Unnamed_28 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_27 {
states: Unnamed_27 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_26 {
marks: Unnamed_26 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_25 {
tag_directives: Unnamed_25 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_24 {
aliases: Unnamed_24 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -661,8 +661,8 @@ unsafe fn main_0(
};
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -154,59 +154,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -221,26 +221,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub scalar: C2RustUnnamed_12,
pub sequence: C2RustUnnamed_10,
pub mapping: C2RustUnnamed_8,
pub union Unnamed_7 {
pub scalar: Unnamed_12,
pub sequence: Unnamed_10,
pub mapping: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub pairs: C2RustUnnamed_9,
pub struct Unnamed_8 {
pub pairs: Unnamed_9,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -254,13 +254,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub items: C2RustUnnamed_11,
pub struct Unnamed_10 {
pub items: Unnamed_11,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -268,7 +268,7 @@ pub struct C2RustUnnamed_11 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -277,9 +277,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_14,
pub nodes: Unnamed_14,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_13,
pub tag_directives: Unnamed_13,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -287,13 +287,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -360,76 +360,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_24,
pub input: Unnamed_24,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_23,
pub buffer: Unnamed_23,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_22,
pub raw_buffer: Unnamed_22,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_21,
pub tokens: Unnamed_21,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_20,
pub indents: Unnamed_20,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_19,
pub states: C2RustUnnamed_18,
pub simple_keys: Unnamed_19,
pub states: Unnamed_18,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_17,
pub tag_directives: C2RustUnnamed_16,
pub aliases: C2RustUnnamed_15,
pub marks: Unnamed_17,
pub tag_directives: Unnamed_16,
pub aliases: Unnamed_15,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -437,7 +437,7 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -445,7 +445,7 @@ pub struct C2RustUnnamed_22 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -453,13 +453,13 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_24 {
pub string: C2RustUnnamed_25,
pub union Unnamed_24 {
pub string: Unnamed_25,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -498,22 +498,22 @@ unsafe fn main_0(
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_24 {
string: C2RustUnnamed_25 {
input: Unnamed_24 {
string: Unnamed_25 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_23 {
buffer: Unnamed_23 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_22 {
raw_buffer: Unnamed_22 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -529,7 +529,7 @@ unsafe fn main_0(
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_21 {
tokens: Unnamed_21 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -537,35 +537,35 @@ unsafe fn main_0(
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_19 {
simple_keys: Unnamed_19 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_18 {
states: Unnamed_18 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_17 {
marks: Unnamed_17 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_16 {
tag_directives: Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_15 {
aliases: Unnamed_15 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -574,8 +574,8 @@ unsafe fn main_0(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -142,24 +142,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_7,
pub document_start: C2RustUnnamed_5,
pub document_end: C2RustUnnamed_4,
pub alias: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub sequence_start: C2RustUnnamed_1,
pub mapping_start: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_7,
pub document_start: Unnamed_5,
pub document_end: Unnamed_4,
pub alias: Unnamed_3,
pub scalar: Unnamed_2,
pub sequence_start: Unnamed_1,
pub mapping_start: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -167,7 +167,7 @@ pub struct C2RustUnnamed_0 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -175,7 +175,7 @@ pub struct C2RustUnnamed_1 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -186,30 +186,30 @@ pub struct C2RustUnnamed_2 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_6,
pub tag_directives: Unnamed_6,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_7 {
pub struct Unnamed_7 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -224,26 +224,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_8,
pub data: Unnamed_8,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_8 {
pub scalar: C2RustUnnamed_13,
pub sequence: C2RustUnnamed_11,
pub mapping: C2RustUnnamed_9,
pub union Unnamed_8 {
pub scalar: Unnamed_13,
pub sequence: Unnamed_11,
pub mapping: Unnamed_9,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub pairs: C2RustUnnamed_10,
pub struct Unnamed_9 {
pub pairs: Unnamed_10,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -257,13 +257,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub items: C2RustUnnamed_12,
pub struct Unnamed_11 {
pub items: Unnamed_12,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -271,7 +271,7 @@ pub struct C2RustUnnamed_12 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -280,9 +280,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_15,
pub nodes: Unnamed_15,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -290,13 +290,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -342,20 +342,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_25,
pub buffer: C2RustUnnamed_24,
pub raw_buffer: C2RustUnnamed_23,
pub output: Unnamed_25,
pub buffer: Unnamed_24,
pub raw_buffer: Unnamed_23,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_22,
pub states: Unnamed_22,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_21,
pub indents: C2RustUnnamed_20,
pub tag_directives: C2RustUnnamed_19,
pub events: Unnamed_21,
pub indents: Unnamed_20,
pub tag_directives: Unnamed_19,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -367,9 +367,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_18,
pub tag_data: C2RustUnnamed_17,
pub scalar_data: C2RustUnnamed_16,
pub anchor_data: Unnamed_18,
pub tag_data: Unnamed_17,
pub scalar_data: Unnamed_16,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -378,7 +378,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -390,7 +390,7 @@ pub struct C2RustUnnamed_16 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -398,28 +398,28 @@ pub struct C2RustUnnamed_17 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -427,14 +427,14 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -442,7 +442,7 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -450,13 +450,13 @@ pub struct C2RustUnnamed_24 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_25 {
pub string: C2RustUnnamed_26,
pub union Unnamed_25 {
pub string: Unnamed_26,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,
@ -468,8 +468,8 @@ pub unsafe extern "C" fn yaml_emitter_open(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},
@ -537,8 +537,8 @@ pub unsafe extern "C" fn yaml_emitter_close(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},
@ -610,8 +610,8 @@ pub unsafe extern "C" fn yaml_emitter_dump(
let mut current_block: u64;
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},
@ -922,8 +922,8 @@ unsafe extern "C" fn yaml_emitter_dump_alias(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},
@ -964,8 +964,8 @@ unsafe extern "C" fn yaml_emitter_dump_scalar(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1020,8 +1020,8 @@ unsafe extern "C" fn yaml_emitter_dump_sequence(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1091,8 +1091,8 @@ unsafe extern "C" fn yaml_emitter_dump_mapping(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_7 {
data: Unnamed {
stream_start: Unnamed_7 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -150,24 +150,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_7,
pub document_start: C2RustUnnamed_5,
pub document_end: C2RustUnnamed_4,
pub alias: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub sequence_start: C2RustUnnamed_1,
pub mapping_start: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_7,
pub document_start: Unnamed_5,
pub document_end: Unnamed_4,
pub alias: Unnamed_3,
pub scalar: Unnamed_2,
pub sequence_start: Unnamed_1,
pub mapping_start: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -175,7 +175,7 @@ pub struct C2RustUnnamed_0 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -183,7 +183,7 @@ pub struct C2RustUnnamed_1 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -194,30 +194,30 @@ pub struct C2RustUnnamed_2 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_6,
pub tag_directives: Unnamed_6,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_7 {
pub struct Unnamed_7 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -232,26 +232,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_8,
pub data: Unnamed_8,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_8 {
pub scalar: C2RustUnnamed_13,
pub sequence: C2RustUnnamed_11,
pub mapping: C2RustUnnamed_9,
pub union Unnamed_8 {
pub scalar: Unnamed_13,
pub sequence: Unnamed_11,
pub mapping: Unnamed_9,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub pairs: C2RustUnnamed_10,
pub struct Unnamed_9 {
pub pairs: Unnamed_10,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -265,13 +265,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub items: C2RustUnnamed_12,
pub struct Unnamed_11 {
pub items: Unnamed_12,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -279,7 +279,7 @@ pub struct C2RustUnnamed_12 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -288,9 +288,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_15,
pub nodes: Unnamed_15,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -298,13 +298,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -350,20 +350,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_25,
pub buffer: C2RustUnnamed_24,
pub raw_buffer: C2RustUnnamed_23,
pub output: Unnamed_25,
pub buffer: Unnamed_24,
pub raw_buffer: Unnamed_23,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_22,
pub states: Unnamed_22,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_21,
pub indents: C2RustUnnamed_20,
pub tag_directives: C2RustUnnamed_19,
pub events: Unnamed_21,
pub indents: Unnamed_20,
pub tag_directives: Unnamed_19,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -375,9 +375,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_18,
pub tag_data: C2RustUnnamed_17,
pub scalar_data: C2RustUnnamed_16,
pub anchor_data: Unnamed_18,
pub tag_data: Unnamed_17,
pub scalar_data: Unnamed_16,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -386,7 +386,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -398,7 +398,7 @@ pub struct C2RustUnnamed_16 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -406,28 +406,28 @@ pub struct C2RustUnnamed_17 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -435,14 +435,14 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -450,7 +450,7 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -458,13 +458,13 @@ pub struct C2RustUnnamed_24 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_25 {
pub string: C2RustUnnamed_26,
pub union Unnamed_25 {
pub string: Unnamed_26,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,

View file

@ -152,59 +152,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -225,24 +225,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -250,7 +250,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -258,7 +258,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -269,30 +269,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -307,26 +307,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -340,13 +340,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -354,7 +354,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -363,9 +363,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -373,13 +373,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -446,76 +446,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -523,7 +523,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -531,7 +531,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -539,13 +539,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -560,14 +560,14 @@ pub struct loader_ctx {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -580,8 +580,8 @@ pub unsafe extern "C" fn yaml_parser_load(
let mut current_block: u64;
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},
@ -826,8 +826,8 @@ unsafe extern "C" fn yaml_parser_load_nodes(
) -> libc::c_int {
let mut event: yaml_event_t = yaml_event_t {
type_0: YAML_NO_EVENT,
data: C2RustUnnamed_7 {
stream_start: C2RustUnnamed_15 {
data: Unnamed_7 {
stream_start: Unnamed_15 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1133,8 +1133,8 @@ unsafe extern "C" fn yaml_parser_load_scalar(
let mut node: yaml_node_t = yaml_node_t {
type_0: YAML_NO_NODE,
tag: 0 as *mut yaml_char_t,
data: C2RustUnnamed_16 {
scalar: C2RustUnnamed_21 {
data: Unnamed_16 {
scalar: Unnamed_21 {
value: 0 as *mut yaml_char_t,
length: 0,
style: YAML_ANY_SCALAR_STYLE,
@ -1248,8 +1248,8 @@ unsafe extern "C" fn yaml_parser_load_sequence(
let mut node: yaml_node_t = yaml_node_t {
type_0: YAML_NO_NODE,
tag: 0 as *mut yaml_char_t,
data: C2RustUnnamed_16 {
scalar: C2RustUnnamed_21 {
data: Unnamed_16 {
scalar: Unnamed_21 {
value: 0 as *mut yaml_char_t,
length: 0,
style: YAML_ANY_SCALAR_STYLE,
@ -1266,8 +1266,8 @@ unsafe extern "C" fn yaml_parser_load_sequence(
column: 0,
},
};
let mut items: C2RustUnnamed_36 = {
let mut init = C2RustUnnamed_36 {
let mut items: Unnamed_36 = {
let mut init = Unnamed_36 {
start: 0 as *mut yaml_node_item_t,
end: 0 as *mut yaml_node_item_t,
top: 0 as *mut yaml_node_item_t,
@ -1471,8 +1471,8 @@ unsafe extern "C" fn yaml_parser_load_mapping(
let mut node: yaml_node_t = yaml_node_t {
type_0: YAML_NO_NODE,
tag: 0 as *mut yaml_char_t,
data: C2RustUnnamed_16 {
scalar: C2RustUnnamed_21 {
data: Unnamed_16 {
scalar: Unnamed_21 {
value: 0 as *mut yaml_char_t,
length: 0,
style: YAML_ANY_SCALAR_STYLE,
@ -1489,8 +1489,8 @@ unsafe extern "C" fn yaml_parser_load_mapping(
column: 0,
},
};
let mut pairs: C2RustUnnamed_35 = {
let mut init = C2RustUnnamed_35 {
let mut pairs: Unnamed_35 = {
let mut init = Unnamed_35 {
start: 0 as *mut yaml_node_pair_t,
end: 0 as *mut yaml_node_pair_t,
top: 0 as *mut yaml_node_pair_t,

View file

@ -154,59 +154,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -227,24 +227,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -252,7 +252,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -260,7 +260,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -271,30 +271,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -309,26 +309,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -342,13 +342,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -356,7 +356,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -365,9 +365,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -375,13 +375,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -448,76 +448,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -525,7 +525,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -533,7 +533,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -541,13 +541,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -555,13 +555,13 @@ pub struct C2RustUnnamed_34 {
pub type yaml_parser_t = yaml_parser_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_35 {
pub struct Unnamed_35 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_36 {
pub struct Unnamed_36 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
@ -761,8 +761,8 @@ unsafe extern "C" fn yaml_parser_parse_document_start(
let mut token: *mut yaml_token_t = 0 as *mut yaml_token_t;
let mut version_directive: *mut yaml_version_directive_t = 0
as *mut yaml_version_directive_t;
let mut tag_directives: C2RustUnnamed_35 = {
let mut init = C2RustUnnamed_35 {
let mut tag_directives: Unnamed_35 = {
let mut init = Unnamed_35 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
};
@ -2758,8 +2758,8 @@ unsafe extern "C" fn yaml_parser_process_directives(
as *mut yaml_tag_directive_t;
let mut version_directive: *mut yaml_version_directive_t = 0
as *mut yaml_version_directive_t;
let mut tag_directives: C2RustUnnamed_36 = {
let mut init = C2RustUnnamed_36 {
let mut tag_directives: Unnamed_36 = {
let mut init = Unnamed_36 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,

View file

@ -143,59 +143,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -210,26 +210,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub scalar: C2RustUnnamed_12,
pub sequence: C2RustUnnamed_10,
pub mapping: C2RustUnnamed_8,
pub union Unnamed_7 {
pub scalar: Unnamed_12,
pub sequence: Unnamed_10,
pub mapping: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub pairs: C2RustUnnamed_9,
pub struct Unnamed_8 {
pub pairs: Unnamed_9,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -243,13 +243,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub items: C2RustUnnamed_11,
pub struct Unnamed_10 {
pub items: Unnamed_11,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -257,7 +257,7 @@ pub struct C2RustUnnamed_11 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -266,9 +266,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_14,
pub nodes: Unnamed_14,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_13,
pub tag_directives: Unnamed_13,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -276,13 +276,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -349,76 +349,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_24,
pub input: Unnamed_24,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_23,
pub buffer: Unnamed_23,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_22,
pub raw_buffer: Unnamed_22,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_21,
pub tokens: Unnamed_21,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_20,
pub indents: Unnamed_20,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_19,
pub states: C2RustUnnamed_18,
pub simple_keys: Unnamed_19,
pub states: Unnamed_18,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_17,
pub tag_directives: C2RustUnnamed_16,
pub aliases: C2RustUnnamed_15,
pub marks: Unnamed_17,
pub tag_directives: Unnamed_16,
pub aliases: Unnamed_15,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -426,7 +426,7 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -434,7 +434,7 @@ pub struct C2RustUnnamed_22 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -442,13 +442,13 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_24 {
pub string: C2RustUnnamed_25,
pub union Unnamed_24 {
pub string: Unnamed_25,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,

View file

@ -181,59 +181,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -248,26 +248,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub scalar: C2RustUnnamed_12,
pub sequence: C2RustUnnamed_10,
pub mapping: C2RustUnnamed_8,
pub union Unnamed_7 {
pub scalar: Unnamed_12,
pub sequence: Unnamed_10,
pub mapping: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub pairs: C2RustUnnamed_9,
pub struct Unnamed_8 {
pub pairs: Unnamed_9,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -281,13 +281,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub items: C2RustUnnamed_11,
pub struct Unnamed_10 {
pub items: Unnamed_11,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -295,7 +295,7 @@ pub struct C2RustUnnamed_11 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -304,9 +304,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_14,
pub nodes: Unnamed_14,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_13,
pub tag_directives: Unnamed_13,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -314,13 +314,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -387,76 +387,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_24,
pub input: Unnamed_24,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_23,
pub buffer: Unnamed_23,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_22,
pub raw_buffer: Unnamed_22,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_21,
pub tokens: Unnamed_21,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_20,
pub indents: Unnamed_20,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_19,
pub states: C2RustUnnamed_18,
pub simple_keys: Unnamed_19,
pub states: Unnamed_18,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_17,
pub tag_directives: C2RustUnnamed_16,
pub aliases: C2RustUnnamed_15,
pub marks: Unnamed_17,
pub tag_directives: Unnamed_16,
pub aliases: Unnamed_15,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -464,7 +464,7 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -472,7 +472,7 @@ pub struct C2RustUnnamed_22 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -480,13 +480,13 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_24 {
pub string: C2RustUnnamed_25,
pub union Unnamed_24 {
pub string: Unnamed_25,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -1181,8 +1181,8 @@ unsafe extern "C" fn yaml_parser_roll_indent(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1319,8 +1319,8 @@ unsafe extern "C" fn yaml_parser_unroll_indent(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1398,8 +1398,8 @@ unsafe extern "C" fn yaml_parser_fetch_stream_start(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1478,8 +1478,8 @@ unsafe extern "C" fn yaml_parser_fetch_stream_end(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1544,8 +1544,8 @@ unsafe extern "C" fn yaml_parser_fetch_directive(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1612,8 +1612,8 @@ unsafe extern "C" fn yaml_parser_fetch_document_indicator(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1791,8 +1791,8 @@ unsafe extern "C" fn yaml_parser_fetch_flow_collection_start(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -1900,8 +1900,8 @@ unsafe extern "C" fn yaml_parser_fetch_flow_collection_end(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2008,8 +2008,8 @@ unsafe extern "C" fn yaml_parser_fetch_flow_entry(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2113,8 +2113,8 @@ unsafe extern "C" fn yaml_parser_fetch_block_entry(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2239,8 +2239,8 @@ unsafe extern "C" fn yaml_parser_fetch_key(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2365,8 +2365,8 @@ unsafe extern "C" fn yaml_parser_fetch_value(
};
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2551,8 +2551,8 @@ unsafe extern "C" fn yaml_parser_fetch_anchor(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2605,8 +2605,8 @@ unsafe extern "C" fn yaml_parser_fetch_tag(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2660,8 +2660,8 @@ unsafe extern "C" fn yaml_parser_fetch_block_scalar(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2715,8 +2715,8 @@ unsafe extern "C" fn yaml_parser_fetch_flow_scalar(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},
@ -2769,8 +2769,8 @@ unsafe extern "C" fn yaml_parser_fetch_plain_scalar(
) -> libc::c_int {
let mut token: yaml_token_t = yaml_token_t {
type_0: YAML_NO_TOKEN,
data: C2RustUnnamed {
stream_start: C2RustUnnamed_6 {
data: Unnamed {
stream_start: Unnamed_6 {
encoding: YAML_ANY_ENCODING,
},
},

View file

@ -128,24 +128,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_7,
pub document_start: C2RustUnnamed_5,
pub document_end: C2RustUnnamed_4,
pub alias: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub sequence_start: C2RustUnnamed_1,
pub mapping_start: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_7,
pub document_start: Unnamed_5,
pub document_end: Unnamed_4,
pub alias: Unnamed_3,
pub scalar: Unnamed_2,
pub sequence_start: Unnamed_1,
pub mapping_start: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -153,7 +153,7 @@ pub struct C2RustUnnamed_0 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -161,7 +161,7 @@ pub struct C2RustUnnamed_1 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -172,30 +172,30 @@ pub struct C2RustUnnamed_2 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_6,
pub tag_directives: Unnamed_6,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_7 {
pub struct Unnamed_7 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -210,26 +210,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_8,
pub data: Unnamed_8,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_8 {
pub scalar: C2RustUnnamed_13,
pub sequence: C2RustUnnamed_11,
pub mapping: C2RustUnnamed_9,
pub union Unnamed_8 {
pub scalar: Unnamed_13,
pub sequence: Unnamed_11,
pub mapping: Unnamed_9,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub pairs: C2RustUnnamed_10,
pub struct Unnamed_9 {
pub pairs: Unnamed_10,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -243,13 +243,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub items: C2RustUnnamed_12,
pub struct Unnamed_11 {
pub items: Unnamed_12,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -257,7 +257,7 @@ pub struct C2RustUnnamed_12 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -266,9 +266,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_15,
pub nodes: Unnamed_15,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -276,13 +276,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -328,20 +328,20 @@ pub struct yaml_emitter_s {
pub problem: *const libc::c_char,
pub write_handler: Option::<yaml_write_handler_t>,
pub write_handler_data: *mut libc::c_void,
pub output: C2RustUnnamed_25,
pub buffer: C2RustUnnamed_24,
pub raw_buffer: C2RustUnnamed_23,
pub output: Unnamed_25,
pub buffer: Unnamed_24,
pub raw_buffer: Unnamed_23,
pub encoding: yaml_encoding_t,
pub canonical: libc::c_int,
pub best_indent: libc::c_int,
pub best_width: libc::c_int,
pub unicode: libc::c_int,
pub line_break: yaml_break_t,
pub states: C2RustUnnamed_22,
pub states: Unnamed_22,
pub state: yaml_emitter_state_t,
pub events: C2RustUnnamed_21,
pub indents: C2RustUnnamed_20,
pub tag_directives: C2RustUnnamed_19,
pub events: Unnamed_21,
pub indents: Unnamed_20,
pub tag_directives: Unnamed_19,
pub indent: libc::c_int,
pub flow_level: libc::c_int,
pub root_context: libc::c_int,
@ -353,9 +353,9 @@ pub struct yaml_emitter_s {
pub whitespace: libc::c_int,
pub indention: libc::c_int,
pub open_ended: libc::c_int,
pub anchor_data: C2RustUnnamed_18,
pub tag_data: C2RustUnnamed_17,
pub scalar_data: C2RustUnnamed_16,
pub anchor_data: Unnamed_18,
pub tag_data: Unnamed_17,
pub scalar_data: Unnamed_16,
pub opened: libc::c_int,
pub closed: libc::c_int,
pub anchors: *mut yaml_anchors_t,
@ -364,7 +364,7 @@ pub struct yaml_emitter_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub multiline: libc::c_int,
@ -376,7 +376,7 @@ pub struct C2RustUnnamed_16 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub handle: *mut yaml_char_t,
pub handle_length: size_t,
pub suffix: *mut yaml_char_t,
@ -384,28 +384,28 @@ pub struct C2RustUnnamed_17 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub anchor: *mut yaml_char_t,
pub anchor_length: size_t,
pub alias: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_event_t,
pub end: *mut yaml_event_t,
pub head: *mut yaml_event_t,
@ -413,14 +413,14 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_emitter_state_t,
pub end: *mut yaml_emitter_state_t,
pub top: *mut yaml_emitter_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -428,7 +428,7 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -436,13 +436,13 @@ pub struct C2RustUnnamed_24 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_25 {
pub string: C2RustUnnamed_26,
pub union Unnamed_25 {
pub string: Unnamed_26,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub buffer: *mut libc::c_uchar,
pub size: size_t,
pub size_written: *mut size_t,

View file

@ -160,59 +160,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -227,26 +227,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub scalar: C2RustUnnamed_12,
pub sequence: C2RustUnnamed_10,
pub mapping: C2RustUnnamed_8,
pub union Unnamed_7 {
pub scalar: Unnamed_12,
pub sequence: Unnamed_10,
pub mapping: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub pairs: C2RustUnnamed_9,
pub struct Unnamed_8 {
pub pairs: Unnamed_9,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -260,13 +260,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub items: C2RustUnnamed_11,
pub struct Unnamed_10 {
pub items: Unnamed_11,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -274,7 +274,7 @@ pub struct C2RustUnnamed_11 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -283,9 +283,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_14,
pub nodes: Unnamed_14,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_13,
pub tag_directives: Unnamed_13,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -293,13 +293,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -366,76 +366,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_24,
pub input: Unnamed_24,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_23,
pub buffer: Unnamed_23,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_22,
pub raw_buffer: Unnamed_22,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_21,
pub tokens: Unnamed_21,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_20,
pub indents: Unnamed_20,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_19,
pub states: C2RustUnnamed_18,
pub simple_keys: Unnamed_19,
pub states: Unnamed_18,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_17,
pub tag_directives: C2RustUnnamed_16,
pub aliases: C2RustUnnamed_15,
pub marks: Unnamed_17,
pub tag_directives: Unnamed_16,
pub aliases: Unnamed_15,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_16 {
pub struct Unnamed_16 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub struct Unnamed_17 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub struct Unnamed_19 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -443,7 +443,7 @@ pub struct C2RustUnnamed_21 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -451,7 +451,7 @@ pub struct C2RustUnnamed_22 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -459,13 +459,13 @@ pub struct C2RustUnnamed_23 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_24 {
pub string: C2RustUnnamed_25,
pub union Unnamed_24 {
pub string: Unnamed_25,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,
@ -975,22 +975,22 @@ pub unsafe extern "C" fn check_utf8_sequences() -> libc::c_int {
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_24 {
string: C2RustUnnamed_25 {
input: Unnamed_24 {
string: Unnamed_25 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_23 {
buffer: Unnamed_23 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_22 {
raw_buffer: Unnamed_22 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1006,7 +1006,7 @@ pub unsafe extern "C" fn check_utf8_sequences() -> libc::c_int {
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_21 {
tokens: Unnamed_21 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -1014,35 +1014,35 @@ pub unsafe extern "C" fn check_utf8_sequences() -> libc::c_int {
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_19 {
simple_keys: Unnamed_19 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_18 {
states: Unnamed_18 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_17 {
marks: Unnamed_17 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_16 {
tag_directives: Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_15 {
aliases: Unnamed_15 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -1139,22 +1139,22 @@ pub unsafe extern "C" fn check_boms() -> libc::c_int {
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_24 {
string: C2RustUnnamed_25 {
input: Unnamed_24 {
string: Unnamed_25 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_23 {
buffer: Unnamed_23 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_22 {
raw_buffer: Unnamed_22 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1170,7 +1170,7 @@ pub unsafe extern "C" fn check_boms() -> libc::c_int {
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_21 {
tokens: Unnamed_21 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -1178,35 +1178,35 @@ pub unsafe extern "C" fn check_boms() -> libc::c_int {
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_19 {
simple_keys: Unnamed_19 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_18 {
states: Unnamed_18 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_17 {
marks: Unnamed_17 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_16 {
tag_directives: Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_15 {
aliases: Unnamed_15 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -1294,22 +1294,22 @@ pub unsafe extern "C" fn check_long_utf8() -> libc::c_int {
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_24 {
string: C2RustUnnamed_25 {
input: Unnamed_24 {
string: Unnamed_25 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_23 {
buffer: Unnamed_23 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_22 {
raw_buffer: Unnamed_22 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1325,7 +1325,7 @@ pub unsafe extern "C" fn check_long_utf8() -> libc::c_int {
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_21 {
tokens: Unnamed_21 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -1333,35 +1333,35 @@ pub unsafe extern "C" fn check_long_utf8() -> libc::c_int {
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_19 {
simple_keys: Unnamed_19 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_18 {
states: Unnamed_18 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_17 {
marks: Unnamed_17 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_16 {
tag_directives: Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_15 {
aliases: Unnamed_15 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,
@ -1530,22 +1530,22 @@ pub unsafe extern "C" fn check_long_utf16() -> libc::c_int {
},
read_handler: None,
read_handler_data: 0 as *mut libc::c_void,
input: C2RustUnnamed_24 {
string: C2RustUnnamed_25 {
input: Unnamed_24 {
string: Unnamed_25 {
start: 0 as *const libc::c_uchar,
end: 0 as *const libc::c_uchar,
current: 0 as *const libc::c_uchar,
},
},
eof: 0,
buffer: C2RustUnnamed_23 {
buffer: Unnamed_23 {
start: 0 as *mut yaml_char_t,
end: 0 as *mut yaml_char_t,
pointer: 0 as *mut yaml_char_t,
last: 0 as *mut yaml_char_t,
},
unread: 0,
raw_buffer: C2RustUnnamed_22 {
raw_buffer: Unnamed_22 {
start: 0 as *mut libc::c_uchar,
end: 0 as *mut libc::c_uchar,
pointer: 0 as *mut libc::c_uchar,
@ -1561,7 +1561,7 @@ pub unsafe extern "C" fn check_long_utf16() -> libc::c_int {
stream_start_produced: 0,
stream_end_produced: 0,
flow_level: 0,
tokens: C2RustUnnamed_21 {
tokens: Unnamed_21 {
start: 0 as *mut yaml_token_t,
end: 0 as *mut yaml_token_t,
head: 0 as *mut yaml_token_t,
@ -1569,35 +1569,35 @@ pub unsafe extern "C" fn check_long_utf16() -> libc::c_int {
},
tokens_parsed: 0,
token_available: 0,
indents: C2RustUnnamed_20 {
indents: Unnamed_20 {
start: 0 as *mut libc::c_int,
end: 0 as *mut libc::c_int,
top: 0 as *mut libc::c_int,
},
indent: 0,
simple_key_allowed: 0,
simple_keys: C2RustUnnamed_19 {
simple_keys: Unnamed_19 {
start: 0 as *mut yaml_simple_key_t,
end: 0 as *mut yaml_simple_key_t,
top: 0 as *mut yaml_simple_key_t,
},
states: C2RustUnnamed_18 {
states: Unnamed_18 {
start: 0 as *mut yaml_parser_state_t,
end: 0 as *mut yaml_parser_state_t,
top: 0 as *mut yaml_parser_state_t,
},
state: YAML_PARSE_STREAM_START_STATE,
marks: C2RustUnnamed_17 {
marks: Unnamed_17 {
start: 0 as *mut yaml_mark_t,
end: 0 as *mut yaml_mark_t,
top: 0 as *mut yaml_mark_t,
},
tag_directives: C2RustUnnamed_16 {
tag_directives: Unnamed_16 {
start: 0 as *mut yaml_tag_directive_t,
end: 0 as *mut yaml_tag_directive_t,
top: 0 as *mut yaml_tag_directive_t,
},
aliases: C2RustUnnamed_15 {
aliases: Unnamed_15 {
start: 0 as *mut yaml_alias_data_t,
end: 0 as *mut yaml_alias_data_t,
top: 0 as *mut yaml_alias_data_t,

View file

@ -148,59 +148,59 @@ pub type yaml_token_type_t = yaml_token_type_e;
#[repr(C)]
pub struct yaml_token_s {
pub type_0: yaml_token_type_t,
pub data: C2RustUnnamed,
pub data: Unnamed,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed {
pub stream_start: C2RustUnnamed_6,
pub alias: C2RustUnnamed_5,
pub anchor: C2RustUnnamed_4,
pub tag: C2RustUnnamed_3,
pub scalar: C2RustUnnamed_2,
pub version_directive: C2RustUnnamed_1,
pub tag_directive: C2RustUnnamed_0,
pub union Unnamed {
pub stream_start: Unnamed_6,
pub alias: Unnamed_5,
pub anchor: Unnamed_4,
pub tag: Unnamed_3,
pub scalar: Unnamed_2,
pub version_directive: Unnamed_1,
pub tag_directive: Unnamed_0,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_0 {
pub struct Unnamed_0 {
pub handle: *mut yaml_char_t,
pub prefix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_1 {
pub struct Unnamed_1 {
pub major: libc::c_int,
pub minor: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_2 {
pub struct Unnamed_2 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_3 {
pub struct Unnamed_3 {
pub handle: *mut yaml_char_t,
pub suffix: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_4 {
pub struct Unnamed_4 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_5 {
pub struct Unnamed_5 {
pub value: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_6 {
pub struct Unnamed_6 {
pub encoding: yaml_encoding_t,
}
pub type yaml_token_t = yaml_token_s;
@ -221,24 +221,24 @@ pub type yaml_event_type_t = yaml_event_type_e;
#[repr(C)]
pub struct yaml_event_s {
pub type_0: yaml_event_type_t,
pub data: C2RustUnnamed_7,
pub data: Unnamed_7,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_7 {
pub stream_start: C2RustUnnamed_15,
pub document_start: C2RustUnnamed_13,
pub document_end: C2RustUnnamed_12,
pub alias: C2RustUnnamed_11,
pub scalar: C2RustUnnamed_10,
pub sequence_start: C2RustUnnamed_9,
pub mapping_start: C2RustUnnamed_8,
pub union Unnamed_7 {
pub stream_start: Unnamed_15,
pub document_start: Unnamed_13,
pub document_end: Unnamed_12,
pub alias: Unnamed_11,
pub scalar: Unnamed_10,
pub sequence_start: Unnamed_9,
pub mapping_start: Unnamed_8,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_8 {
pub struct Unnamed_8 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -246,7 +246,7 @@ pub struct C2RustUnnamed_8 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_9 {
pub struct Unnamed_9 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub implicit: libc::c_int,
@ -254,7 +254,7 @@ pub struct C2RustUnnamed_9 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_10 {
pub struct Unnamed_10 {
pub anchor: *mut yaml_char_t,
pub tag: *mut yaml_char_t,
pub value: *mut yaml_char_t,
@ -265,30 +265,30 @@ pub struct C2RustUnnamed_10 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_11 {
pub struct Unnamed_11 {
pub anchor: *mut yaml_char_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_12 {
pub struct Unnamed_12 {
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_13 {
pub struct Unnamed_13 {
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_14,
pub tag_directives: Unnamed_14,
pub implicit: libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_14 {
pub struct Unnamed_14 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_15 {
pub struct Unnamed_15 {
pub encoding: yaml_encoding_t,
}
pub type yaml_event_t = yaml_event_s;
@ -303,26 +303,26 @@ pub type yaml_node_type_t = yaml_node_type_e;
pub struct yaml_node_s {
pub type_0: yaml_node_type_t,
pub tag: *mut yaml_char_t,
pub data: C2RustUnnamed_16,
pub data: Unnamed_16,
pub start_mark: yaml_mark_t,
pub end_mark: yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_16 {
pub scalar: C2RustUnnamed_21,
pub sequence: C2RustUnnamed_19,
pub mapping: C2RustUnnamed_17,
pub union Unnamed_16 {
pub scalar: Unnamed_21,
pub sequence: Unnamed_19,
pub mapping: Unnamed_17,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_17 {
pub pairs: C2RustUnnamed_18,
pub struct Unnamed_17 {
pub pairs: Unnamed_18,
pub style: yaml_mapping_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_18 {
pub struct Unnamed_18 {
pub start: *mut yaml_node_pair_t,
pub end: *mut yaml_node_pair_t,
pub top: *mut yaml_node_pair_t,
@ -336,13 +336,13 @@ pub struct yaml_node_pair_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_19 {
pub items: C2RustUnnamed_20,
pub struct Unnamed_19 {
pub items: Unnamed_20,
pub style: yaml_sequence_style_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_20 {
pub struct Unnamed_20 {
pub start: *mut yaml_node_item_t,
pub end: *mut yaml_node_item_t,
pub top: *mut yaml_node_item_t,
@ -350,7 +350,7 @@ pub struct C2RustUnnamed_20 {
pub type yaml_node_item_t = libc::c_int;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_21 {
pub struct Unnamed_21 {
pub value: *mut yaml_char_t,
pub length: size_t,
pub style: yaml_scalar_style_t,
@ -359,9 +359,9 @@ pub type yaml_node_t = yaml_node_s;
#[derive(Copy, Clone)]
#[repr(C)]
pub struct yaml_document_s {
pub nodes: C2RustUnnamed_23,
pub nodes: Unnamed_23,
pub version_directive: *mut yaml_version_directive_t,
pub tag_directives: C2RustUnnamed_22,
pub tag_directives: Unnamed_22,
pub start_implicit: libc::c_int,
pub end_implicit: libc::c_int,
pub start_mark: yaml_mark_t,
@ -369,13 +369,13 @@ pub struct yaml_document_s {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_22 {
pub struct Unnamed_22 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_23 {
pub struct Unnamed_23 {
pub start: *mut yaml_node_t,
pub end: *mut yaml_node_t,
pub top: *mut yaml_node_t,
@ -442,76 +442,76 @@ pub struct yaml_parser_s {
pub context_mark: yaml_mark_t,
pub read_handler: Option::<yaml_read_handler_t>,
pub read_handler_data: *mut libc::c_void,
pub input: C2RustUnnamed_33,
pub input: Unnamed_33,
pub eof: libc::c_int,
pub buffer: C2RustUnnamed_32,
pub buffer: Unnamed_32,
pub unread: size_t,
pub raw_buffer: C2RustUnnamed_31,
pub raw_buffer: Unnamed_31,
pub encoding: yaml_encoding_t,
pub offset: size_t,
pub mark: yaml_mark_t,
pub stream_start_produced: libc::c_int,
pub stream_end_produced: libc::c_int,
pub flow_level: libc::c_int,
pub tokens: C2RustUnnamed_30,
pub tokens: Unnamed_30,
pub tokens_parsed: size_t,
pub token_available: libc::c_int,
pub indents: C2RustUnnamed_29,
pub indents: Unnamed_29,
pub indent: libc::c_int,
pub simple_key_allowed: libc::c_int,
pub simple_keys: C2RustUnnamed_28,
pub states: C2RustUnnamed_27,
pub simple_keys: Unnamed_28,
pub states: Unnamed_27,
pub state: yaml_parser_state_t,
pub marks: C2RustUnnamed_26,
pub tag_directives: C2RustUnnamed_25,
pub aliases: C2RustUnnamed_24,
pub marks: Unnamed_26,
pub tag_directives: Unnamed_25,
pub aliases: Unnamed_24,
pub document: *mut yaml_document_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_24 {
pub struct Unnamed_24 {
pub start: *mut yaml_alias_data_t,
pub end: *mut yaml_alias_data_t,
pub top: *mut yaml_alias_data_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_25 {
pub struct Unnamed_25 {
pub start: *mut yaml_tag_directive_t,
pub end: *mut yaml_tag_directive_t,
pub top: *mut yaml_tag_directive_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_26 {
pub struct Unnamed_26 {
pub start: *mut yaml_mark_t,
pub end: *mut yaml_mark_t,
pub top: *mut yaml_mark_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_27 {
pub struct Unnamed_27 {
pub start: *mut yaml_parser_state_t,
pub end: *mut yaml_parser_state_t,
pub top: *mut yaml_parser_state_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_28 {
pub struct Unnamed_28 {
pub start: *mut yaml_simple_key_t,
pub end: *mut yaml_simple_key_t,
pub top: *mut yaml_simple_key_t,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_29 {
pub struct Unnamed_29 {
pub start: *mut libc::c_int,
pub end: *mut libc::c_int,
pub top: *mut libc::c_int,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_30 {
pub struct Unnamed_30 {
pub start: *mut yaml_token_t,
pub end: *mut yaml_token_t,
pub head: *mut yaml_token_t,
@ -519,7 +519,7 @@ pub struct C2RustUnnamed_30 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_31 {
pub struct Unnamed_31 {
pub start: *mut libc::c_uchar,
pub end: *mut libc::c_uchar,
pub pointer: *mut libc::c_uchar,
@ -527,7 +527,7 @@ pub struct C2RustUnnamed_31 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_32 {
pub struct Unnamed_32 {
pub start: *mut yaml_char_t,
pub end: *mut yaml_char_t,
pub pointer: *mut yaml_char_t,
@ -535,13 +535,13 @@ pub struct C2RustUnnamed_32 {
}
#[derive(Copy, Clone)]
#[repr(C)]
pub union C2RustUnnamed_33 {
pub string: C2RustUnnamed_34,
pub union Unnamed_33 {
pub string: Unnamed_34,
pub file: *mut FILE,
}
#[derive(Copy, Clone)]
#[repr(C)]
pub struct C2RustUnnamed_34 {
pub struct Unnamed_34 {
pub start: *const libc::c_uchar,
pub end: *const libc::c_uchar,
pub current: *const libc::c_uchar,