aboutsummaryrefslogtreecommitdiff
path: root/source/common.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-03 20:51:22 +0200
committerEugen Wissner <belka@caraus.de>2026-10-03 20:51:22 +0200
commite4ce7f658741a7428597da4872435a1b0bae944c (patch)
tree50f65abf6fa4468db7bc93a6ae61d623a2dd8566 /source/common.elna
parent5d808dd4c4003968bbdf180e1e1193231db5d43b (diff)
downloadelna-e4ce7f658741a7428597da4872435a1b0bae944c.tar.gz
Rework generics for parameters to be plain types
Diffstat (limited to 'source/common.elna')
-rw-r--r--source/common.elna6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/common.elna b/source/common.elna
index 4579a67..428c4ec 100644
--- a/source/common.elna
+++ b/source/common.elna
@@ -14,15 +14,15 @@ type
end_location: ElnaLocation
end
-proc write*(fd: Int; buf: Pointer; Word: Int) -> Int
+proc write*#[T](fd: Int; buf: ^const T; size: Word) -> Int
extern
proc write_s*(value: []const Word8)
- write(1, cast(value.ptr: Pointer), cast(value.length: Int))
+ write(1, value.ptr, value.length)
return
proc write_z*(value: ^Word8)
- write(1, cast(value: Pointer), cast(strlen(value): Int))
+ write(1, value, strlen(value))
return
proc write_b*(value: Bool)