aboutsummaryrefslogtreecommitdiff
path: root/source/common.elna
diff options
context:
space:
mode:
Diffstat (limited to 'source/common.elna')
-rw-r--r--source/common.elna4
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