From 5b16888d9d65a72f4096a6b6c9d36835ca9caef0 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sat, 25 May 2024 17:54:53 +0200 Subject: [PATCH] gint: provide short type definitions (i8, u8, etc.) --- include/gint/defs/types.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/gint/defs/types.h b/include/gint/defs/types.h index 1c37a24..139b211 100644 --- a/include/gint/defs/types.h +++ b/include/gint/defs/types.h @@ -21,6 +21,20 @@ /* Fixed-width types for bit fields are quite meaningless */ typedef unsigned int uint; +//--- +// Short types +//--- + +typedef unsigned int uint; +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; + //--- // Structure elements //----