• Ian Lance Taylor's avatar
    Add //export to cgo. · 12e7ce95
    Ian Lance Taylor authored
    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
    12e7ce95
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libcgo Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.386 Loading commit data...
Make.amd64 Loading commit data...
Make.arm Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.conf Loading commit data...
Make.pkg Loading commit data...
all-arm.bash Loading commit data...
all-nacl.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...