aboutsummaryrefslogtreecommitdiff
path: root/source/sys
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-18 09:25:36 +0200
committerEugen Wissner <belka@caraus.de>2026-10-18 22:54:00 +0200
commit7440060f179e35fe63155a149bb5003c97e12013 (patch)
treeabdcb8aa74513312b2cc92d4c2b2b986c29fbc03 /source/sys
parent81043b67437445dcf83055098490e04cc88ff7ee (diff)
downloadelna-7440060f179e35fe63155a149bb5003c97e12013.tar.gz
Fix ICE on variable declarations in case branches
Diffstat (limited to 'source/sys')
-rw-r--r--source/sys/posix/stdlib.elna3
-rw-r--r--source/sys/posix/string.elna3
2 files changed, 6 insertions, 0 deletions
diff --git a/source/sys/posix/stdlib.elna b/source/sys/posix/stdlib.elna
index 0016d9c..66b383a 100644
--- a/source/sys/posix/stdlib.elna
+++ b/source/sys/posix/stdlib.elna
@@ -6,4 +6,7 @@ module
proc malloc#[T]*(size: Word) -> ^T
extern
+proc free#[T]*(ptr: ^T)
+extern
+
end.
diff --git a/source/sys/posix/string.elna b/source/sys/posix/string.elna
index 9994679..b699606 100644
--- a/source/sys/posix/string.elna
+++ b/source/sys/posix/string.elna
@@ -6,4 +6,7 @@ module
proc memset#[T]*(b: ^T; c: Int8; len: Word) -> ^T
extern
+proc memcpy#[T]*(dst: ^T; src: ^const T; n: Word) -> ^T
+extern
+
end.