stlib arraylist

This commit is contained in:
2026-07-12 13:38:29 +02:00
parent b0c716537e
commit 0706188b98
16 changed files with 600 additions and 22 deletions
+4
View File
@@ -105,6 +105,7 @@ Expr_Kind :: enum u8 {
Try,
Catch,
Function_Literal,
Anonymous_Struct_Type,
}
Expr :: struct {
@@ -294,6 +295,7 @@ Module :: struct {
unsupported: [dynamic]Unsupported,
c_trampolines: [dynamic]Trampoline,
strings: [dynamic]string,
type_fields: [dynamic]types.Field,
type_store: types.Store,
allocator: mem.Allocator,
}
@@ -312,6 +314,7 @@ init_module :: proc(allocator := context.allocator) -> Module {
module.unsupported.allocator = allocator
module.c_trampolines.allocator = allocator
module.strings.allocator = allocator
module.type_fields.allocator = allocator
return module
}
@@ -362,5 +365,6 @@ destroy_module :: proc(module: ^Module) {
delete(module.unsupported)
delete(module.c_trampolines)
delete(module.strings)
delete(module.type_fields)
types.destroy_store(&module.type_store)
}