aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api/goapi.go
AgeCommit message (Collapse)Author
2012-08-28cmd/api: recognize version "devel" as dev. branch and apply -nextShenghou Ma
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6476066
2012-06-08cmd/api: handle empty API file, ignore -next in releaseRuss Cox
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6298063
2012-06-04api: add Linux/ARM to go1 APIShenghou Ma
It's very unfortunate that the type of Data field of struct RawSockaddr is [14]uint8 on Linux/ARM instead of [14]int8 on all the others. btw, it should be [14]int8 according to my header files. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6275050
2012-06-01api: add FreeBSD to go1 APIBrad Fitzpatrick
Now that gri has made go/parser 15% faster, I offer this change to slow back down cmd/api ~proportionately, adding FreeBSD to the go1-checked set of platforms. Really we should have done this earlier. This will prevent us from breaking FreeBSD compatibility accidentally in the future. R=golang-dev, r CC=golang-dev https://golang.org/cl/6279044
2012-05-23cmd/api: add flag to specify contextsBrad Fitzpatrick
I needed this to explore per-GOOS/GOARCH differences in pkg syscall for a recent CL. Others may find it useful too. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6236046
2012-05-22cmd/api: add api/next.txtBrad Fitzpatrick
This quiets all.bash noise for upcoming features we know about. The all.bash warnings will now only print for things not in next.txt (or in next.txt but not in the API). Once an API is frozen, we rename next.txt to a new frozen file (like go1.txt) Fixes #3651 R=golang-dev, r CC=golang-dev https://golang.org/cl/6218069
2012-04-10cmd/api: allow addition of APIShenghou Ma
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5991081
2012-03-17build: catch API changes during buildBrad Fitzpatrick
Adds new file api/go1.txt, locking down the current API. Any changes to the API will need to update that file. run.bash (but not make.bash, or Windows) will check for accidental API changes. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5820070
2012-03-11cmd/api: work on Windows again, and make gccgo files work a bit moreBrad Fitzpatrick
handle string and []byte conversions. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5754082
2012-03-12cmd/api: set compiler for all build contexts.David Symonds
The generated syscall files for Windows are still breaking "go tool api" (unknown function []byte); I'll look at fixing that separately. Fixes #3285. R=bradfitz CC=golang-dev https://golang.org/cl/5777062
2012-03-01go/build: replace FindTree, ScanDir, Tree, DirInfo with Import, PackageRuss Cox
This is an API change, but one I have been promising would happen when it was clear what the go command needed. This is basically a complete replacement of what used to be here. build.Tree is gone. build.DirInfo is expanded and now called build.Package. build.FindTree is now build.Import(package, srcDir, build.FindOnly). The returned *Package contains information that FindTree returned, but applicable only to a single package. build.ScanDir is now build.ImportDir. build.FindTree+build.ScanDir is now build.Import. The new Import API allows specifying the source directory, in order to resolve local imports (import "./foo") and also allows scanning of packages outside of $GOPATH. They will come back with less information in the Package, but they will still work. The old go/build API exposed both too much and too little. This API is much closer to what the go command needs, and it works well enough in the other places where it is used. Path is gone, so it can no longer be misused. (Fixes issue 2749.) This CL updates clients of go/build other than the go command. The go command changes are in a separate CL, to be submitted at the same time. R=golang-dev, r, alex.brainman, adg CC=golang-dev https://golang.org/cl/5713043
2012-02-21cmd/api: record return type of functions for variable typecheck.Rémy Oudompheng
Also cleanup the resolveName method. Fixes failure on go/build declaration: var ToolDir = filepath.Join(...) R=golang-dev, bradfitz CC=golang-dev, remy https://golang.org/cl/5681043
2012-02-18cmd/api: s/ideal-bool/bool/Russ Cox
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5674105
2012-02-14cmd/api: fix typo.Nigel Tao
R=gri, r CC=golang-dev https://golang.org/cl/5659048
2012-02-10cmd/api: follow constant referencesBrad Fitzpatrick
For gccgo. Also removes bunch of special cases. Fixes #2906 R=golang-dev, remyoudompheng CC=golang-dev https://golang.org/cl/5644050
2012-02-07cmd/api: compare multiple contextsBrad Fitzpatrick
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5626045
2012-02-01all packages: fix various typosRobert Griesemer
Detected semi-automatically. There are probably more. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5620046
2012-01-31go/doc: enable AllMethods flag (and fix logic)Robert Griesemer
- enable AllMethods flag (default: not set) - fix logic determining which methods to show - added respective test case in testdata/e.go for AllMethods = false - added test case set for AllMethods = true The critical changes/files to look at are: - testdata/e{0,1,2}.golden: T4.M should only show up as method of T5 in e2.golden - reader.go: always include top-level methods, and negate former logic for embedded methods (rewrote as a switch for better comprehensability) Fixes #2791. R=rsc, rsc CC=golang-dev https://golang.org/cl/5576057
2012-01-31build: move goapi, quietgcc, cgo, gotype, ebnflint into go-toolRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5552054