From: Jaroslavas Počepko Date: Mon, 29 Aug 2011 00:40:28 +0000 (+1000) Subject: runtime: go interface to cdecl calbacks X-Git-Tag: weekly.2011-09-01~52 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f627215bab022893466788417c6f70d0b496d77b;p=gostls13.git runtime: go interface to cdecl calbacks cdecl calbacks have been implemented in C/ASM code, just Go function is missing R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/4969047 --- diff --git a/src/pkg/runtime/windows/syscall.goc b/src/pkg/runtime/windows/syscall.goc index 85071e0516..4777a61896 100644 --- a/src/pkg/runtime/windows/syscall.goc +++ b/src/pkg/runtime/windows/syscall.goc @@ -20,6 +20,10 @@ func NewCallback(fn Eface) (code uintptr) { code = (uintptr)runtime·compilecallback(fn, true); } +func NewCallbackCDecl(fn Eface) (code uintptr) { + code = (uintptr)runtime·compilecallback(fn, false); +} + func Syscall(fn uintptr, nargs uintptr, a1 uintptr, a2 uintptr, a3 uintptr) (r1 uintptr, r2 uintptr, err uintptr) { USED(a2); USED(a3);