mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
fix:remove parameter matching in mkwinsyscall
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user