diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-15 01:34:42 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-15 01:34:42 +0100 |
commit | ca2e9c7083347366402991531d236f35d6726450 (patch) | |
tree | 0cd77959dd1db87e23f2aef247069e22e5e1f8d7 /src | |
parent | 7cf9160e3f2136f301f08993bda47f0abe43cb4a (diff) | |
download | ovm-ca2e9c7083347366402991531d236f35d6726450.tar.gz ovm-ca2e9c7083347366402991531d236f35d6726450.tar.bz2 ovm-ca2e9c7083347366402991531d236f35d6726450.zip |
Added some type aliases
Nicer to refer to a byte as "byte" rather than "uint8_t"
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -10,8 +10,19 @@ * Description: Entrypoint to program */ +#include <stdint.h> #include <stdio.h> +typedef uint64_t u64; +typedef uint32_t u32; +typedef int32_t i32; +typedef int64_t i64; +typedef float f32; +typedef double f64; + +typedef uint8_t byte; +typedef u64 word; + int main(void) { puts("Hello, world!"); |