• 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
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
cc Loading commit data...
cgo Loading commit data...
cov Loading commit data...
ebnflint Loading commit data...
gc Loading commit data...
godefs Loading commit data...
godoc Loading commit data...
gofmt Loading commit data...
goinstall Loading commit data...
gopack Loading commit data...
gotest Loading commit data...
goyacc Loading commit data...
hgpatch Loading commit data...
ld Loading commit data...
nm Loading commit data...
prof Loading commit data...
clean.bash Loading commit data...
make.bash Loading commit data...