From addf61ee7a299c063bd180f50d0082ba5e2e69a3 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 20 Mar 2016 03:38:12 -0400 Subject: [PATCH] Add typedefs for standard types Rust style integer type names. So much easier to write out... --- src/kstd/Types.hh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/kstd/Types.hh diff --git a/src/kstd/Types.hh b/src/kstd/Types.hh new file mode 100644 index 0000000..28865e8 --- /dev/null +++ b/src/kstd/Types.hh @@ -0,0 +1,31 @@ +/* Types.hh + * vim: set tw=80: + * Eryn Wells + */ +/** + * File description. + */ + +#ifndef __KSTD_TYPES_HH__ +#define __KSTD_TYPES_HH__ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef __UINT8_TYPE__ u8; +typedef __INT8_TYPE__ i8; +typedef __UINT16_TYPE__ u16; +typedef __INT16_TYPE__ i16; +typedef __UINT32_TYPE__ u32; +typedef __INT32_TYPE__ i32; +typedef __UINT64_TYPE__ u64; +typedef __INT64_TYPE__ i64; + +typedef __SIZE_TYPE__ usize; + +#ifdef __cplusplus +} +#endif + +#endif /* __KSTD_TYPES_HH__ */