Complete transition to fn. Introduce global/threadlocal

This commit is contained in:
Christoffer Lerno
2021-11-16 17:19:12 +01:00
committed by Christoffer Lerno
parent e2621617f1
commit b52b42d4da
331 changed files with 1279 additions and 1261 deletions

View File

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

View File

@@ -1,6 +1,6 @@
import std::io;
func int main()
fn int main()
{
io::println("Hello world");
return 0;