1
0
mirror of https://github.com/golang/go synced 2024-11-25 11:57:58 -07:00
go/misc/cgo/test
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
..
align.go misc/cgo/test: run tests 2011-05-02 13:55:51 -04:00
basic.go misc/cgo/test: run tests 2011-05-02 13:55:51 -04:00
callback_c.c runtime: scheduler, cgo reorganization 2011-03-07 10:37:42 -05:00
callback.go misc/cgo/test: run tests 2011-05-02 13:55:51 -04:00
cgo_test.go os: make Setenv update C environment variables 2011-05-02 12:38:13 -07:00
duplicate_symbol.go cgo: omit duplicate symbols in writeDefs 2011-08-16 14:56:23 -04:00
env.go go/printer, gofmt: fix alignment of "=" in const/var declarations 2011-05-09 15:16:34 -07:00
exports.go cgo: add missing semicolon in generated struct 2011-07-18 07:23:52 -07:00
issue1222.go runtime: scheduler, cgo reorganization 2011-03-07 10:37:42 -05:00
issue1328.go misc/cgo/test: run tests 2011-05-02 13:55:51 -04:00
issue1560.go misc/cgo/test: run tests 2011-05-02 13:55:51 -04:00
Makefile cgo: omit duplicate symbols in writeDefs 2011-08-16 14:56:23 -04:00
runtime.c runtime: scheduler, cgo reorganization 2011-03-07 10:37:42 -05:00