1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:10:21 -07:00
go/src
Ian Lance Taylor 12e7ce95c6 Add //export to cgo.
The new //export comment marks a Go function as callable from
C.  The syntax is "//export NAME" where NAME is the name of
the function as seen from C.  If such a comment is seen, cgo
will generate two new files: _cgo_export.h and _cgo_export.c.
The _cgo_export.h file provides declarations which C code may
use to call Go functions.  The _cgo_export.c file contains
wrappers, and is to be compiled with gcc.

The changes to Make.pkg support using this from a Go Makefile,
though it could probably be more convenient.

R=rsc
CC=golang-dev
https://golang.org/cl/853042
2010-04-09 13:31:05 -07:00
..
cmd Add //export to cgo. 2010-04-09 13:31:05 -07:00
lib9 *l/*c: add -V flag to display version number 2010-02-08 09:46:53 -08:00
libbio Ports of lib9, libbio and libmach to Windows. 2009-11-30 11:53:11 -08:00
libcgo Library support for cgo export. 2010-04-09 13:30:35 -07:00
libmach gc: implement panic and recover 2010-03-31 11:46:01 -07:00
pkg Library support for cgo export. 2010-04-09 13:30:35 -07:00
all-arm.bash arm: toss make-arm.bash 2010-02-03 20:46:37 -08:00
all-nacl.bash nacl: fix build, finally fixed 8l convergence bug 2010-02-01 15:20:19 -08:00
all.bash build script tweaks 2010-03-31 19:48:33 -07:00
clean.bash add simple garbage collector benchmarks to dashboard 2010-02-09 13:33:00 -08:00
env.bash build script tweaks 2010-03-31 19:48:33 -07:00
Make.386
Make.amd64
Make.arm
make.bash build script tweaks 2010-03-31 19:48:33 -07:00
Make.cmd Make.cmd: make 'all' the default target (was 'clean': BUG) 2010-03-19 16:33:27 -07:00
Make.common Factor the Makefiles to make writing outside Makefiles easier. 2010-03-19 15:14:46 -07:00
Make.conf Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of 2010-01-06 07:47:56 -08:00
Make.pkg Add //export to cgo. 2010-04-09 13:31:05 -07:00
quietgcc.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
run.bash run.bash: remove MAKEFLAGS=-j4 to prevent crashing on freebsd 2010-04-05 10:53:38 +10:00
sudo.bash go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
version.bash version.bash: cope with ancient Mercurial 2010-03-16 18:45:06 -07:00