Added a c_char implementation

This commit is contained in:
Elichai Turkel 2019-06-12 10:38:30 -04:00
parent f7a4a7ef57
commit 8022757681
No known key found for this signature in database
GPG Key ID: 9383CDE9E8E66A7F
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ use core::fmt;
pub type c_int = i32;
pub type c_uchar = u8;
pub type c_uint = u32;
/// This might not match C's `c_char` exactly.
/// The way we use it makes it fine either way but this type shouldn't be used outside of the library.
pub type c_char = i8;
/// This is an exact copy of https://doc.rust-lang.org/core/ffi/enum.c_void.html