]> Cypherpunks repositories - gostls13.git/commit
cmd/fix,cmd/cgo,misc/cgo: map the EGLDisplay C type to uintptr in Go
authorElias Naur <elias.naur@gmail.com>
Sat, 15 Dec 2018 16:03:37 +0000 (17:03 +0100)
committerElias Naur <elias.naur@gmail.com>
Sat, 15 Dec 2018 19:27:41 +0000 (19:27 +0000)
commitd50390ce7253e2caac9931bc83b49b32cdcd9698
tree0262379f7af5272f72beb2450f4c3247b0b37cdf
parent26985ed4a58665d25a256e3b63b353972fc3aab0
cmd/fix,cmd/cgo,misc/cgo: map the EGLDisplay C type to uintptr in Go

Similar to to macOS' CF* types and JNI's jobject and derived types,
the EGLDisplay type is declared as a pointer but can contain
non-pointers (see #27054).
Fix it the same way: map EGLDisplay to uintptr in Go.

Fixes #27054

RELNOTE=yes

Change-Id: I6136f8f8162687c5493b30ed324e29efe55a8fd7
Reviewed-on: https://go-review.googlesource.com/c/154417
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
misc/cgo/test/issue27054/egl.h [new file with mode: 0644]
misc/cgo/test/issue27054/test27054.go [new file with mode: 0644]
src/cmd/cgo/gcc.go
src/cmd/fix/egltype.go [new file with mode: 0644]
src/cmd/fix/egltype_test.go [new file with mode: 0644]