From b9bb58f104400294d00cb821dfe15c19ed1b641d Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 30 Jan 2012 22:08:57 -0800 Subject: [PATCH] core: Add ctypes::c_char --- src/libcore/ctypes.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcore/ctypes.rs b/src/libcore/ctypes.rs index f583bb646d06..249318674d3a 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`." )]