summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-09 21:59:10 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-09 21:59:10 -0400
commit655f7a4976f42d419bf1111a177a0204eaaf1f8d (patch)
treefbefcdabc1dfb41fa38faeccd7de08009e1c2d64 /out.c
parent076ea231f9d33d20066916ac8aa8506e91d3f9ea (diff)
a bit more cgen (basic fn headers)
Diffstat (limited to 'out.c')
-rw-r--r--out.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/out.c b/out.c
index 69820de..56b0d1d 100644
--- a/out.c
+++ b/out.c
@@ -1,2 +1,23 @@
+#include <stdint.h>
+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;
+}