From dbca249757a98d6d56e23db43baa93ad30a91709 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 30 Aug 2026 21:07:48 +0200 Subject: Use arrow -> for return types --- source/common.elna | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/common.elna') diff --git a/source/common.elna b/source/common.elna index c5b67f8..0a50fe1 100644 --- a/source/common.elna +++ b/source/common.elna @@ -14,7 +14,7 @@ type end_location: ElnaLocation end -proc write*(fd: Int; buf: Pointer; Word: Int): Int +proc write*(fd: Int; buf: Pointer; Word: Int) -> Int extern proc write_s*(value: []const Word8) @@ -72,13 +72,13 @@ begin write_i(cast(value: Int)) return -proc free_and_nil*(pointer: Pointer): Pointer +proc free_and_nil*(pointer: Pointer) -> Pointer begin free(pointer) return nil (* Returns true or false depending whether two strings are equal. *) -proc string_compare*(lhs_pointer: ^Word8; lhs_length: Word; rhs_pointer: []const Word8): Bool +proc string_compare*(lhs_pointer: ^Word8; lhs_length: Word; rhs_pointer: []const Word8) -> Bool var result: Bool begin -- cgit v1.2.3