@@ -116,7 +116,7 @@ pub fn integer_type(
116116pub fn bitfield_unit ( ctx : & BindgenContext , layout : Layout ) -> TokenStream {
117117 let mut tokens = quote ! { } ;
118118
119- if ctx. options ( ) . enable_cxx_namespaces {
119+ if ctx. inputs ( ) . enable_cxx_namespaces {
120120 tokens. append_all ( quote ! { root:: } ) ;
121121 }
122122
@@ -138,16 +138,16 @@ pub mod ast_ty {
138138
139139 pub fn c_void ( ctx : & BindgenContext ) -> TokenStream {
140140 // ctypes_prefix takes precedence
141- match ctx. options ( ) . ctypes_prefix {
141+ match ctx. inputs ( ) . ctypes_prefix {
142142 Some ( ref prefix) => {
143143 let prefix = TokenStream :: from_str ( prefix. as_str ( ) ) . unwrap ( ) ;
144144 quote ! {
145145 #prefix:: c_void
146146 }
147147 }
148148 None => {
149- if ctx. options ( ) . use_core &&
150- ctx. options ( ) . rust_features . core_ffi_c_void
149+ if ctx. inputs ( ) . use_core &&
150+ ctx. inputs ( ) . rust_features ( ) . core_ffi_c_void
151151 {
152152 quote ! { :: core:: ffi:: c_void }
153153 } else {
@@ -159,7 +159,7 @@ pub mod ast_ty {
159159
160160 pub fn raw_type ( ctx : & BindgenContext , name : & str ) -> TokenStream {
161161 let ident = ctx. rust_ident_raw ( name) ;
162- match ctx. options ( ) . ctypes_prefix {
162+ match ctx. inputs ( ) . ctypes_prefix {
163163 Some ( ref prefix) => {
164164 let prefix = TokenStream :: from_str ( prefix. as_str ( ) ) . unwrap ( ) ;
165165 quote ! {
@@ -181,7 +181,7 @@ pub mod ast_ty {
181181 // often?
182182 //
183183 // Also, maybe this one shouldn't be the default?
184- match ( fk, ctx. options ( ) . convert_floats ) {
184+ match ( fk, ctx. inputs ( ) . convert_floats ) {
185185 ( FloatKind :: Float , true ) => quote ! { f32 } ,
186186 ( FloatKind :: Double , true ) => quote ! { f64 } ,
187187 ( FloatKind :: Float , false ) => raw_type ( ctx, "c_float" ) ,
@@ -208,7 +208,7 @@ pub mod ast_ty {
208208 }
209209 }
210210 ( FloatKind :: Float128 , _) => {
211- if ctx. options ( ) . rust_features . i128_and_u128 {
211+ if ctx. inputs ( ) . rust_features ( ) . i128_and_u128 {
212212 quote ! { u128 }
213213 } else {
214214 quote ! { [ u64 ; 2 ] }
0 commit comments