Update default field value syntax; Use more declaration groupings

This commit is contained in:
Ginger Bill
2017-06-12 18:38:27 +01:00
parent e6a206a430
commit 83bad13e9e
9 changed files with 259 additions and 222 deletions
+12 -11
View File
@@ -80,18 +80,19 @@ proc allocation_header(data: rawptr) -> ^AllocationHeader {
// Custom allocators
type Arena struct {
backing: Allocator,
offset: int,
memory: []u8,
temp_count: int,
}
type ArenaTempMemory struct {
arena: ^Arena,
original_count: int,
}
type (
Arena struct {
backing: Allocator,
offset: int,
memory: []u8,
temp_count: int,
}
ArenaTempMemory struct {
arena: ^Arena,
original_count: int,
}
)