mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Complete transition to fn. Introduce global/threadlocal
This commit is contained in:
committed by
Christoffer Lerno
parent
e2621617f1
commit
b52b42d4da
@@ -3,7 +3,7 @@ module bar;
|
||||
import baz::foo;
|
||||
import testbaz::zab;
|
||||
|
||||
func void test()
|
||||
fn void test()
|
||||
{
|
||||
Foo x;
|
||||
baz::foo::test();
|
||||
|
||||
@@ -7,14 +7,14 @@ struct Foo
|
||||
int a;
|
||||
}
|
||||
|
||||
extern func void printf(char *hello);
|
||||
extern fn void printf(char *hello);
|
||||
|
||||
private func void ofke()
|
||||
private fn void ofke()
|
||||
{}
|
||||
|
||||
private func void exple() {}
|
||||
private fn void exple() {}
|
||||
|
||||
func void test()
|
||||
fn void test()
|
||||
{
|
||||
printf("Hello from baz::foo::test()!\n");
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
module hello_world;
|
||||
import bar;
|
||||
|
||||
extern func void printf(char *hello);
|
||||
extern fn void printf(char *hello);
|
||||
|
||||
func int main(int x)
|
||||
fn int main(int x)
|
||||
{
|
||||
printf("Hello World!\n");
|
||||
bar::test();
|
||||
|
||||
Reference in New Issue
Block a user