aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-21release.2010-06-21weekly.2010-06-21Andrew Gerrand
R=rsc, r CC=golang-dev https://golang.org/cl/1717046
2010-06-21syslog: use local network for testsRuss Cox
R=r CC=golang-dev https://golang.org/cl/1724042
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox
gob: substitute slice for map R=r CC=golang-dev https://golang.org/cl/1699045
2010-06-21gc: include struct field tags in type equalityRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/1667048
2010-06-21pkg/Makefile: allow DISABLE_NET_TESTS=1 to disable network testsRuss Cox
netchan, rpc, websocket: run test servers on 127.0.0.1, to avoid conflict with OS X firewall. TBR=r CC=golang-dev https://golang.org/cl/1689046
2010-06-21spec: struct tags must be identical for types to be identicalRuss Cox
We didn't mention this explicitly during our discussions, but I think it fits the "identical types are spelled identically" rule that we used. R=gri, iant, ken2, r, rsc1 CC=golang-dev https://golang.org/cl/1698043
2010-06-21goinstall: process dependencies for package mainRoger Peppe
Currently to install a command, you have to manually goinstall each of the remote packages that it depends on. This patch lets goinstall P work where P is contains files in package main. It does not actually build the package, but it installs all of its dependencies and prints a message to that effect. R=rsc CC=golang-dev https://golang.org/cl/1301043
2010-06-21misc/vim: clarifies syntax highlighting installation instructionsJames Whitehead
Based on the review of CL 1723044, I've changed the installation instructions for the vim syntax files to suggest symlinking the files rather than copying the files. Also the wording has changed to be more consistent. R=golang-dev, Kyle Lemons, adg CC=golang-dev https://golang.org/cl/1702045
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox
R=ken2 CC=golang-dev https://golang.org/cl/1736042
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox
update other code to match. R=r CC=golang-dev https://golang.org/cl/1680044
2010-06-20gc: delete debug printRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/1732043
2010-06-20errchk: fix build - allow matches in multiline error messagesRuss Cox
TBR=r CC=golang-dev https://golang.org/cl/1734042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox
x.go:13: cannot use t (type T) as type Reader in assignment: T does not implement Reader (Read method requires pointer receiver) x.go:19: cannot use q (type Q) as type Reader in assignment: Q does not implement Reader (missing Read method) have read() want Read() x.go:22: cannot use z (type int) as type Reader in assignment: int does not implement Reader (missing Read method) x.go:24: too many arguments to conversion to complex: complex(1, 3) R=ken2 CC=golang-dev https://golang.org/cl/1736041
2010-06-20gc: fix build - subnode not addable in complexgenRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/1677047
2010-06-20misc/vim: reorganize plugin so it uses ftplugin and syntaxJames Whitehead
This sets up vim to work out of the box with go programs as long as syntax highlighting is enabled. Both files must be copied to the vim runtime directory in order for the file-type detection and syntax loading to work. R=golang-dev, adg CC=golang-dev https://golang.org/cl/1723044
2010-06-18nacl: fix buildRuss Cox
TBR=r CC=golang-dev https://golang.org/cl/1706044
2010-06-18strconv: add AtofN, FtoaNRuss Cox
R=r CC=golang-dev https://golang.org/cl/1700043
2010-06-18test: add missing import for zerodivideChristopher Wedgwood
R=rsc CC=golang-dev, r https://golang.org/cl/1706043
2010-06-18fmt.Scanf: improve error message when input does not match formatRob Pike
R=rsc CC=golang-dev https://golang.org/cl/1693043
2010-06-18Effective Go: minor change to correct a comment in an exampleRob Pike
R=rsc CC=golang-dev https://golang.org/cl/1689042
2010-06-18complex divide: match C99 implementationRuss Cox
R=iant, ken2, r, r2, ken3 CC=golang-dev https://golang.org/cl/1686044
2010-06-18Effective Go: panic and recoverRob Pike
R=rsc, iant CC=golang-dev https://golang.org/cl/1718042
2010-06-16Effective Go: add a section on defer.Rob Pike
R=rsc, iant CC=golang-dev https://golang.org/cl/1694044
2010-06-16http: reply to Expect 100-continue requests automaticallyBrad Fitzpatrick
This CL replaces my earlier https://golang.org/cl/1640044/show in which Continue handling was explicit. Instead, this CL makes it automatic. Reading from Body() is an implicit acknowledgement that the request headers were fine and the body is wanted. In that case, the 100 Continue response is written automatically when the request continues the "Expect: 100-continue" header. R=rsc, adg CC=golang-dev https://golang.org/cl/1610042
2010-06-16cmd/gotest: Delete temporary _testmain.go files.Nigel Tao
R=rsc TBR=rsc CC=golang-dev https://golang.org/cl/1675047
2010-06-16image: add an Alpha16 type, for completeness.Nigel Tao
R=rsc CC=golang-dev, rog https://golang.org/cl/1707042
2010-06-15fmt.Scan: fix %c in the case where the input does not implement ReadRune itself.Rob Pike
While we're at it, clean up and test the code to guarantee we see every byte when the text is erroneous UTF-8. Fixes #866. R=rsc CC=golang-dev https://golang.org/cl/1712042
2010-06-15bytes.Buffer.ReadFrom: fix bug.Rob Pike
Fixes #852. R=rsc CC=golang-dev https://golang.org/cl/1680042
2010-06-14Effective Go: update ... discussion.Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/1698041
2010-06-14runtime: correct fault for 16-bit divide on LeopardRuss Cox
R=r CC=golang-dev https://golang.org/cl/1703041
2010-06-14fmt.Printf: write tests for %T.Rob Pike
Fix a bug that caused it to ignore field widths. R=rsc CC=golang-dev https://golang.org/cl/1704041
2010-06-14fmt.Print*: reimplement to switch on type first.Rob Pike
This shortens, simplifies and regularizes the code significantly. (Improvements to reflect could make another step.) Passes all.bash. One semantic change occurs: The String() method changes behavior. It used to run only for string formats such as %s and %q. Instead, it now runs whenever the item has the method and the result is then processed by the format as a string. Besides the regularization, this has three effects: 1) width is honored for String() items 2) %x works for String() items 3) implementations of String that merely recur will recur forever Regarding point 3, example from the updated documentation: type X int func (x X) String() string { return Sprintf("%d", x) } should cast the value before recurring: func (x X) String() string { return Sprintf("%d", int(x)) } R=rsc CC=golang-dev https://golang.org/cl/1613045
2010-06-15html: sync testdata/webkit to match WebKit tip.Nigel Tao
R=rsc CC=golang-dev https://golang.org/cl/1701041
2010-06-14Add test for division by zero.Rob Pike
It fails with 6g. Once 6g is fixed up I will extend the value tests. R=rsc, iant CC=golang-dev https://golang.org/cl/1677043
2010-06-14Add IndexFunc and LastIndexFunc.Roger Peppe
Change TrimRight and TrimLeft to use these functions. Incidentally fix minor bug in TrimRight. Add some test cases for this. YMMV whether it's worth saving the closure allocation. R=r, r2 CC=golang-dev, hoisie, rsc https://golang.org/cl/1198044
2010-06-14tutorial: update discussion of variadic functionsRob Pike
R=rsc CC=golang-dev https://golang.org/cl/1677042
2010-06-14gc: no more ...Russ Cox
various cleanup, deleting unused code R=ken2 CC=golang-dev https://golang.org/cl/1663041
2010-06-14remove uses of ... from tree, add one testRuss Cox
R=r CC=golang-dev https://golang.org/cl/1662041
2010-06-14exp/draw: small draw.drawGlyphOver optimization.Nigel Tao
Make dpix variable names consistent. R=rsc CC=golang-dev https://golang.org/cl/1563041
2010-06-12spec: remove ... (keeping ...T)Russ Cox
R=gri, iant, ken2, r, r2 CC=golang-dev https://golang.org/cl/1632041
2010-06-12gc: less aggressive name binding, for better line numbers in errorsRuss Cox
Cleans up a few other corner cases too. R=ken2 CC=golang-dev https://golang.org/cl/1592045
2010-06-12runtime: fix 386 signal handler bugRuss Cox
Cannot assume that g == m->curg at time of signal. Must save actual g and restore. Fixes flaky crashes with messages like throw: malloc mlookup throw: malloc/free - deadlock throw: unwindstack on self throw: free mlookup (and probably others) when running cgo. R=iant CC=golang-dev https://golang.org/cl/1648043
2010-06-12gopack: add S flag to force marking a package as safeRuss Cox
R=r CC=golang-dev https://golang.org/cl/1597044
2010-06-11spec: clarify that result parameters are always zeroed before the function ↵Rob Pike
executes. R=golang-dev CC=golang-dev https://golang.org/cl/1641043
2010-06-118l: correct test for sp == top of stack in 8l -K codeRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/1627042
2010-06-11gopack: simplify go metadata codeRuss Cox
There's only one Go object file per package now, so there's no need to parse the metadata and merge metadata from multiple files. Just save the original and use it as __.PKGDEF verbatim. R=r CC=golang-dev https://golang.org/cl/1647042
2010-06-11gc: change -u to require imports to be marked safeRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/1597043
2010-06-11Pad Go symbol table out to page boundary when linking dynamically.Ian Lance Taylor
This avoids a crash when using cgo where glibc's malloc thinks that it can use some of the memory following the symbol table. This fails because the symbol table is mapped read-only, which affects the whole page. R=rsc CC=golang-dev https://golang.org/cl/1616042
2010-06-11runtime: switch to OS stack during Windows syscallAlex Brainman
R=rsc CC=golang-dev https://golang.org/cl/1381041
2010-06-11runtime: free lock handles on WindowsAlex Brainman
R=rsc CC=golang-dev https://golang.org/cl/1652041