From 684de0411878ba02c4e949d9c88a0cb8ff0d6a44 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 21 Aug 2014 20:41:09 +0400 Subject: runtime: convert common scheduler functions to Go These are required for chans, semaphores, timers, etc. LGTM=khr R=golang-codereviews, khr CC=golang-codereviews, rlh, rsc https://golang.org/cl/123640043 --- src/cmd/api/goapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/api') diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go index 5933f32563..d7b16a0c4f 100644 --- a/src/cmd/api/goapi.go +++ b/src/cmd/api/goapi.go @@ -381,7 +381,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) { src := "package runtime; type maptype struct{}; type _type struct{}; type alg struct{};" + " type mspan struct{}; type m struct{}; type lock struct{}; type slicetype struct{};" + " type iface struct{}; type eface struct{}; type interfacetype struct{}; type itab struct{};" + - " type mcache struct{}; type bucket struct{}" + " type mcache struct{}; type bucket struct{}; type sudog struct{}; type g struct{}" f, err = parser.ParseFile(fset, filename, src, 0) if err != nil { log.Fatalf("incorrect generated file: %s", err) -- cgit v1.3-5-g9baa