File tree 6 files changed +7
-6
lines changed
6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
//! This module contains type aliases for C's fixed-width integer types .
2
2
//!
3
3
//! These aliases are deprecated: use the Rust types instead.
4
+ use crate :: prelude:: * ;
4
5
5
6
#[ deprecated( since = "0.2.55" , note = "Use i8 instead." ) ]
6
7
pub type int8_t = i8 ;
Original file line number Diff line number Diff line change 4
4
//! when linking is explicitly requested.
5
5
#![ allow( non_camel_case_types) ]
6
6
#![ allow( non_snake_case) ]
7
-
8
7
// only supported on Rust > 1.59, so we can directly reexport c_void from core.
9
8
pub use core:: ffi:: c_void;
10
9
11
- use Option ;
10
+ use crate :: prelude :: * ;
12
11
13
12
pub type c_schar = i8 ;
14
13
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ s_no_extra_traits! {
26
26
}
27
27
}
28
28
29
- pub ( crate ) const _ALIGNBYTES: usize = crate :: mem:: size_of :: < c_long > ( ) - 1 ;
29
+ pub ( crate ) const _ALIGNBYTES: usize = mem:: size_of :: < c_long > ( ) - 1 ;
30
30
31
31
pub const PT_GETREGS : c_int = PT_FIRSTMACH + 0 ;
32
32
pub const PT_SETREGS : c_int = PT_FIRSTMACH + 1 ;
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ pub type c_long = i32;
4
4
pub type c_ulong = u32 ;
5
5
pub type c_char = u8 ;
6
6
7
- pub ( crate ) const _ALIGNBYTES: usize = crate :: mem:: size_of :: < c_double > ( ) - 1 ;
7
+ pub ( crate ) const _ALIGNBYTES: usize = mem:: size_of :: < c_double > ( ) - 1 ;
8
8
9
9
pub const _MAX_PAGE_SHIFT: u32 = 12 ;
Original file line number Diff line number Diff line change
1
+ use crate :: prelude:: * ;
2
+
1
3
pub type c_long = i64 ;
2
4
pub type c_ulong = u64 ;
3
5
pub type c_char = u8 ;
Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ s_no_extra_traits! {
82
82
83
83
pub struct sockaddr_storage {
84
84
pub ss_family: crate :: sa_family_t,
85
- __ss_padding:
86
- [ u8 ; 128 - crate :: mem:: size_of:: <sa_family_t>( ) - crate :: mem:: size_of:: <c_ulong>( ) ] ,
85
+ __ss_padding: [ u8 ; 128 - mem:: size_of:: <sa_family_t>( ) - mem:: size_of:: <c_ulong>( ) ] ,
87
86
__ss_align: c_ulong,
88
87
}
89
88
}
You can’t perform that action at this time.
0 commit comments