1
0
mirror of https://github.com/golang/go synced 2024-10-04 05:21:22 -06:00
go/src/cmd/cgo
Ian Lance Taylor 1192c175fe Correct _cgo_free when C ABI does not pass first arg on stack.
It turns out that _cgo_malloc is used, via cmalloc in
runtime/cgocall.c, which is called by code generated by out.go
for the ·_C_CString function.  I can't find a call to
_cgo_free, but given _cgo_malloc we might as well keep
_cgo_free.  This patch fixes it so that it should work on
amd64.

R=rsc
CC=golang-dev
https://golang.org/cl/1399041
2010-05-30 22:22:47 -07:00
..
ast.go Add //export to cgo. 2010-04-09 13:31:05 -07:00
doc.go doc doc doc 2009-11-04 15:17:36 -08:00
gcc.go gofmt: experiment: align values in map composites where possible 2010-03-02 13:46:51 -08:00
main.go roll back 1193046 - fix build 2010-05-21 18:29:18 -07:00
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
out.go Correct _cgo_free when C ABI does not pass first arg on stack. 2010-05-30 22:22:47 -07:00
util.go Change type of Printf's args to ... interface{} 2010-02-02 10:53:37 +11:00