mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-06 09:07:16 -04:00
go.sys/windows: grab Syscall interface from the standard syscall package
Also provide stubs to call loadlibrary and getprocaddress, which are implemented for package syscall by runtime/syscall_windows.goc. Should get the windows go.sys build closer to green. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/126170043
This commit is contained in:
@@ -492,10 +492,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 windowsdot() + "Syscall"
|
||||
}
|
||||
return windowsdot() + "Syscall" + strconv.Itoa(c)
|
||||
return "syscall.Syscall" + strconv.Itoa(c)
|
||||
}
|
||||
|
||||
// SyscallParamList returns source code for SyscallX parameters for function f.
|
||||
|
||||
Reference in New Issue
Block a user