diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-21 21:27:03 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-21 21:27:03 +0200 |
| commit | 5cc2947143f2a6ebd4ef1ae4d25ab956b87de808 (patch) | |
| tree | 0d4489b298da3be04ed4bce117f616468146a0f8 /source/common.elna | |
| parent | 44d6e8a27294e5ca7300ab11900011b73d9336d4 (diff) | |
| download | elna-5cc2947143f2a6ebd4ef1ae4d25ab956b87de808.tar.gz | |
Diffstat (limited to 'source/common.elna')
| -rw-r--r-- | source/common.elna | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/common.elna b/source/common.elna index b6f85f1..1bdfa1f 100644 --- a/source/common.elna +++ b/source/common.elna @@ -17,7 +17,7 @@ type proc write*(fd: Int; buf: Pointer; Word: Int): Int extern -proc write_s*(value: String) +proc write_s*(value: []const Char) begin (* fwrite(cast(value.ptr: Pointer), value.length, 1u, stdout) *) write(1, cast(value.ptr: Pointer), cast(value.length: Int)) @@ -78,7 +78,7 @@ begin return nil (* Returns true or false depending whether two strings are equal. *) -proc string_compare*(lhs_pointer: ^Char; lhs_length: Word; rhs_pointer: String): Bool +proc string_compare*(lhs_pointer: ^Char; lhs_length: Word; rhs_pointer: []const Char): Bool var result: Bool begin |
