io interface (first pass)

This commit is contained in:
2026-07-13 12:02:06 +02:00
parent 2ed333c70d
commit 288df082e2
11 changed files with 589 additions and 20 deletions
+4
View File
@@ -259,6 +259,8 @@ Module :: struct {
functions: [dynamic]Function,
globals: [dynamic]Global,
strings: [dynamic]string,
injected_main: Function_Id,
io_provider: Function_Id,
types: types.Store,
target: target.Target,
allocator: mem.Allocator,
@@ -267,6 +269,8 @@ Module :: struct {
init_module :: proc(selected := target.DEFAULT, allocator := context.allocator) -> Module {
module: Module
module.target = selected
module.injected_main = INVALID_FUNCTION
module.io_provider = INVALID_FUNCTION
module.types = types.init_store(allocator)
module.types.selected = selected
module.allocator = allocator