@@ -33,7 +33,7 @@ pub type size_t = usize;
3333#[derive ()]
3434#[repr (C )]
3535pub struct vastruct < ' a> {
36- pub args : ::core ::ffi ::VaListImpl < ' a>,
36+ pub args : ::core ::ffi ::VaList < ' a>,
3737}
3838#[unsafe (no_mangle )]
3939pub unsafe extern " C" fn call_printf () {
@@ -48,20 +48,20 @@ pub unsafe extern "C" fn my_vprintf(
4848 mut format : * const ::core ::ffi ::c_char ,
4949 mut ap : ::core ::ffi ::VaList ,
5050) {
51- vprintf (format , ap .as_va_list ());
51+ vprintf (format , ap .clone ());
5252}
5353#[unsafe (no_mangle )]
5454pub unsafe extern " C" fn call_vprintf (
5555 mut format : * const ::core ::ffi ::c_char ,
5656 mut c2rust_args : ...
5757) {
58- let mut ap: ::core ::ffi ::VaListImpl ;
58+ let mut ap: ::core ::ffi ::VaList ;
5959 ap = c2rust_args .clone ();
60- my_vprintf (format , ap .as_va_list ());
60+ my_vprintf (format , ap .clone ());
6161}
6262#[unsafe (no_mangle )]
6363pub unsafe extern " C" fn my_printf (mut fmt : * const ::core ::ffi ::c_char , mut c2rust_args : ... ) {
64- let mut ap: ::core ::ffi ::VaListImpl ;
64+ let mut ap: ::core ::ffi ::VaList ;
6565 ap = c2rust_args .clone ();
6666 while * fmt != 0 {
6767 match * fmt as ::core ::ffi ::c_int {
@@ -100,12 +100,12 @@ pub unsafe extern "C" fn my_printf(mut fmt: *const ::core::ffi::c_char, mut c2ru
100100}
101101#[unsafe (no_mangle )]
102102pub unsafe extern " C" fn simple_vacopy (mut fmt : * const ::core ::ffi ::c_char , mut c2rust_args : ... ) {
103- let mut ap: ::core ::ffi ::VaListImpl ;
104- let mut aq: ::core ::ffi ::VaListImpl ;
103+ let mut ap: ::core ::ffi ::VaList ;
104+ let mut aq: ::core ::ffi ::VaList ;
105105 ap = c2rust_args .clone ();
106106 aq = ap .clone ();
107- vprintf (fmt , ap .as_va_list ());
108- vprintf (fmt , aq .as_va_list ());
107+ vprintf (fmt , ap .clone ());
108+ vprintf (fmt , aq .clone ());
109109}
110110#[unsafe (no_mangle )]
111111pub unsafe extern " C" fn valist_struct_member (
@@ -120,8 +120,8 @@ pub unsafe extern "C" fn valist_struct_member(
120120 };
121121 a .args = c2rust_args .clone ();
122122 b .args = a .args .clone ();
123- vprintf (fmt , a .args .as_va_list ());
124- vprintf (fmt , b .args .as_va_list ());
123+ vprintf (fmt , a .args .clone ());
124+ vprintf (fmt , b .args .clone ());
125125}
126126#[unsafe (no_mangle )]
127127pub unsafe extern " C" fn valist_struct_pointer_member (
@@ -138,27 +138,27 @@ pub unsafe extern "C" fn valist_struct_pointer_member(
138138 let mut q: *mut vastruct = & raw mut b ;
139139 (* p ).args = c2rust_args .clone ();
140140 (* q ).args = (* p ).args .clone ();
141- vprintf (fmt , (* p ).args .as_va_list ());
142- vprintf (fmt , (* q ).args .as_va_list ());
141+ vprintf (fmt , (* p ).args .clone ());
142+ vprintf (fmt , (* q ).args .clone ());
143143}
144144#[unsafe (no_mangle )]
145145pub unsafe extern " C" fn restart_valist (mut fmt : * const ::core ::ffi ::c_char , mut c2rust_args : ... ) {
146- let mut ap: ::core ::ffi ::VaListImpl ;
146+ let mut ap: ::core ::ffi ::VaList ;
147147 ap = c2rust_args .clone ();
148- vprintf (fmt , ap .as_va_list ());
148+ vprintf (fmt , ap .clone ());
149149 ap = c2rust_args .clone ();
150- vprintf (fmt , ap .as_va_list ());
150+ vprintf (fmt , ap .clone ());
151151}
152152#[unsafe (no_mangle )]
153- pub unsafe extern " C" fn print_int (mut ap : * mut ::core ::ffi ::VaListImpl ) {
153+ pub unsafe extern " C" fn print_int (mut ap : * mut ::core ::ffi ::VaList ) {
154154 printf (
155155 b " %d\0 " .as_ptr () as *const ::core ::ffi ::c_char ,
156156 (* ap ).arg ::< ::core ::ffi ::c_int > (),
157157 );
158158}
159159#[unsafe (no_mangle )]
160160pub unsafe extern " C" fn borrowed_valist (mut count : size_t , mut c2rust_args : ... ) {
161- let mut ap: ::core ::ffi ::VaListImpl ;
161+ let mut ap: ::core ::ffi ::VaList ;
162162 ap = c2rust_args .clone ();
163163 while count > 0 as size_t {
164164 print_int(&raw mut ap );
0 commit comments