]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] runtime/cgo: convert from C to Go
authorRuss Cox <rsc@golang.org>
Tue, 11 Nov 2014 22:05:37 +0000 (17:05 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 11 Nov 2014 22:05:37 +0000 (17:05 -0500)
commit9f99d531a05027ea12315a6421edf0aa9f905d70
treee812f639f2771baf6e8ea89005d111379e38347b
parentfee9e47559cac5ad31a36747627431742ac079d2
[dev.cc] runtime/cgo: convert from C to Go

The conversion was done with an automated tool and then
modified only as necessary to make it compile and run.

[This CL is part of the removal of C code from package runtime.
See golang.org/s/dev.cc for an overview.]

LGTM=r
R=r
CC=austin, dvyukov, golang-codereviews, iant, khr
https://golang.org/cl/168500043
12 files changed:
src/runtime/cgo.go [new file with mode: 0644]
src/runtime/cgo/callbacks.c [deleted file]
src/runtime/cgo/callbacks.go [new file with mode: 0644]
src/runtime/cgo/dragonfly.go [moved from src/runtime/cgo/dragonfly.c with 64% similarity]
src/runtime/cgo/freebsd.go [moved from src/runtime/cgo/freebsd.c with 64% similarity]
src/runtime/cgo/iscgo.go [moved from src/runtime/cgo/iscgo.c with 72% similarity]
src/runtime/cgo/netbsd.go [moved from src/runtime/cgo/netbsd.c with 64% similarity]
src/runtime/cgo/openbsd.go [moved from src/runtime/cgo/openbsd.c with 55% similarity]
src/runtime/cgo/setenv.c [deleted file]
src/runtime/cgo/setenv.go [new file with mode: 0644]
src/runtime/cgocall.go
src/runtime/env_posix.go