about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-30 22:08:57 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-30 22:08:57 -0800
commitb9bb58f104400294d00cb821dfe15c19ed1b641d (patch)
tree1f9b8a3d26cd869837ab41006f1bd6c37915d710
parent19b9a0d363ff91d0b25800c91aaaf667a6a5effe (diff)
downloadrust-b9bb58f104400294d00cb821dfe15c19ed1b641d.tar.gz
rust-b9bb58f104400294d00cb821dfe15c19ed1b641d.zip
core: Add ctypes::c_char
-rw-r--r--src/libcore/ctypes.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcore/ctypes.rs b/src/libcore/ctypes.rs
index f583bb646d0..249318674d3 100644
--- a/src/libcore/ctypes.rs
+++ b/src/libcore/ctypes.rs
@@ -5,7 +5,7 @@ FIXME: Add a test that uses some native code to verify these sizes,
 which are not obviously correct for all potential platforms.
 */
 
-export c_int, c_uint, long, longlong, unsigned, ulong, ulonglong;
+export c_char, c_int, c_uint, long, longlong, unsigned, ulong, ulonglong;
 export intptr_t, uintptr_t;
 export uint32_t;
 export void::{};
@@ -16,6 +16,9 @@ export enum;
 
 // PORT adapt to architecture
 
+#[doc = "A signed integer with the same size as a C `char`."]
+type c_char = i8;
+
 #[doc(
   brief = "A signed integer with the same size as a C `int`."
 )]