summaryrefslogtreecommitdiff
path: root/lib/codereview
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-04-09 13:31:05 -0700
committerIan Lance Taylor <iant@golang.org>2010-04-09 13:31:05 -0700
commit6dcdbbd6b9a46c29524ae9c1d4dced289e23fde4 (patch)
tree6cf30c19057d3d553958fea67419fd2da3ff0482 /lib/codereview
parent0b75b44531202fcf43f4cfd39bcc853415cc6b57 (diff)
downloadgolang-6dcdbbd6b9a46c29524ae9c1d4dced289e23fde4.tar.gz
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 http://codereview.appspot.com/853042
Diffstat (limited to 'lib/codereview')
0 files changed, 0 insertions, 0 deletions