@@ -85,41 +85,6 @@ pub const SIZE_MAX: ::std::os::raw::c_int = -1;
85
85
pub const WINT_MIN : :: std:: os:: raw:: c_uint = 0 ;
86
86
pub const WINT_MAX : :: std:: os:: raw:: c_uint = 4294967295 ;
87
87
pub type wchar_t = :: std:: os:: raw:: c_int ;
88
- #[ repr( C ) ]
89
- #[ derive( Debug , Copy , Clone ) ]
90
- pub struct max_align_t {
91
- pub __clang_max_align_nonce1 : :: std:: os:: raw:: c_longlong ,
92
- pub __bindgen_padding_0 : u64 ,
93
- pub __clang_max_align_nonce2 : f64 ,
94
- }
95
- #[ test]
96
- fn bindgen_test_layout_max_align_t ( ) {
97
- assert_eq ! (
98
- :: std:: mem:: size_of:: <max_align_t>( ) ,
99
- 32usize ,
100
- concat!( "Size of: " , stringify!( max_align_t) )
101
- ) ;
102
- assert_eq ! (
103
- unsafe { & ( * ( 0 as * const max_align_t) ) . __clang_max_align_nonce1 as * const _ as usize } ,
104
- 0usize ,
105
- concat!(
106
- "Alignment of field: " ,
107
- stringify!( max_align_t) ,
108
- "::" ,
109
- stringify!( __clang_max_align_nonce1)
110
- )
111
- ) ;
112
- assert_eq ! (
113
- unsafe { & ( * ( 0 as * const max_align_t) ) . __clang_max_align_nonce2 as * const _ as usize } ,
114
- 16usize ,
115
- concat!(
116
- "Alignment of field: " ,
117
- stringify!( max_align_t) ,
118
- "::" ,
119
- stringify!( __clang_max_align_nonce2)
120
- )
121
- ) ;
122
- }
123
88
pub type __u_char = :: std:: os:: raw:: c_uchar ;
124
89
pub type __u_short = :: std:: os:: raw:: c_ushort ;
125
90
pub type __u_int = :: std:: os:: raw:: c_uint ;
@@ -220,18 +185,22 @@ pub type uint_fast32_t = ::std::os::raw::c_ulong;
220
185
pub type uint_fast64_t = :: std:: os:: raw:: c_ulong ;
221
186
pub type intmax_t = __intmax_t ;
222
187
pub type uintmax_t = __uintmax_t ;
223
- pub const blake2s_constant_BLAKE2S_BLOCKBYTES: blake2s_constant = 64 ;
224
- pub const blake2s_constant_BLAKE2S_OUTBYTES: blake2s_constant = 32 ;
225
- pub const blake2s_constant_BLAKE2S_KEYBYTES: blake2s_constant = 32 ;
226
- pub const blake2s_constant_BLAKE2S_SALTBYTES: blake2s_constant = 8 ;
227
- pub const blake2s_constant_BLAKE2S_PERSONALBYTES: blake2s_constant = 8 ;
228
- pub type blake2s_constant = :: std:: os:: raw:: c_uint ;
229
- pub const blake2b_constant_BLAKE2B_BLOCKBYTES: blake2b_constant = 128 ;
230
- pub const blake2b_constant_BLAKE2B_OUTBYTES: blake2b_constant = 64 ;
231
- pub const blake2b_constant_BLAKE2B_KEYBYTES: blake2b_constant = 64 ;
232
- pub const blake2b_constant_BLAKE2B_SALTBYTES: blake2b_constant = 16 ;
233
- pub const blake2b_constant_BLAKE2B_PERSONALBYTES: blake2b_constant = 16 ;
234
- pub type blake2b_constant = :: std:: os:: raw:: c_uint ;
188
+ pub mod blake2s_constant {
189
+ pub type Type = :: std:: os:: raw:: c_uint ;
190
+ pub const BLAKE2S_BLOCKBYTES : Type = 64 ;
191
+ pub const BLAKE2S_OUTBYTES : Type = 32 ;
192
+ pub const BLAKE2S_KEYBYTES : Type = 32 ;
193
+ pub const BLAKE2S_SALTBYTES : Type = 8 ;
194
+ pub const BLAKE2S_PERSONALBYTES : Type = 8 ;
195
+ }
196
+ pub mod blake2b_constant {
197
+ pub type Type = :: std:: os:: raw:: c_uint ;
198
+ pub const BLAKE2B_BLOCKBYTES : Type = 128 ;
199
+ pub const BLAKE2B_OUTBYTES : Type = 64 ;
200
+ pub const BLAKE2B_KEYBYTES : Type = 64 ;
201
+ pub const BLAKE2B_SALTBYTES : Type = 16 ;
202
+ pub const BLAKE2B_PERSONALBYTES : Type = 16 ;
203
+ }
235
204
#[ repr( C ) ]
236
205
#[ derive( Copy , Clone ) ]
237
206
pub struct blake2s_state__ {
0 commit comments