Reduced number of packages

This commit is contained in:
2024-08-26 15:34:34 +02:00
parent b225717775
commit e2a6a31d8e
12 changed files with 36 additions and 69 deletions

View File

@ -7,7 +7,7 @@ import (
"git.akyoto.dev/cli/q/src/errors"
"git.akyoto.dev/cli/q/src/expression"
"git.akyoto.dev/cli/q/src/types"
"git.akyoto.dev/cli/q/src/windows"
"git.akyoto.dev/cli/q/src/x64"
)
// CompileCall executes a function call.
@ -36,7 +36,7 @@ func (f *Function) CompileCall(root *expression.Expression) (*Function, error) {
if pkg == "kernel32" || pkg == "user32" || pkg == "gdi32" || pkg == "comctl32" {
parameters := root.Children[1:]
registers := windows.X64InputRegisters[:len(parameters)]
registers := x64.WindowsInputRegisters[:len(parameters)]
for i := len(parameters) - 1; i >= 0; i-- {
_, err := f.ExpressionToRegister(parameters[i], registers[i])