aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-08-12release.2010-08-11weekly.2010-08-11Andrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/1954044
2010-08-116g, 8g: handle slice by sub-word-sized index (uint8, int8, uint16, int16)Russ Cox
R=ken2 CC=golang-dev https://golang.org/cl/1960042
2010-08-11A+C: Mikio Hara (individual CLA)Russ Cox
R=adg CC=golang-dev https://golang.org/cl/1971042
2010-08-11gopack: handle long lines in export dataRuss Cox
Also, if the header is bad, exit with a non-zero status. Other calls to Brdline in the tree, by category: Reading symbol name from object file: ./cmd/5l/obj.c:486: name = Brdline(f, '\0'); ./cmd/6l/obj.c:535: name = Brdline(f, '\0'); ./cmd/8l/obj.c:564: name = Brdline(f, '\0'); ./libmach/sym.c:292: cp = Brdline(bp, '\0'); Reading archive header line (fixed, short): ./cmd/gc/lex.c:287: if((a = Brdline(b, '\n')) == nil) ./cmd/gc/lex.c:303: if((p = Brdline(b, '\n')) == nil) Reading object file header line (fixed, short): ./cmd/ld/lib.c:421: line = Brdline(f, '\n'); Reading undefined symbol list (unused code): ./cmd/ld/lib.c:773: while((l = Brdline(b, '\n')) != nil){ Implementing Brdstr: ./libbio/brdstr.c:36: p = Brdline(bp, delim); The symbol names ones will cause a problem loudly if they fail: they'll error out with symbol name too long. This means that you can't define an enormous struct without giving the type a name and then stick it in an interface, because the type's symbol name will be too long for the object file. Since this will be a loud failure instead of a silent one, I'm willing to wait until it comes up in practice. R=r CC=golang-dev https://golang.org/cl/1982041
2010-08-115g, 8g: dead code (already removed from 6g)Russ Cox
R=ken2 CC=golang-dev https://golang.org/cl/1983041
2010-08-12regexp: new regularized methods for matching.Rob Pike
The previous set was spotty, incomplete, and confusing. This CL proposes a regular, clean set with clearer names. It's also complete. Many existing methods will be deprecated, but not in this CL. Ditto for the tests. R=rsc, gri CC=golang-dev, rog https://golang.org/cl/1946041
2010-08-11gofmt: if a semicolon is found unexpectedly, report detailed causeRobert Griesemer
go/scanner: return information on semicolon (real or inserted) when found in source go/parser: better error message when a semicolon is found unexpectedly For instance, if an unexpected semicolon is found that was automatically inserted, the parser error message is now: "expected '}', found newline" Fixes #1006. R=rsc CC=golang-dev https://golang.org/cl/1936044
2010-08-12sync.once: document that Do cannot be invoked recursively.Rob Pike
documentation change only. R=rsc CC=golang-dev https://golang.org/cl/1964043
2010-08-12Small performance improvements to the HTML tokenizer based on your 'TODO's.Kyle Consalus
R=nigeltao_golang CC=golang-dev https://golang.org/cl/1941042
2010-08-11template: added ParseFile method for template.TemplateScott Lawrence
Fixes #971. Parse/ParseFile methods of Template now match template.Parse and .ParseFile methods. Also made tests being run on Parse and ParseFile be run on Template.ParseFile as well. R=r CC=golang-dev https://golang.org/cl/1741059
2010-08-10gc: bug302Russ Cox
Fixed by http://code.google.com/p/go/source/detail?r=d1f41e20a90e This just adds a test and checks the return value of Bprint. R=ken2 CC=golang-dev https://golang.org/cl/1949042
2010-08-10libbio: fix Bprint bugRuss Cox
Make Bprint work even when the amount of output exceeds the available buffer space. R=r CC=golang-dev https://golang.org/cl/1968041
2010-08-11exp/draw: fix drawRGBA when x0 > x1 and we have to draw right-to-left.Nigel Tao
R=r CC=golang-dev https://golang.org/cl/1940042
2010-08-10rpc: catch errors from ReadResponseBody.Rob Pike
Fixes #1014. R=rsc CC=golang-dev https://golang.org/cl/1941041
2010-08-10fix build: update exp/draw/draw_test.goRobert Griesemer
R=nigeltao CC=golang-dev https://golang.org/cl/1962041
2010-08-10godoc: report Status 404 if a pkg or file is not foundRobert Griesemer
Fixes #1005. R=rsc, r CC=golang-dev https://golang.org/cl/1935041
2010-08-10asn1: remove superfluous if's, unused functionRobert Griesemer
R=adg CC=golang-dev https://golang.org/cl/1743059
2010-08-10exp/draw: remove the Color, Point and Rectangle types.Nigel Tao
image: introduce Transparent and Opaque. R=r CC=golang-dev https://golang.org/cl/1947042
2010-08-10gopack documentation: fixed typoScott Lawrence
(Removed extraneous "program".) R=golang-dev, r CC=golang-dev https://golang.org/cl/1950041
2010-08-10image: fix comment typo.Nigel Tao
R=adg CC=golang-dev https://golang.org/cl/1952041
2010-08-10image: change image representation from slice-of-slices to linear buffer,Nigel Tao
stride and rect. R=r CC=golang-dev, rog https://golang.org/cl/1849041
2010-08-10First cut of an HTML tokenizer (and eventually a parser).Nigel Tao
R=r, rsc, gri, rsc1 CC=golang-dev https://golang.org/cl/1814044
2010-08-10exp/draw/x11: temporarily workaround compiler bug 1011.Nigel Tao
R=r CC=golang-dev https://golang.org/cl/1951041
2010-08-10png: grayscale support.Mathieu Lonjaret
R=nigeltao_golang, r CC=golang-dev https://golang.org/cl/1897049
2010-08-10image: replace Width and Height by Bounds, and introduce the Point andNigel Tao
Rect types. The actual image representation is unchanged. A future change will replace the {[][]color} with {[]color, stride int, r Rectangle} and possibly a clip region. The draw.Color, draw.Point and draw.Rect types will be removed in a future change. Trying to do it in this one polluted the diff with trivia. R=r, rsc CC=golang-dev https://golang.org/cl/1918047
2010-08-09regexp: document that backslashes are the escape character.Rob Pike
Fixes #1013. R=rsc, gri CC=golang-dev https://golang.org/cl/1938041
2010-08-09goinstall docs: fixed typosScott Lawrence
(Added mising closing quotes.) R=golang-dev, gri CC=golang-dev https://golang.org/cl/1902049
2010-08-09big: Several fixes to bitwise functionsEvan Shaw
Fixed: * SetString calls in bitwise tests * Aliasing problem with self bitwise test * One test case that was just flat out wrong * Slice panics in nat.or and nat.xor * Aliasing problems in Int.And, Int.AndNot, Int.Or, Int.Xor Fixes #1007. R=gri CC=golang-dev https://golang.org/cl/1895049
2010-08-09asn1 incorrectly encoded signed integers. When determining theNicholas Waples
encoded length it was not taking into account the sign bit. Fixes #997. R=agl1, gri CC=golang-dev https://golang.org/cl/1870047
2010-08-09runtime: free memory returned by windows GetEnvironmentStringsAlex Brainman
R=golang-dev CC=golang-dev https://golang.org/cl/1917048
2010-08-09os: fix ForkExec() handling of envv == nilAlex Brainman
R=golang-dev, r CC=golang-dev https://golang.org/cl/1913047
2010-08-09image: introduce Decode and RegisterFormat.Nigel Tao
R=r, rsc CC=golang-dev https://golang.org/cl/1849054
2010-08-06net/textproto: new package, with example net/dictRuss Cox
Generic text-based network protcol library for SMTP-like protocols. HTTP and NNTP should be changed to use this package, and I expect that SMTP and POP3 will be able to use it too. R=cemeyer, nigeltao_golang, r CC=golang-dev, petar-m https://golang.org/cl/889041
2010-08-07fmt.Scan: empty strings are errorsRob Pike
Fixes #1002. R=rsc CC=golang-dev https://golang.org/cl/1882046
2010-08-06arm: bugfixes and syscallKai Backman
- integer divide by zero raises panic - float comparisons involving NaNs work - syscall interface actually handles return values and errno correctly. R=rsc, bradfitzpatrick CC=golang-dev https://golang.org/cl/1847047
2010-08-06math: fix amd64 Hypot.Charles L. Dorian
Underflow/overflow tests for exp_amd64.s Fixes #957. R=rsc CC=golang-dev https://golang.org/cl/1817041
2010-08-06encoding/binary: add complexRoger Peppe
R=rsc CC=golang-dev https://golang.org/cl/1879043
2010-08-06exp/iterable: add UintArrayAnschel Schaffer-Cohen
all other basic types seem to be represented. R=rsc CC=golang-dev https://golang.org/cl/1919042
2010-08-06A+C: Anschel Schaffer-Cohen (individual CLA)Russ Cox
R=gri CC=golang-dev https://golang.org/cl/1893045
2010-08-06test/peano: use directly recursive type defRobert Griesemer
Test case for http://code.google.com/p/go/issues/detail?id=999 R=r CC=golang-dev https://golang.org/cl/1892050
2010-08-06A+C: Nicholas Waples and Mathieu Lonjaret (individual CLA)Russ Cox
R=gri CC=golang-dev https://golang.org/cl/1856054
2010-08-06fix windows buildAlex Brainman
R=rsc CC=golang-dev https://golang.org/cl/1890045
2010-08-06once: replace all uses of package once with sync.Once.Rob Pike
package once remains for now; will be deleted after next release. R=golang-dev, brainman CC=golang-dev https://golang.org/cl/1914046
2010-08-05bytes: add IndexRune, FieldsFunc and To*SpecialChristian Himpel
Basically these functions are implemented the same way as the corresponding functions in the strings package. Test functions are implemented for IndexRune and FieldsFunc. Additionally two typos are fixed in packages bytes and strings. R=r CC=golang-dev https://golang.org/cl/1696062
2010-08-05sync: add sync.Once, a proposed replacement for package once.Rob Pike
This implementation is simpler and more useful, since it can work with methods. R=rsc CC=golang-dev https://golang.org/cl/1864051
2010-08-05tag release.2010-08-04Andrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/1863051
2010-08-05release.2010-08-04weekly.2010-08-04Andrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/1892049
2010-08-05path: fix comment for Split()Alex Brainman
R=golang-dev CC=golang-dev https://golang.org/cl/1905050
2010-08-04go/parser.ParseFiles: don't override error (to nil) if there is oneRobert Griesemer
Also: Return first instead of last error as that seems more useful. R=r CC=golang-dev https://golang.org/cl/1897050
2010-08-04fix build: literal types cannot be parenthesized anymoreRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/1849055