From 51469fffb57cef9624f53a744409475fc14c6208 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 25 May 2014 15:09:01 -0400 Subject: Removed constants from common_windows.go. Almost done! --- experiments/windowsconstgen.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'experiments/windowsconstgen.go') diff --git a/experiments/windowsconstgen.go b/experiments/windowsconstgen.go index b2b87ee..d840a1a 100644 --- a/experiments/windowsconstgen.go +++ b/experiments/windowsconstgen.go @@ -73,9 +73,13 @@ func gatherNames(pkg *ast.Package) { } // some constants confuse cgo into thinking they're external symbols for some reason +// fortunately all these constants are pointers // TODO debug cgo var hacknames = map[string]string{ "_INVALID_HANDLE_VALUE": "x_INVALID_HANDLE_VALUE", + "_NULL": "x_NULL", + "_IDI_APPLICATION": "x_IDI_APPLICATION", + "_IDC_ARROW": "x_IDC_ARROW", } func hacknamesPreamble() string { -- cgit v1.2.3