xref: /rust-libc-0.2.174/src/switch.rs (revision 7cbbfedb)
1 //! Switch C type definitions
2 
3 pub type c_schar = i8;
4 pub type c_uchar = u8;
5 pub type c_short = i16;
6 pub type c_ushort = u16;
7 pub type c_int = i32;
8 pub type c_uint = u32;
9 pub type c_float = f32;
10 pub type c_double = f64;
11 pub type c_longlong = i64;
12 pub type c_ulonglong = u64;
13 pub type intmax_t = i64;
14 pub type uintmax_t = u64;
15 
16 pub type size_t = usize;
17 pub type ptrdiff_t = isize;
18 pub type intptr_t = isize;
19 pub type uintptr_t = usize;
20 pub type ssize_t = isize;
21 
22 pub type off_t = i64;
23 pub type c_long = i64;
24 pub type c_ulong = u64;
25 pub type wchar_t = u32;
26 
27 pub const INT_MIN: c_int = -2147483648;
28 pub const INT_MAX: c_int = 2147483647;
29