summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-03-04strings: make Split(s, "", n) fasterSpring Mc1-17/+24
R=rsc CC=golang-dev http://codereview.appspot.com/223096 Committer: Russ Cox <rsc@golang.org>
2010-03-04cc: disallow ... argument unless NOSPLIT is set.Russ Cox8-8/+46
check that NOSPLIT functions don't use too much stack. correct some missing NOSPLITs in the runtime library. Fixes bug reported in https://groups.google.com/group/golang-nuts/t/efff68b73941eccf R=ken2 CC=golang-dev http://codereview.appspot.com/236041
2010-03-03math: added ilogb, logb, remainder, tests and special conditionsCharles L. Dorian9-5/+331
Also added expm1_386 and remainder_386; shortened exp_386 R=rsc CC=golang-dev http://codereview.appspot.com/217109 Committer: Russ Cox <rsc@golang.org>
2010-03-03net: put [ ] around IPv6 addresses for DialRuss Cox1-1/+5
Update issue 538. R=r CC=golang-dev http://codereview.appspot.com/229045
2010-03-03net: fix nil deref in testTimeout when Dial failsRuss Cox1-1/+2
Pointed out by Scott Schwartz. Fixes issue 637. R=scotts CC=golang-dev http://codereview.appspot.com/225042
2010-03-03gc: fix imported and not used message - show pathRuss Cox3-4/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/229046
2010-03-03encoding/binary: fix error reporting bugRob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/224096
2010-03-03net: fix network timeout boundary condition.Stephen Ma1-1/+1
Fixes issue 472. R=golang-dev CC=golang-dev http://codereview.appspot.com/223108
2010-03-03net: correct DNS configurationStephen Ma2-3/+3
Set defaults to the same values as various C DNS resolver libraries. Use the timeout value from the configuration. Fixes issue 632. R=rsc CC=golang-dev http://codereview.appspot.com/223094
2010-03-02more on type complex.Ken Thompson7-10/+228
getting close. R=rsc CC=golang-dev http://codereview.appspot.com/224105
2010-03-02gofmt: fix alignment of multi-line var declarationsRobert Griesemer6-34/+82
- gofmt -w src misc R=rsc, r CC=golang-dev http://codereview.appspot.com/223101
2010-03-03http: corrected comment for Response.GetHeader.Andrew Gerrand1-7/+6
Fixes issue 622. R=rsc CC=golang-dev http://codereview.appspot.com/224084
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer72-1836/+1870
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-03-02strings.Bytes -> []byte for documentation example, src/pkg/* comments, and ↵Andrey Mirtchovski2-2/+2
htmlgen.go R=rsc, adg CC=golang-dev http://codereview.appspot.com/224087 Committer: Andrew Gerrand <adg@golang.org>
2010-02-28gotest: set $AS to $GOBIN/$ASAndrew Gerrand1-0/+1
May address issue 624. R=rsc CC=golang-dev http://codereview.appspot.com/223083
2010-02-28Count utf8 runes, not bytes when determining string width. NoteStephen Ma3-2/+6
that pad() still counts bytes, but it's currently only used for 1 byte runes. Fixes issue 612. R=r CC=golang-dev http://codereview.appspot.com/217064 Committer: Rob Pike <r@golang.org>
2010-02-26testing/benchmark: paranoia - make sure n always growsRuss Cox1-1/+9
R=wcn CC=golang-dev http://codereview.appspot.com/223075
2010-02-26crypto/blowfish: new packageRaif S. Naffah6-0/+585
R=rsc CC=golang-dev http://codereview.appspot.com/217116 Committer: Russ Cox <rsc@golang.org>
2010-02-26go/parser cleanup: remove some state by writing more functional codeRobert Griesemer1-16/+17
R=rsc CC=golang-dev http://codereview.appspot.com/223071
2010-02-268g: fix out of register bug in byte(x) codeRuss Cox1-6/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/223070
2010-02-26Add -r option to 6l/8l/5l.Ian Lance Taylor12-3/+26
This permits more flexibility with cgo and swig in cases where the program is run on a machine other than the one on which it is built. Rather than storing the absolute path to the shared library in the DT_NEEDED entry, we can store just the name, and let the dynamic linker find it using DT_RUNPATH or the LD_LIBRARY_PATH environment variable. R=rsc CC=golang-dev http://codereview.appspot.com/223068
2010-02-268g: make a[byte(x)] truncate xRuss Cox1-1/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/223069
2010-02-26go/scanner: the position of '\n's chars must be the last position of the ↵Robert Griesemer2-8/+12
current line Background: This didn't matter until recently, because '\n' don't appear as token starts in source code and thus the exact position was irrelevant (and set as was easiest in the code). With auto semicolon insertion, a virtual semicolon may be inserted when a '\n' is seen. The position of the semicolon is the position of the '\n'. Without this fix, these semicolons appeared on the next line instead of the line where they were inserted. This affected the association of comments to declarations in the parser. As a result, some lead comments where considered line comments, not collected in the ast, and not shown in godoc pages. (This affected only godoc pages, not gofmt-formatted programs). Fixes issue 592. R=rsc CC=golang-dev http://codereview.appspot.com/224068
2010-02-26Fix a couple of bugs referencing data values in template.Micah Stetson2-0/+18
Adds tests and fixes for two cases that fail with the current release. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/217115 Committer: Rob Pike <r@golang.org>
2010-02-25use []byte("abc") in place of []byte{'a', 'b', 'c'}Russ Cox4-12/+12
R=gri CC=golang-dev http://codereview.appspot.com/223059
2010-02-25go/printer, gofmt: align comments in multi-line expression listsRobert Griesemer11-67/+115
- gofmt -w src misc - improves several lists and fixes minor degradation introduced with the fix for issue 628 - removed some dead code (stringList) R=rsc CC=golang-dev http://codereview.appspot.com/223058
2010-02-25strings: delete Runes, BytesRuss Cox60-303/+235
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-25tabwriter: make use of new []byte() conversionRobert Griesemer1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/224063
2010-02-25gc: implement []int(string) and []byte(string)Russ Cox6-14/+118
R=ken2 CC=golang-dev http://codereview.appspot.com/224060
2010-02-25Fix small typo in net package.Stephen Weinberg1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/224061 Committer: Russ Cox <rsc@golang.org>
2010-02-25go/printer, gofmt: correct indentation after certain /*-style commentsRobert Griesemer5-36/+53
- applied gofmt to src and misc Note: This fix improved formatting of src/pkg/math/all_test.go but leads to a degradation in src/pkg/exp/4s/xs.go. The latter happened to "work" before accidentally. Fixing the alignment in that case in general will be a separate CL. Fixes issue 628. R=rsc CC=golang-dev http://codereview.appspot.com/223054
2010-02-25tabwriter: indicate section breaks if Debug flag is setRobert Griesemer2-0/+10
R=rsc CC=golang-dev http://codereview.appspot.com/224057
2010-02-25Use consistent types in .h file and .c file.Ian Lance Taylor2-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/224053
2010-02-25strings: remove a couple of redundant testsRobert Griesemer1-2/+4
(per suggestion from Heresy.Mc@gmail.com) R=rsc CC=golang-dev http://codereview.appspot.com/223052
2010-02-25path: Fix bug in Match with non-greedy starsKevin Ballard2-1/+9
path.Match() errors out when testing "*x" against "xxx" because it matches the star non-greedily. Ensure that the last chunk consumes the rest of the name. R=r, rsc CC=golang-dev http://codereview.appspot.com/223050 Committer: Russ Cox <rsc@golang.org>
2010-02-25%q in fmt: if the object is a Stringer, use String() to get the value to quote.Rob Pike3-1/+11
R=rsc CC=golang-dev http://codereview.appspot.com/224051
2010-02-24go/scanner: support for complex (imaginary) constantsRobert Griesemer6-2/+106
R=rsc CC=golang-dev http://codereview.appspot.com/223044
2010-02-24Install runtime.h and cgocall.h.Ian Lance Taylor2-2/+9
This permits cgo generated code to use these header files even if the Go sources are not around. R=rsc CC=golang-dev http://codereview.appspot.com/224045
2010-02-24go/ast: streamline representation of field listsRobert Griesemer11-115/+151
- always include position information about opening/closing parens/braces - replace uses of []*ast.Field with *ast.FieldList Fixes issue 473. R=rsc CC=golang-dev http://codereview.appspot.com/223043
2010-02-24path: add MatchRuss Cox3-0/+274
R=eridius, r, rog CC=golang-dev http://codereview.appspot.com/217088
2010-02-24http: fix handling of Close, use Close in http.PostRuss Cox5-11/+68
default to HTTP/1.1 R=petar-m CC=golang-dev http://codereview.appspot.com/224041
2010-02-24gofmt: don't print ()'s around function-typed results (not needed anymore)Robert Griesemer9-37/+41
- add extra test cases to go/printer tests - apply gofmt to src and misc R=rsc CC=golang-dev http://codereview.appspot.com/223041
2010-02-24go/printer: use general comment intersperse mechanism everywhereRobert Griesemer5-69/+77
- remove several TODOs - as a side-effect, comment stylers are now used always and comments will be properly colored in godoc pkg documentation pages (and not only when looking at source text) R=rsc CC=golang-dev http://codereview.appspot.com/222041
2010-02-23crypto package documentation fixMark Zavislak2-6/+6
Replaces stale references to modes.go. R=golang-dev, agl, rsc CC=golang-dev http://codereview.appspot.com/218071 Committer: Russ Cox <rsc@golang.org>
2010-02-23goyacc: fix handling of / and comments in goyaccRob Pike1-2/+20
Fixes issue 618. R=rsc CC=golang-dev http://codereview.appspot.com/217094
2010-02-22runtime: work around Linux kernel bug in futexRuss Cox1-14/+6
Fixes issue 420. R=r CC=golang-dev http://codereview.appspot.com/218065
2010-02-22net: disable UDP server testRuss Cox1-3/+6
has been flaking on various architectures. not sure why, but doesn't seem to be Go's fault. Fixes issue 617. R=r CC=golang-dev http://codereview.appspot.com/217093
2010-02-22math: add lgamma; in-line special cases of acosh, nextafterCharles L. Dorian5-3/+404
Added lgamma.go, tests and special cases. R=rsc CC=golang-dev http://codereview.appspot.com/217060 Committer: Russ Cox <rsc@golang.org>
2010-02-23Fix xgb/example.go typo.Nigel Tao1-1/+1
R=adg CC=golang-dev http://codereview.appspot.com/210047
2010-02-22go/printer (gofmt): remove more residue from semicolon transitionRobert Griesemer1-79/+14
minor unrelated cleanups R=rsc CC=golang-dev http://codereview.appspot.com/217086