Add types.h for useful type aliases

So simple it's not got any functions.
This commit is contained in:
2025-04-09 22:55:04 +01:00
parent 4218fa3a2c
commit c93d358b6a

30
types.h Normal file
View File

@@ -0,0 +1,30 @@
/* Copyright (C) 2025 Aryadev Chavali
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the Unlicense for details.
* You may distribute and modify this code under the terms of the Unlicense,
* which you should have received a copy of along with this program. If not,
* please go to <https://unlicense.org/>.
* Created: 2025-04-09
* Description: Some basic type definitions to make life easier.
*/
#ifndef TYPES_H
#define TYPES_H
#include <stdint.h>
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;
#endif