]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go
authorElias Naur <mail@eliasnaur.com>
Sat, 30 May 2020 14:34:23 +0000 (16:34 +0200)
committerElias Naur <mail@eliasnaur.com>
Sun, 31 May 2020 09:48:08 +0000 (09:48 +0000)
commit7dbbb5bacf4e52bc4efbd3caecdebf6ffb730783
treebb6090928a3dba49285dc1dca025b9f09c321cba
parentf1f8f9af9a55d73dfc6603a93bee0559fdc9024d
cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go

Similarly to EGLDisplay, EGLConfig is declared as a pointer but may
contain non-pointer values.

I believe this is the root cause of https://todo.sr.ht/~eliasnaur/gio/121.

Change-Id: I412c4fbc2eef4aa028534d68bda95db98e3a365d
Reviewed-on: https://go-review.googlesource.com/c/go/+/235817
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/testdata/issue27054/egl.h
misc/cgo/test/testdata/issue27054/test27054.go
src/cmd/cgo/doc.go
src/cmd/cgo/gcc.go
src/cmd/fix/egltype.go
src/cmd/fix/egltype_test.go