mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Complete transition to fn. Introduce global/threadlocal
This commit is contained in:
committed by
Christoffer Lerno
parent
e2621617f1
commit
b52b42d4da
@@ -1,9 +1,9 @@
|
||||
module antiprime;
|
||||
import std::io;
|
||||
|
||||
extern func int printf(char* message, ...);
|
||||
extern fn int printf(char* message, ...);
|
||||
|
||||
func int countDivisors(int n)
|
||||
fn int countDivisors(int n)
|
||||
{
|
||||
if (n < 2) return 1;
|
||||
int count = 2;
|
||||
@@ -14,7 +14,7 @@ func int countDivisors(int n)
|
||||
return count;
|
||||
}
|
||||
|
||||
func int main()
|
||||
fn int main()
|
||||
{
|
||||
int maxDiv;
|
||||
int count;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import std::io;
|
||||
|
||||
func int main()
|
||||
fn int main()
|
||||
{
|
||||
io::println("Hello world");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user