]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove syscall.NewCallbackCDecl on Windows
authorRuss Cox <rsc@golang.org>
Thu, 3 Oct 2013 01:39:45 +0000 (21:39 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 3 Oct 2013 01:39:45 +0000 (21:39 -0400)
It is not possible to use (there is no declaration in package syscall),
and no one seems to care.

Alex Brainman may bring this back properly for Go 1.3.

Fixes #6338.

R=golang-dev, r, alex.brainman
CC=golang-dev
https://golang.org/cl/14287043

src/pkg/runtime/syscall_windows.goc

index 781ec908d0644f64b358f23f53edb53e95cff8b9..173d3ed6a96f7ff085c40070493f17896894d1b3 100644 (file)
@@ -40,9 +40,14 @@ func NewCallback(fn Eface) (code uintptr) {
        code = (uintptr)runtime·compilecallback(fn, true);
 }
 
+/*
+ * If this is needed, uncomment here and add a declaration in package syscall
+ * next to the NewCallback declaration.
+ *
 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) {
        WinCall c;