summaryrefslogtreecommitdiff
path: root/src/cmd/api/goapi.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-09-03 08:49:43 -0700
committerKeith Randall <khr@golang.org>2014-09-03 08:49:43 -0700
commitf44073785a99c2b6656156fe42055f81d29f5e1a (patch)
tree6a39affb9e864ffd0cceacaa93e31f3225e63a64 /src/cmd/api/goapi.go
parent54138e1ac356d824fe669b593c9ec24d9c7bbd3a (diff)
downloadgo-git-f44073785a99c2b6656156fe42055f81d29f5e1a.tar.gz
runtime: deferproc/deferreturn in Go
LGTM=rsc R=golang-codereviews, rsc, khr CC=golang-codereviews https://golang.org/cl/139900043
Diffstat (limited to 'src/cmd/api/goapi.go')
-rw-r--r--src/cmd/api/goapi.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index 7f7b389be3..ce806fc95d 100644
--- a/src/cmd/api/goapi.go
+++ b/src/cmd/api/goapi.go
@@ -379,7 +379,9 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
if w.context != nil && file == fmt.Sprintf("zruntime_defs_%s_%s.go", w.context.GOOS, w.context.GOARCH) {
// Just enough to keep the api checker happy.
src := "package runtime; type (" +
+ " _defer struct{};" +
" _func struct{};" +
+ " _select struct{}; " +
" _type struct{};" +
" alg struct{};" +
" chantype struct{};" +
@@ -403,7 +405,6 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
" sudog struct{};" +
" waitq struct{};" +
" wincallbackcontext struct{};" +
- " _select struct{}; " +
"); " +
"const (" +
" cb_max = 2000;" +