summaryrefslogtreecommitdiff
path: root/stdio.yaml
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2023-10-22 18:42:58 +0300
committeraqua <aqua@iserlohn-fortress.net>2023-10-22 18:42:58 +0300
commitfbe4a5eeab2107dfe03fc097bc1f9627b222adbd (patch)
tree11dd6b18e324721b1b3f23ed3617ac6922774ea7 /stdio.yaml
downloadcodegen-master.tar.xz
Initial commitHEADmaster
Diffstat (limited to 'stdio.yaml')
-rw-r--r--stdio.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/stdio.yaml b/stdio.yaml
new file mode 100644
index 0000000..b7dcfb9
--- /dev/null
+++ b/stdio.yaml
@@ -0,0 +1,17 @@
+
+includes:
+ stdint.h
+
+structs:
+ - name: FILE
+ putc: { type: fn_ptr, result: int, args: { id: uint32_t, c: char } }
+ puts: { type: fn_ptr, result: int, args: { id: uint32_t, s: const char* } }
+ id: { type: uint32_t }
+
+variables:
+ stdin: { type: const FILE * }
+ stdout: { type: const FILE * }
+ stderr: { type: const FILE * }
+
+functions:
+ printf: { result: void, args: { format: const char *__restrict__, ...: } }