mirror of
https://github.com/Ed94/WATL_Exercise.git
synced 2025-08-05 14:52:44 -07:00
setup proper incremental build of build.odin.odin script
This commit is contained in:
@@ -6,6 +6,11 @@ Toolchain: odin-lang/Odin dev-2025-06
|
||||
*/
|
||||
package odin
|
||||
|
||||
main :: proc()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
import "base:builtin"
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -103,29 +108,42 @@ sll_stack_push_n :: proc(first: ^$SLL_NodeType, n: ^SLL_NodeType) {
|
||||
first^ = n
|
||||
}
|
||||
sll_queue_push_nz :: proc(nil_val: ^$SLL_NodeType, first: ^SLL_NodeType, last: ^SLL_NodeType, n: ^SLL_NodeType) {
|
||||
if first^ == nil_val {
|
||||
first^ = n
|
||||
last^ = n
|
||||
n.next = nil_val
|
||||
} else {
|
||||
last^.next = n
|
||||
last^ = n
|
||||
n.next = nil_val
|
||||
}
|
||||
if first^ == nil_val {
|
||||
first^ = n
|
||||
last^ = n
|
||||
n.next = nil_val
|
||||
} else {
|
||||
last^.next = n
|
||||
last^ = n
|
||||
n.next = nil_val
|
||||
}
|
||||
}
|
||||
sll_queue_push_n :: proc(first: ^$SLL_NodeType, last: ^SLL_NodeType, n: ^SLL_NodeType) {
|
||||
sll_queue_push_nz(nil, first, last, n)
|
||||
}
|
||||
//#endregion("Memory")
|
||||
|
||||
//#region Allocator Interface
|
||||
AllocatorOp :: enum u32 {
|
||||
Alloc_NoZero = 0, // If Alloc exist, so must No_Zero
|
||||
Alloc,
|
||||
Free,
|
||||
Reset,
|
||||
Grow_NoZero,
|
||||
Grow,
|
||||
Shrink,
|
||||
Rewind,
|
||||
SavePoint,
|
||||
Query, // Must always be implemented
|
||||
}
|
||||
AllocatorQueryFlag :: enum u64 {
|
||||
|
||||
}
|
||||
//#endregion Allocator Interface
|
||||
|
||||
//#region("Strings")
|
||||
Raw_String :: struct {
|
||||
data: [^]byte,
|
||||
len: int,
|
||||
}
|
||||
//#endregion("Strings")
|
||||
|
||||
main :: proc()
|
||||
{
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user