Skip to content

Commit 684b243

Browse files
phekitgross35
authored andcommittedFeb 19, 2025
Copy definitions from core::ffi and centralize them
(backport <rust-lang#4256>) (cherry picked from commit 95446f4)
1 parent b2823f3 commit 684b243

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+87
-400
lines changed
 

‎src/fuchsia/mod.rs

-13
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ use crate::prelude::*;
77

88
// PUB_TYPE
99

10-
pub type c_schar = i8;
11-
pub type c_uchar = u8;
12-
pub type c_short = i16;
13-
pub type c_ushort = u16;
14-
pub type c_int = i32;
15-
pub type c_uint = u32;
16-
pub type c_float = f32;
17-
pub type c_double = f64;
18-
pub type c_longlong = i64;
19-
pub type c_ulonglong = u64;
2010
pub type intmax_t = i64;
2111
pub type uintmax_t = u64;
2212

@@ -88,9 +78,6 @@ pub type fsblkcnt_t = c_ulonglong;
8878
pub type fsfilcnt_t = c_ulonglong;
8979
pub type rlim_t = c_ulonglong;
9080

91-
pub type c_long = i64;
92-
pub type c_ulong = u64;
93-
9481
// FIXME(fuchsia): why are these uninhabited types? that seems... wrong?
9582
// Presumably these should be `()` or an `extern type` (when that stabilizes).
9683
#[cfg_attr(feature = "extra_traits", derive(Debug))]

‎src/hermit.rs

-13
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,11 @@
22
33
use crate::prelude::*;
44

5-
pub type c_schar = i8;
6-
pub type c_uchar = u8;
7-
pub type c_short = i16;
8-
pub type c_ushort = u16;
9-
pub type c_int = i32;
10-
pub type c_uint = u32;
11-
pub type c_long = i64;
12-
pub type c_ulong = u64;
13-
pub type c_longlong = i64;
14-
pub type c_ulonglong = u64;
155
pub type intmax_t = i64;
166
pub type uintmax_t = u64;
177
pub type intptr_t = isize;
188
pub type uintptr_t = usize;
199

20-
pub type c_float = f32;
21-
pub type c_double = f64;
22-
2310
pub type size_t = usize;
2411
pub type ssize_t = isize;
2512
pub type ptrdiff_t = isize;

0 commit comments

Comments
 (0)