diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-03 20:51:22 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-03 20:51:22 +0200 |
| commit | e4ce7f658741a7428597da4872435a1b0bae944c (patch) | |
| tree | 50f65abf6fa4468db7bc93a6ae61d623a2dd8566 /source/cstdlib.elna | |
| parent | 5d808dd4c4003968bbdf180e1e1193231db5d43b (diff) | |
| download | elna-e4ce7f658741a7428597da4872435a1b0bae944c.tar.gz | |
Rework generics for parameters to be plain types
Diffstat (limited to 'source/cstdlib.elna')
| -rw-r--r-- | source/cstdlib.elna | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cstdlib.elna b/source/cstdlib.elna index 51f8ea0..10a4d80 100644 --- a/source/cstdlib.elna +++ b/source/cstdlib.elna @@ -3,16 +3,16 @@ obtain one at https://mozilla.org/MPL/2.0/. *) module -proc malloc*(size: Word) -> Pointer +proc malloc*#[T](size: Word) -> ^T extern -proc free*(ptr: Pointer) +proc free*#[T](ptr: ^T) extern -proc calloc*(nmemb: Word; size: Word) -> Pointer +proc calloc*#[T](nmemb: Word; size: Word) -> ^T extern -proc realloc*(ptr: Pointer; size: Word) -> Pointer +proc realloc*#[T](ptr: ^T; size: Word) -> ^T extern proc atoi*(str: ^Word8) -> Int |
