]> Cypherpunks repositories - gostls13.git/commit
runtime: deduplicate Windows stdcall
authorqmuntal <quimmuntal@gmail.com>
Tue, 29 Jul 2025 08:35:34 +0000 (10:35 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Fri, 1 Aug 2025 16:05:13 +0000 (09:05 -0700)
commite666972a674eb96f5847c7bbeb5c6e1bcb572af5
tree30145c1a275b5d5003edb3f9d701d0c90996da20
parentef4054978692bd934eb575d0027c1c5476af9931
runtime: deduplicate Windows stdcall

There is no need to have a dedicated stdcall variant for each
number of arguments. Instead, we can use a variadic function
that accepts any number of arguments and handles them uniformly.

While here, improve documentation of syscall_syscalln to make it clear
that it should not be used within the runtime package.

Change-Id: I022afc7f28d969fd7307bb2b1f4594246ac38d18
Reviewed-on: https://go-review.googlesource.com/c/go/+/691215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Mark Freeman <mark@golang.org>
src/runtime/export_windows_test.go
src/runtime/mem_windows.go
src/runtime/netpoll_windows.go
src/runtime/os_windows.go
src/runtime/os_windows_arm.go
src/runtime/os_windows_arm64.go
src/runtime/signal_windows.go
src/runtime/syscall_windows.go