fix:remove parameter matching in mkwinsyscall

This commit is contained in:
mertakman
2024-09-20 04:42:05 +01:00
parent 48aad76ed3
commit 7b820e9008

View File

@@ -62,7 +62,6 @@ import (
"path/filepath"
"runtime"
"sort"
"strconv"
"strings"
"text/template"
)
@@ -576,14 +575,7 @@ func (f *Fn) SyscallParamCount() int {
// Syscall determines which SyscallX function to use for function f.
func (f *Fn) Syscall() string {
c := f.SyscallParamCount()
if c == 3 {
return syscalldot() + "Syscall"
}
if c > 15 {
return syscalldot() + "SyscallN"
}
return syscalldot() + "Syscall" + strconv.Itoa(c)
return syscalldot() + "SyscallN"
}
// SyscallParamList returns source code for SyscallX parameters for function f.