From 1e56948a226cae3e7e5e743eb873502172cbdd8a Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Tue, 18 Jan 2022 14:15:44 +0100 Subject: [PATCH] Prepare removing "func" --- resources/lib/std/io.c3 | 6 +++--- resources/testfragments/bigint.c3 | 2 +- resources/testfragments/compilertest2.c3 | 2 +- test/test_suite/symbols/various.c3 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/lib/std/io.c3 b/resources/lib/std/io.c3 index 5651fad90..7f1f43644 100644 --- a/resources/lib/std/io.c3 +++ b/resources/lib/std/io.c3 @@ -169,7 +169,7 @@ error FileError ulong errno; } -func FileError errorFromErrno() +fn FileError errorFromErrno() { return FileError { }; } @@ -177,14 +177,14 @@ func FileError errorFromErrno() -pubic func void! File.clearerr(File *file) @inline +pubic fn void! File.clearerr(File *file) @inline { clearerr(file->file); } -func void File.error(File *file) @inline +fn void File.error(File *file) @inline { int err = ferror } diff --git a/resources/testfragments/bigint.c3 b/resources/testfragments/bigint.c3 index 870487ca0..5c4bb8fc5 100644 --- a/resources/testfragments/bigint.c3 +++ b/resources/testfragments/bigint.c3 @@ -235,7 +235,7 @@ public fn void BigInt.print(BigInt* bigInt) } /* -public func void BigInt.fprint(BigInt* bigInt, FILE* file) +public fn void BigInt.fprint(BigInt* bigInt, FILE* file) { char* chars = bigInt.toCharArray(); fputs(chars, file); diff --git a/resources/testfragments/compilertest2.c3 b/resources/testfragments/compilertest2.c3 index 1176ff157..ac1b136c0 100644 --- a/resources/testfragments/compilertest2.c3 +++ b/resources/testfragments/compilertest2.c3 @@ -242,7 +242,7 @@ public fn void BigInt.print(BigInt& bigInt) } /* -public func void BigInt.fprint(BigInt* bigInt, FILE* file) +public fn void BigInt.fprint(BigInt* bigInt, FILE* file) { char* chars = bigInt.toCharArray(); fputs(chars, file); diff --git a/test/test_suite/symbols/various.c3 b/test/test_suite/symbols/various.c3 index d3a7679c5..412b6e473 100644 --- a/test/test_suite/symbols/various.c3 +++ b/test/test_suite/symbols/various.c3 @@ -143,7 +143,7 @@ fn void test19() /* const i32 Num = 200; -func void test1() { +fn void test1() { i8 a = test.Num; // @error{constant value 200 out-of-bounds for type 'i8', range [-128, 127]} }*/