iface #31

Merged
zxq9 merged 27 commits from iface into master 2025-12-30 22:32:33 +09:00
Showing only changes of commit 2952822a8f - Show all commits

View File

@ -838,10 +838,7 @@ open_hash3(State, Address, Source) ->
Options = sophia_options(),
case so_compiler:from_string(Source, Options) of
{ok, Build = #{aci := ACI}} ->
% AACI = hz:prepare_aaci(ACI),
{Defs = #{functions := Funs}, ConIfaces} = find_main(ACI),
Callable = maps:remove("init", Funs),
FunDefs = {maps:put(functions, Callable, Defs), ConIfaces},
{aaci, _Name, FunDefs, _TypeDefs} = hz:prepare_aaci(ACI),
ok = tell(info, "Compilation Succeeded!~n~tp~n~n~tp", [Build, FunDefs]),
add_code_page(State, {hash, Address}, Source);
Other ->