From 2b4ef64e45c7b6ebb9d05993c72e70f75ee25bb7 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Tue, 30 Dec 2025 12:54:28 +0800 Subject: feat(types): defined a type alias --- include/common/types.h | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'include') diff --git a/include/common/types.h b/include/common/types.h index 7403a54..8924699 100644 --- a/include/common/types.h +++ b/include/common/types.h @@ -1,22 +1,27 @@ #pragma once -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -typedef unsigned long long uint64_t; +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; +typedef unsigned long long uint64_t; -typedef signed char int8_t; -typedef signed short int16_t; -typedef signed int int32_t; -typedef signed long long int64_t; +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; +typedef signed long long int64_t; -typedef uint64_t size_t; -typedef uint64_t uintptr_t; - -typedef uint64_t uint64; -typedef uint32_t uint32; -typedef uint8_t uint8; +typedef uint64_t size_t; +typedef uint64_t uintptr_t; +typedef uint64_t uint64; +typedef uint32_t uint32; +typedef uint16_t uint16; +typedef uint8_t uint8; typedef unsigned int uint; typedef unsigned short ushort; -typedef unsigned char uchar; \ No newline at end of file +typedef unsigned char uchar; + +typedef int64_t int64; +typedef int32_t int32; +typedef int16_t int16; +typedef int8_t int8; \ No newline at end of file -- cgit v1.2.3