From e4ce7f658741a7428597da4872435a1b0bae944c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 3 Oct 2026 20:51:22 +0200 Subject: Rework generics for parameters to be plain types --- source/cstdio.elna | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/cstdio.elna') diff --git a/source/cstdio.elna b/source/cstdio.elna index e69d81a..928c7e1 100644 --- a/source/cstdio.elna +++ b/source/cstdio.elna @@ -29,10 +29,10 @@ extern proc fflush*(stream: ^FILE) -> Int extern -proc fread*(ptr: Pointer; size: Word; nmemb: Word; stream: ^FILE) -> Word +proc fread*#[T](ptr: ^T; size: Word; nmemb: Word; stream: ^FILE) -> Word extern -proc fwrite*(ptr: const Pointer; size: Word; nitems: Word; stream: ^FILE) -> Word +proc fwrite*#[T](ptr: ^const T; size: Word; nitems: Word; stream: ^FILE) -> Word extern proc fputc*(c: Int; stream: ^FILE) -> Word @@ -47,13 +47,13 @@ extern proc putchar*(c: Int) -> Int extern -proc sprintf*(str: Pointer; format: ^const Word8; number: Word) -> Int +proc sprintf*(str: ^Word8; format: ^const Word8) #{varargs} -> Int extern -proc fprintf*(stream: Pointer; format: ^const Word8; number: Word) -> Int +proc fprintf*(stream: ^FILE; format: ^const Word8) #{varargs} -> Int extern -proc fdopen*(fildes: Int; mode: ^const Word8) -> Pointer +proc fdopen*(fildes: Int; mode: ^const Word8) -> ^FILE extern end. -- cgit v1.2.3