[−][src]Crate chlorine
This just provides the numeric C types, for basic FFI purposes.
- If you're on Windows it just gives the necessary aliases.
- If you're on not-Windows it re-exports from
libc
.
You might think "why not just always link to libc
?", but on Windows that
means that your resulting binary is less portable for no reason. Either the
user's machine will need to have the visual studio redistributable DLL
installed or you'll have to build the binary with a static linked CRT
configured. Either of these options are silly if all that you want is some
type declarations and you're not even calling any functions.
FAQ
- Question: Lokathor, aren't you just being totally crazy?
- Yes.
Macros
pick | Does all our conditional compilation selection. |
Enums
c_void | Equivalent to C's |
Type Definitions
c_char | |
c_double | |
c_float | |
c_int | |
c_long | |
c_longlong | |
c_schar | |
c_short | |
c_uchar | |
c_uint | |
c_ulong | |
c_ulonglong | |
c_ushort |