Prefix type and let to replace immutable

This commit is contained in:
Ginger Bill
2017-06-12 12:56:47 +01:00
parent 33eeb58521
commit 0c05fc1432
22 changed files with 244 additions and 184 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ proc align_forward(ptr: rawptr, align: int) -> rawptr {
const AllocationHeader = struct {
type AllocationHeader struct {
size: int,
}
@@ -78,14 +78,14 @@ proc allocation_header(data: rawptr) -> ^AllocationHeader {
// Custom allocators
const Arena = struct {
type Arena struct {
backing: Allocator,
offset: int,
memory: []u8,
temp_count: int,
}
const ArenaTempMemory = struct {
type ArenaTempMemory struct {
arena: ^Arena,
original_count: int,
}