]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/api: more runtime fixes
authorRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 15:51:09 +0000 (11:51 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Aug 2014 15:51:09 +0000 (11:51 -0400)
This is getting a little annoying, but once the runtime structs are
being defined in Go, these will go away. So it's only a temporary cost.

TBR=bradfitz
CC=golang-codereviews
https://golang.org/cl/135940043

src/cmd/api/goapi.go

index 56ba74a50683d6a385cc3e4cf1fd8a5090adf4e4..65b9aaa09432c6a3ad2f81a6472ae9ce96d8e41d 100644 (file)
@@ -385,7 +385,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
                        " mcache struct{}; bucket struct{}; sudog struct{}; g struct{};" +
                        " hchan struct{}; chantype struct{}; waitq struct{};" +
                        " note struct{}; wincallbackcontext struct{};" +
-                       " gobuf struct{}; funcval struct{};" +
+                       " gobuf struct{}; funcval struct{}; _func struct{};" +
                        "); " +
                        "const ( cb_max = 2000 )"
                f, err = parser.ParseFile(fset, filename, src, 0)