Implement more @export / @private improvements. Make @private default… (#729)

This commit is contained in:
Christoffer Lerno
2023-02-13 08:31:40 +01:00
committed by GitHub
parent 3b49b87784
commit 5e457be605
88 changed files with 697 additions and 624 deletions

View File

@@ -11,7 +11,7 @@ struct Summary
bool ok;
}
private struct StringData
struct StringData @private
{
Allocator allocator;
usz len;

View File

@@ -15,7 +15,7 @@ fn float fasta_rand(float max_val)
return max_val * seed / IM;
}
private String alu =
String alu @private =
"GGCCGGGCGCGGTGGCTCACGCCTGTAATCCCAGCACTTTGG"
"GAGGCCGAGGCGGGCGGATCACCTGAGGTCAGGAGTTCGAGA"
"CCAGCCTGGCCAACATGGTGAAACCCCGTCTCTACTAAAAAT"

View File

@@ -91,7 +91,7 @@ fn ulong fnv64a(char[] data)
return h;
}
private const uint[256] CRC32_TABLE = {
const uint[256] CRC32_TABLE @private = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
@@ -158,7 +158,7 @@ private const uint[256] CRC32_TABLE = {
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,
};
private const ulong[256] CRC64_TABLE = {
const ulong[256] CRC64_TABLE @private = {
0x0000000000000000, 0x42f0e1eba9ea3693, 0x85e1c3d753d46d26, 0xc711223cfa3e5bb5,
0x493366450e42ecdf, 0x0bc387aea7a8da4c, 0xccd2a5925d9681f9, 0x8e224479f47cb76a,
0x9266cc8a1c85d9be, 0xd0962d61b56fef2d, 0x17870f5d4f51b498, 0x5577eeb6e6bb820b,

View File

@@ -49,7 +49,7 @@ fn int Value.isClosure(Value* val)
return val.isEnc(ArrEnc) && arr_info(val)->flags1 & TypeClo;
}
private fn ArrInfo.fill(ArrInfo* a, AuintIdx start, AuintIdx end, Value value) @inline
fn ArrInfo.fill(ArrInfo* a, AuintIdx start, AuintIdx end, Value value) @inline @private
{
for (AuintIdx i = start; i < end; i++) a.arr[i] = value;
}

View File

@@ -360,7 +360,7 @@ bool lexScanNumber(LexInfo *lex) {
}
/** List of all reserved names (excluding literals) */
private VmLiterals ReservedNames[] = {
VmLiterals ReservedNames[] @private = {
SymAnd,
SymAsync,
SymBaseurl,

View File

@@ -9,10 +9,10 @@ struct Foo
extern fn void printf(char *hello);
private fn void ofke()
fn void ofke() @private
{}
private fn void exple() {}
fn void exple() @private{}
fn void test()
{