mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Prepare removing "func"
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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]}
|
||||
}*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user