Skip to content

Commit b9bb58f

Browse files
committed
core: Add ctypes::c_char
1 parent 19b9a0d commit b9bb58f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcore/ctypes.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FIXME: Add a test that uses some native code to verify these sizes,
55
which are not obviously correct for all potential platforms.
66
*/
77

8-
export c_int, c_uint, long, longlong, unsigned, ulong, ulonglong;
8+
export c_char, c_int, c_uint, long, longlong, unsigned, ulong, ulonglong;
99
export intptr_t, uintptr_t;
1010
export uint32_t;
1111
export void::{};
@@ -16,6 +16,9 @@ export enum;
1616

1717
// PORT adapt to architecture
1818

19+
#[doc = "A signed integer with the same size as a C `char`."]
20+
type c_char = i8;
21+
1922
#[doc(
2023
brief = "A signed integer with the same size as a C `int`."
2124
)]

0 commit comments

Comments
 (0)