1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:17:57 -07:00
go/misc/cgo
Julian Phillips 01dd57b312 cgo: omit duplicate symbols in writeDefs
When the C API being used includes multiple names for the same
underlying symbol (e.g. multiple #define's for the same variable), then
cgo will generate the same placeholder variables for each name.  This
then prevents the code from compiling due to multiple declarations of
the same variable - so change cgo to only create one instance of the
variable for the underlying symbol.

R=rsc
CC=golang-dev
https://golang.org/cl/4826055
2011-08-16 14:56:23 -04:00
..
gmp cgo: add GoBytes, fix gmp example 2011-07-28 12:39:50 -04:00
life cgo: handle references to symbols in shared libraries 2010-12-17 11:37:11 -08:00
stdio cgo: add GoBytes, fix gmp example 2011-07-28 12:39:50 -04:00
test cgo: omit duplicate symbols in writeDefs 2011-08-16 14:56:23 -04:00