Prepare removing "func"

This commit is contained in:
Christoffer Lerno
2022-01-18 14:15:44 +01:00
parent e4e8abbc6c
commit 1e56948a22
4 changed files with 6 additions and 6 deletions

View File

@@ -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
}

View File

@@ -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);

View File

@@ -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);

View File

@@ -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]}
}*/