stlib arraylist
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user