go/src/cmd/cgo
Rémy Oudompheng 3211b2cca9 cmd/cgo: add support for function export for gccgo.
A "gccgoprefix" flag is added and used by the go tool,
to mirror the -fgo-prefix flag for gccgo, whose value
is required to know how to access functions from C.

Trying to export Go methods or unexported Go functions
will not work.

Also fix go test on "main" packages.

Updates #2313.
Fixes #3262.

R=mpimenov, rsc, iant
CC=golang-dev
https://golang.org/cl/5797046
2012-03-15 23:50:25 +01:00
..
ast.go cmd/cgo: bug fixes 2012-02-19 13:32:55 -05:00
doc.go doc: add C? Go? Cgo! article 2012-03-13 09:07:37 +11:00
gcc.go cgo: fix definition of opaque types 2012-02-22 17:10:25 -02:00
godefs.go cmd/cgo: bug fixes 2012-02-19 13:32:55 -05:00
main.go cmd/cgo: add support for function export for gccgo. 2012-03-15 23:50:25 +01:00
out.go cmd/cgo: add support for function export for gccgo. 2012-03-15 23:50:25 +01:00
util.go os: release process handle at the end of windows (*Process).Wait 2012-03-01 17:36:35 +11:00