1
0
mirror of https://github.com/golang/go synced 2024-11-25 13:38:00 -07:00
go/src/libcgo
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
..
386.S Library support for cgo export. 2010-04-09 13:30:35 -07:00
amd64.S Support cgo export on amd64. 2010-04-09 13:30:11 -07:00
darwin_386.c 8c, 8l dynamic loading support. 2009-10-03 10:37:12 -07:00
darwin_amd64.c Support cgo export on amd64. 2010-04-09 13:30:11 -07:00
freebsd_386.c More FreeBSD-touchups. Thundercats are GOOOOO! 2009-11-18 16:51:59 -08:00
freebsd_amd64.c Support cgo export on amd64. 2010-04-09 13:30:11 -07:00
libcgo.h 8c, 8l dynamic loading support. 2009-10-03 10:37:12 -07:00
linux_386.c 8c, 8l dynamic loading support. 2009-10-03 10:37:12 -07:00
linux_amd64.c Support cgo export on amd64. 2010-04-09 13:30:11 -07:00
linux_arm.c 8c, 8l dynamic loading support. 2009-10-03 10:37:12 -07:00
Makefile rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00
nacl_386.c 8c, 8l dynamic loading support. 2009-10-03 10:37:12 -07:00
util.c Correct _cgo_free when C ABI does not pass first arg on stack. 2010-05-30 22:22:47 -07:00
windows_386.c rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00
windows_amd64.c rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00