File tree 10 files changed +36
-71
lines changed 10 files changed +36
-71
lines changed Original file line number Diff line number Diff line change 1
- pub type int8_t = i8 ;
2
- pub type int16_t = i16 ;
3
- pub type int32_t = i32 ;
4
- pub type int64_t = i64 ;
5
- pub type uint8_t = u8 ;
6
- pub type uint16_t = u16 ;
7
- pub type uint32_t = u32 ;
8
- pub type uint64_t = u64 ;
9
-
10
1
pub type c_schar = i8 ;
11
2
pub type c_uchar = u8 ;
12
3
pub type c_short = i16 ;
Original file line number Diff line number Diff line change
1
+ //! This module contains type aliases for C's fixed-width integer types .
2
+ //!
3
+ //! These aliases are deprecated: use the Rust types instead.
4
+
5
+ pub type int8_t = i8 ;
6
+ pub type int16_t = i16 ;
7
+ pub type int32_t = i32 ;
8
+ pub type int64_t = i64 ;
9
+ pub type uint8_t = u8 ;
10
+ pub type uint16_t = u16 ;
11
+ pub type uint32_t = u32 ;
12
+ pub type uint64_t = u64 ;
Original file line number Diff line number Diff line change 5
5
6
6
// PUB_TYPE
7
7
8
- pub type int8_t = i8 ;
9
- pub type int16_t = i16 ;
10
- pub type int32_t = i32 ;
11
- pub type int64_t = i64 ;
12
- pub type uint8_t = u8 ;
13
- pub type uint16_t = u16 ;
14
- pub type uint32_t = u32 ;
15
- pub type uint64_t = u64 ;
16
-
17
8
pub type c_schar = i8 ;
18
9
pub type c_uchar = u8 ;
19
10
pub type c_short = i16 ;
Original file line number Diff line number Diff line change 13
13
// Ported by Colin Fink <[email protected] >
14
14
// and Stefan Lankes <[email protected] >
15
15
16
- pub type int8_t = i8 ;
17
- pub type int16_t = i16 ;
18
- pub type int32_t = i32 ;
19
- pub type int64_t = i64 ;
20
- pub type uint8_t = u8 ;
21
- pub type uint16_t = u16 ;
22
- pub type uint32_t = u32 ;
23
- pub type uint64_t = u64 ;
24
-
25
16
pub type c_schar = i8 ;
26
17
pub type c_uchar = u8 ;
27
18
pub type c_short = i16 ;
Original file line number Diff line number Diff line change @@ -90,27 +90,51 @@ cfg_if! {
90
90
91
91
cfg_if ! {
92
92
if #[ cfg( windows) ] {
93
+ mod fixed_width_ints;
94
+ pub use fixed_width_ints:: * ;
95
+
93
96
mod windows;
94
97
pub use windows:: * ;
95
98
} else if #[ cfg( target_os = "cloudabi" ) ] {
99
+ mod fixed_width_ints;
100
+ pub use fixed_width_ints:: * ;
101
+
96
102
mod cloudabi;
97
103
pub use cloudabi:: * ;
98
104
} else if #[ cfg( target_os = "fuchsia" ) ] {
105
+ mod fixed_width_ints;
106
+ pub use fixed_width_ints:: * ;
107
+
99
108
mod fuchsia;
100
109
pub use fuchsia:: * ;
101
110
} else if #[ cfg( target_os = "switch" ) ] {
111
+ mod fixed_width_ints;
112
+ pub use fixed_width_ints:: * ;
113
+
102
114
mod switch;
103
115
pub use switch:: * ;
104
116
} else if #[ cfg( unix) ] {
117
+ mod fixed_width_ints;
118
+ pub use fixed_width_ints:: * ;
119
+
105
120
mod unix;
106
121
pub use unix:: * ;
107
122
} else if #[ cfg( target_os = "hermit" ) ] {
123
+ mod fixed_width_ints;
124
+ pub use fixed_width_ints:: * ;
125
+
108
126
mod hermit;
109
127
pub use hermit:: * ;
110
128
} else if #[ cfg( all( target_env = "sgx" , target_vendor = "fortanix" ) ) ] {
129
+ mod fixed_width_ints;
130
+ pub use fixed_width_ints:: * ;
131
+
111
132
mod sgx;
112
133
pub use sgx:: * ;
113
134
} else if #[ cfg( any( target_env = "wasi" , target_os = "wasi" ) ) ] {
135
+ mod fixed_width_ints;
136
+ pub use fixed_width_ints:: * ;
137
+
114
138
mod wasi;
115
139
pub use wasi:: * ;
116
140
} else {
Original file line number Diff line number Diff line change 1
1
//! SGX C types definition
2
2
3
- pub type int8_t = i8 ;
4
- pub type int16_t = i16 ;
5
- pub type int32_t = i32 ;
6
- pub type int64_t = i64 ;
7
- pub type uint8_t = u8 ;
8
- pub type uint16_t = u16 ;
9
- pub type uint32_t = u32 ;
10
- pub type uint64_t = u64 ;
11
-
12
3
pub type c_schar = i8 ;
13
4
pub type c_uchar = u8 ;
14
5
pub type c_short = i16 ;
Original file line number Diff line number Diff line change 1
1
//! Switch C type definitions
2
2
3
- pub type int8_t = i8 ;
4
- pub type int16_t = i16 ;
5
- pub type int32_t = i32 ;
6
- pub type int64_t = i64 ;
7
- pub type uint8_t = u8 ;
8
- pub type uint16_t = u16 ;
9
- pub type uint32_t = u32 ;
10
- pub type uint64_t = u64 ;
11
-
12
3
pub type c_schar = i8 ;
13
4
pub type c_uchar = u8 ;
14
5
pub type c_short = i16 ;
Original file line number Diff line number Diff line change 3
3
//! More functions and definitions can be found in the more specific modules
4
4
//! according to the platform in question.
5
5
6
- pub type int8_t = i8 ;
7
- pub type int16_t = i16 ;
8
- pub type int32_t = i32 ;
9
- pub type int64_t = i64 ;
10
- pub type uint8_t = u8 ;
11
- pub type uint16_t = u16 ;
12
- pub type uint32_t = u32 ;
13
- pub type uint64_t = u64 ;
14
-
15
6
pub type c_schar = i8 ;
16
7
pub type c_uchar = u8 ;
17
8
pub type c_short = i16 ;
Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ pub type intptr_t = isize;
19
19
pub type uintptr_t = usize ;
20
20
pub type off_t = i64 ;
21
21
pub type pid_t = i32 ;
22
- pub type int8_t = i8 ;
23
- pub type uint8_t = u8 ;
24
- pub type int16_t = i16 ;
25
- pub type uint16_t = u16 ;
26
- pub type int32_t = i32 ;
27
- pub type uint32_t = u32 ;
28
- pub type int64_t = i64 ;
29
- pub type uint64_t = u64 ;
30
22
pub type clock_t = c_longlong ;
31
23
pub type time_t = c_longlong ;
32
24
pub type c_double = f64 ;
Original file line number Diff line number Diff line change 1
1
//! Windows CRT definitions
2
2
3
- pub type int8_t = i8 ;
4
- pub type int16_t = i16 ;
5
- pub type int32_t = i32 ;
6
- pub type int64_t = i64 ;
7
- pub type uint8_t = u8 ;
8
- pub type uint16_t = u16 ;
9
- pub type uint32_t = u32 ;
10
- pub type uint64_t = u64 ;
11
-
12
3
pub type c_schar = i8 ;
13
4
pub type c_uchar = u8 ;
14
5
pub type c_short = i16 ;
You can’t perform that action at this time.
0 commit comments