diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-11-13 12:01:17 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-11-13 13:15:30 +0100 |
| commit | 7ab6e1021611cc6913ee4ab5faf1b31f928a65e9 (patch) | |
| tree | b6e650890682831503c73608ac7fd370d2847d8a /source/sys/posix/stdio.elna | |
| parent | 0b5bd8114255e04dae27a7528a3111d6923e5fbe (diff) | |
| download | elna-7ab6e1021611cc6913ee4ab5faf1b31f928a65e9.tar.gz | |
Create parser stubs
Diffstat (limited to 'source/sys/posix/stdio.elna')
| -rw-r--r-- | source/sys/posix/stdio.elna | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/source/sys/posix/stdio.elna b/source/sys/posix/stdio.elna index 39756a8..c667f43 100644 --- a/source/sys/posix/stdio.elna +++ b/source/sys/posix/stdio.elna @@ -3,13 +3,27 @@ obtain one at https://mozilla.org/MPL/2.0/. *) module -proc printf*(format: ^const Word8) #{varargs} -> Int +import sys.ffi, bits.stdio* + +proc fprintf*(stream: ^FILE; format: ^const CChar) #{varargs} -> CInt +extern + +proc printf*(format: ^const CChar) #{varargs} -> CInt +extern + +proc fputs*(s: ^const CChar; stream: ^FILE) -> CInt +extern + +proc puts*(s: ^const CChar) -> CInt extern -proc puts*(s: ^const Word8) -> Int +proc fputc*(c: CInt; stream: ^FILE) -> CInt extern -proc putchar*(c: Int) -> Int +proc putc*(c: CInt; stream: ^FILE) -> CInt +return fputc(c, stream) + +proc putchar*(c: CInt) -> CInt extern end. |
