1 | //! Compatibility module for C platform-specific types. Use [`core::ffi`] instead. |
2 | |
3 | #![stable (feature = "raw_os" , since = "1.1.0" )] |
4 | |
5 | #[cfg (test)] |
6 | mod tests; |
7 | |
8 | macro_rules! alias_core_ffi { |
9 | ($($t:ident)*) => {$( |
10 | #[stable(feature = "raw_os" , since = "1.1.0" )] |
11 | #[doc = include_str!(concat!("../../../../core/src/ffi/" , stringify!($t), ".md" ))] |
12 | #[doc(cfg(all()))] |
13 | pub type $t = core::ffi::$t; |
14 | )*} |
15 | } |
16 | |
17 | alias_core_ffi! { |
18 | c_char c_schar c_uchar |
19 | c_short c_ushort |
20 | c_int c_uint |
21 | c_long c_ulong |
22 | c_longlong c_ulonglong |
23 | c_float |
24 | c_double |
25 | c_void |
26 | } |
27 | |