aboutsummaryrefslogtreecommitdiff
path: root/source/cstdlib.elna
diff options
context:
space:
mode:
Diffstat (limited to 'source/cstdlib.elna')
-rw-r--r--source/cstdlib.elna8
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