- 16 Jun, 2010 3 commits
-
-
Nigel Tao authored
R=rsc CC=golang-dev, rog https://golang.org/cl/1707042
-
Rob Pike authored
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
-
Rob Pike authored
Fixes #852. R=rsc CC=golang-dev https://golang.org/cl/1680042
-
- 15 Jun, 2010 4 commits
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1698041
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/1703041
-
Rob Pike authored
Fix a bug that caused it to ignore field widths. R=rsc CC=golang-dev https://golang.org/cl/1704041
-
Rob Pike authored
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
-
- 14 Jun, 2010 7 commits
-
-
Nigel Tao authored
R=rsc CC=golang-dev https://golang.org/cl/1701041
-
Rob Pike authored
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
-
Roger Peppe authored
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
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1677042
-
Russ Cox authored
various cleanup, deleting unused code R=ken2 CC=golang-dev https://golang.org/cl/1663041
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/1662041
-
Nigel Tao authored
Make dpix variable names consistent. R=rsc CC=golang-dev https://golang.org/cl/1563041
-
- 12 Jun, 2010 5 commits
-
-
Russ Cox authored
R=gri, iant, ken2, r, r2 CC=golang-dev https://golang.org/cl/1632041
-
Russ Cox authored
Cleans up a few other corner cases too. R=ken2 CC=golang-dev https://golang.org/cl/1592045
-
Russ Cox authored
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
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/1597044
-
Rob Pike authored
R=golang-dev CC=golang-dev https://golang.org/cl/1641043
-
- 11 Jun, 2010 6 commits
-
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/1627042
-
Russ Cox authored
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
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/1597043
-
Ian Lance Taylor authored
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
-
Alex Brainman authored
R=rsc CC=golang-dev https://golang.org/cl/1381041
-
Alex Brainman authored
R=rsc CC=golang-dev https://golang.org/cl/1652041
-
- 10 Jun, 2010 6 commits
-
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/1615042
-
Paolo Giarrusso authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/1555042
-
Paolo Giarrusso authored
R=rsc CC=golang-dev https://golang.org/cl/1585041
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/1649041
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1633042
-
Adam Langley authored
Although technically incorrect, we want this in order to parse X.509 certificates where a wildcard hostname ("*.example.com") has been put into a PrintableString. Fixes #850. R=rsc CC=golang-dev https://golang.org/cl/1615043
-
- 09 Jun, 2010 9 commits
-
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/1644042
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/1599043
-
Robert Griesemer authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/1636043
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/1626043
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/1644041
-
Russ Cox authored
* disallow surrogate pair runes. * diagnose impossible type assertions * eliminate another static buffer. * do not overflow lexbuf. * add -u flag to disable package unsafe. R=ken2 CC=golang-dev https://golang.org/cl/1619042
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/1631041
-
Russ Cox authored
* Code for assignment, conversions now mirrors spec. * Changed some snprint -> smprint. * Renamed runtime functions to separate interface conversions from type assertions: convT2I, assertI2T, etc. * Correct checking of \U sequences. Fixes #840. Fixes #830. Fixes #778. R=ken2 CC=golang-dev https://golang.org/cl/1303042
-
Russ Cox authored
R=gri CC=golang-dev https://golang.org/cl/1620042
-