aboutsummaryrefslogtreecommitdiff
path: root/source/sys/posix/stdlib.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-11-13 12:01:17 +0100
committerEugen Wissner <belka@caraus.de>2026-11-13 13:15:30 +0100
commit7ab6e1021611cc6913ee4ab5faf1b31f928a65e9 (patch)
treeb6e650890682831503c73608ac7fd370d2847d8a /source/sys/posix/stdlib.elna
parent0b5bd8114255e04dae27a7528a3111d6923e5fbe (diff)
downloadelna-7ab6e1021611cc6913ee4ab5faf1b31f928a65e9.tar.gz
Create parser stubs
Diffstat (limited to 'source/sys/posix/stdlib.elna')
-rw-r--r--source/sys/posix/stdlib.elna15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/sys/posix/stdlib.elna b/source/sys/posix/stdlib.elna
index 497e87d..272400a 100644
--- a/source/sys/posix/stdlib.elna
+++ b/source/sys/posix/stdlib.elna
@@ -3,6 +3,8 @@
obtain one at https://mozilla.org/MPL/2.0/. *)
module
+import sys.ffi
+
proc malloc#[T]*(size: Word) -> ^T
extern
@@ -12,19 +14,22 @@ extern
proc realloc#[T]*(ptr: ^T; size: Word) -> ^T
extern
-proc strtol*(str: ^const Word8; endptr: ^^Word8; base: Int) -> Int
+proc strtol*(str: ^const CChar; endptr: ^^CChar; base: CInt) -> CLong
+extern
+
+proc strtoll*(str: ^const CChar; endptr: ^^CChar; base: CInt) -> CLongLong
extern
-proc strtoul*(str: ^const Word8; endptr: ^^Word8; base: Int) -> Word
+proc strtoul*(str: ^const CChar; endptr: ^^CChar; base: CInt) -> CULong
extern
-proc strtoull*(str: ^const Word8; endptr: ^^Word8; base: Int) -> Word64
+proc strtoull*(str: ^const CChar; endptr: ^^CChar; base: CInt) -> CULongLong
extern
-proc strtof*(nptr: ^const Word8; endptr: ^^Word8) -> Single
+proc strtof*(nptr: ^const CChar; endptr: ^^CChar) -> Single
extern
-proc strtod*(nptr: ^const Word8; endptr: ^^Word8) -> Double
+proc strtod*(nptr: ^const CChar; endptr: ^^CChar) -> Double
extern
end.