Implemented environment type

This commit is contained in:
Eduard Urbach 2025-02-21 17:35:42 +01:00
parent 1268344238
commit 96ac298980
Signed by: eduard
GPG key ID: 49226B848C78F6C8
15 changed files with 67 additions and 51 deletions

View file

@ -22,6 +22,6 @@ func (f *Function) CompileDelete(root *expression.Expression) error {
f.SaveRegister(f.CPU.Input[1])
f.RegisterRegister(asm.MOVE, f.CPU.Input[0], variable.Register)
f.RegisterNumber(asm.MOVE, f.CPU.Input[1], variable.Type.(*types.Pointer).To.Size())
f.CallSafe(f.Functions["mem.free"], f.CPU.Input[:2])
f.CallSafe(f.All.Functions["mem.free"], f.CPU.Input[:2])
return nil
}