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/common.elna | |
| parent | 5d808dd4c4003968bbdf180e1e1193231db5d43b (diff) | |
| download | elna-e4ce7f658741a7428597da4872435a1b0bae944c.tar.gz | |
Rework generics for parameters to be plain types
Diffstat (limited to 'source/common.elna')
| -rw-r--r-- | source/common.elna | 6 |
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) |
