summaryrefslogtreecommitdiff
path: root/src/cmd/cgo/out.go
AgeCommit message (Collapse)AuthorFilesLines
2011-04-28Imported Upstream version 2011.04.27Ondřej Surý1-27/+51
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-3/+3
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-50/+46
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-5/+16
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-226/+298
2010-06-30cgo: use slash-free relative paths for .so referencesRuss Cox1-8/+24
The Makefile and cgo now rewrite / to _ when creating the path. The .so for gosqlite.googlecode.com/hg/sqlite is named cgo_gosqlite.googlecode.com_hg_sqlite.so, and then 6l and 8l both include a default rpath of $GOROOT/pkg/$GOOS_$GOARCH. This should make it easier to move binaries from one system to another. Fixes issue 857. R=iant, r CC=golang-dev http://codereview.appspot.com/1700048
2010-05-30Correct _cgo_free when C ABI does not pass first arg on stack.Ian Lance Taylor1-1/+1
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 http://codereview.appspot.com/1399041
2010-04-09Add //export to cgo.Ian Lance Taylor1-1/+307
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
2010-03-22Rename dynld to dynimport throughout.Ian Lance Taylor1-6/+6
Cgo users will need to rerun cgo. R=rsc CC=golang-dev http://codereview.appspot.com/692041
2010-01-26cgo: update for package global name spaceRuss Cox1-5/+5
Fixes issue 560. R=r CC=golang-dev http://codereview.appspot.com/195051
2010-01-15 Steps towards tracking scopes for identifiers.Robert Griesemer1-1/+1
- Identifiers refer now to the language entity (Object) that they denote. At the moment this is at best an approximation. - Initial data structures for language entities (Objects) and expression types (Type) independent of the actual type notations. - Initial support for declaring and looking up identifiers. - Updated various dependent files and added support functions. - Extensively tested to avoid breakage. This is an AST change. R=rsc CC=golang-dev, rog http://codereview.appspot.com/189080
2010-01-11 cgo: Make constants #define'd in C available to Go (as consts)Devon H. O'Dell1-0/+4
Fixes issue 435 R=rsc CC=golang-dev http://codereview.appspot.com/181161 Committer: Russ Cox <rsc@golang.org>
2009-12-21cgo: interpret $CGOPKGDIR as absolute path if rootedRuss Cox1-2/+6
R=dho CC=golang-dev http://codereview.appspot.com/180099
2009-12-17Allow cgo to accept multiple .go inputs for a packageDevon H. O'Dell1-24/+86
Fixes issue 342. R=rsc CC=golang-dev http://codereview.appspot.com/179062 Committer: Russ Cox <rsc@golang.org>
2009-12-15This patch enables cgo utility to correctly convert enums in the C sourceMoriyoshi Koizumi1-0/+5
into consts in the resulting Go source. Previously known as issue 161047, which I deleted accidentally. Fixes issue 207. R=rsc http://codereview.appspot.com/166059 Committer: Russ Cox <rsc@golang.org>
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-85/+85
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-10/+10
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-5/+5
R=rsc, r http://go/go-review/1025029
2009-10-30fix buildRobert Griesemer1-4/+4
R=agl CC=rsc http://go/go-review/1016008
2009-10-26Hack to make cgo's generated go code compile when there are noStephen Ma1-4/+5
unsafe.Pointer references inside the C declarations. R=go-dev APPROVED=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=36063 CL=36063
2009-10-22- make printer interface easily extensible w/o breaking clients (in the future)Robert Griesemer1-4/+4
- replacement for p4 CL 35999 (abandoned) R=rsc http://go/go-review/1012010
2009-10-22go/printer:Robert Griesemer1-4/+4
- handle HTML tagging via (client-installable) Stylers go/doc: - basic styler support - some factoring - ready to contain the search code (but for now excluded) doc/style.css: - updated doc/go_spec.css: - cleanup: replace deprecated uses of <font> tag with <span> tag R=rsc DELTA=302 (160 added, 62 deleted, 80 changed) OCL=35973 CL=35996
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox1-12/+11
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-10-038c, 8l dynamic loading support.Russ Cox1-1/+1
better mach binaries. cgo working on darwin+linux amd64+386. eliminated context switches - pi is 30x faster. add libcgo to build. on snow leopard: - non-cgo binaries work; all tests pass. - cgo binaries work on amd64 but not 386. R=r DELTA=2031 (1316 added, 626 deleted, 89 changed) OCL=35264 CL=35304
2009-09-30cgo working on linux/386Russ Cox1-4/+4
R=r DELTA=70 (47 added, 4 deleted, 19 changed) OCL=35167 CL=35171
2009-09-30cgo: works on amd64.Russ Cox1-33/+51
integrated into Makefiles (see misc/cgo/gmp/Makefile). R=r DELTA=1110 (540 added, 525 deleted, 45 changed) OCL=35153 CL=35158
2009-09-24cgo checkpoint.Russ Cox1-0/+203
can write all 3 output files and then compile them by hand. R=r DELTA=919 (841 added, 16 deleted, 62 changed) OCL=34954 CL=34973