aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 01:34:42 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-15 01:34:42 +0100
commitca2e9c7083347366402991531d236f35d6726450 (patch)
tree0cd77959dd1db87e23f2aef247069e22e5e1f8d7 /src/main.c
parent7cf9160e3f2136f301f08993bda47f0abe43cb4a (diff)
downloadovm-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/main.c')
-rw-r--r--src/main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 34102f4..cd66ebb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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!");