summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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 Cox2-1/+24
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-26add micah.stetson to C&ARob Pike2-0/+2
R=rsc CC=golang-dev http://codereview.appspot.com/223061
2010-02-25doc: Use byte("...") over byte{...}Christopher Wedgwood1-1/+1
R=rsc, r CC=golang-dev http://codereview.appspot.com/224069 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 Cox65-311/+240
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 Cox8-14/+175
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-25dashboard: more performance tuningRuss Cox2-176/+235
various caching. make benchmark data a list in a single per-builder,benchmark record instead of having one record for each data point. significant reduction in datastore cpu charges. R=agl1, agl CC=golang-dev http://codereview.appspot.com/217111
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-24Include an Eratosthenesque concurrent prime sieve to go along with the ↵Anh Hai Trinh2-2/+174
"naive" version. R=r CC=golang-dev http://codereview.appspot.com/218046 Committer: Rob Pike <r@golang.org>
2010-02-24add Anh Hai Trinh to C&ARob Pike2-0/+2
R=rsc, adg CC=golang-dev http://codereview.appspot.com/218076
2010-02-23release.2010-02-23 part twoAndrew Gerrand0-0/+0
R=rsc CC=golang-dev http://codereview.appspot.com/218074
2010-02-23release.2010-02-23 part oneAndrew Gerrand1-0/+26
R=rsc CC=golang-dev http://codereview.appspot.com/217108
2010-02-23misc/bbedit: treat predeclared identifiers as "keywords"Anthony Starks1-1/+26
R=rsc CC=golang-dev http://codereview.appspot.com/218064 Committer: Russ Cox <rsc@golang.org>
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-23add Mark Zavislak (Google) to CONTRIBUTORSRuss Cox1-0/+1
R=adg CC=golang-dev, zavislak http://codereview.appspot.com/218072
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_mem: clarified unbuffered channel sync exampleAndrew Gerrand1-2/+3
R=rsc CC=golang-dev http://codereview.appspot.com/218063
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
2010-02-22http: use RawURL in Request.WritePetar Maymounkov2-5/+8
R=rsc CC=golang-dev http://codereview.appspot.com/217066 Committer: Russ Cox <rsc@golang.org>
2010-02-22xml: treat bool as value in UnmarshalMichael Hoisie2-9/+19
R=rsc CC=golang-dev http://codereview.appspot.com/218050 Committer: Russ Cox <rsc@golang.org>
2010-02-22effective_go: clarified small commentAndrew Gerrand1-1/+1
R=rsc, cw CC=golang-dev http://codereview.appspot.com/217085
2010-02-22http: fix bug in PostPetar Maymounkov1-1/+3
R=rsc CC=golang-dev http://codereview.appspot.com/217059 Committer: Russ Cox <rsc@golang.org>
2010-02-22json: fix quoted strings in MarshalSergei Skorobogatov2-29/+85
R=rsc CC=golang-dev http://codereview.appspot.com/217047 Committer: Russ Cox <rsc@golang.org>
2010-02-22A+C: add Sergei Skorobogatov (individual CLA)Russ Cox2-0/+2
R=adg CC=golang-dev http://codereview.appspot.com/218060
2010-02-22scanner: match go/scanner and disallow NUL character;Robert Griesemer2-6/+17
also check for illegal UTF-8 sequences R=rsc CC=golang-dev http://codereview.appspot.com/218061
2010-02-21http request URI should never be emptyMichael Hoisie1-1/+1
R=rsc, adg CC=golang-dev http://codereview.appspot.com/217071 Committer: Andrew Gerrand <adg@golang.org>