From 655f7a4976f42d419bf1111a177a0204eaaf1f8d Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Wed, 9 Oct 2019 21:59:10 -0400 Subject: a bit more cgen (basic fn headers) --- out.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'out.c') diff --git a/out.c b/out.c index 69820de..56b0d1d 100644 --- a/out.c +++ b/out.c @@ -1,2 +1,23 @@ +#include +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; +typedef float f32; +typedef double f64; +typedef unsigned char bool; +#define false ((bool)0) +#define true ((bool)1) + + /* declarations */ -;/* code */ +void main__(); +/* code */ +int main() { + main__(); + return 0; +} -- cgit v1.2.3