diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-10-22 18:42:58 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-10-22 18:42:58 +0300 |
commit | fbe4a5eeab2107dfe03fc097bc1f9627b222adbd (patch) | |
tree | 11dd6b18e324721b1b3f23ed3617ac6922774ea7 /stdio.yaml | |
download | codegen-master.tar.xz |
Diffstat (limited to 'stdio.yaml')
-rw-r--r-- | stdio.yaml | 17 |
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__, ...: } } |