- 17 Sep, 2012 9 commits
-
-
Charles L. Dorian authored
From 159 to 47.6 ns/op; slightly more accurate. R=rsc, golang-dev, mtj, dave, remyoudompheng CC=golang-dev https://golang.org/cl/6500121
-
Francisco Souza authored
Fixes #4062. R=rsc, dave, r CC=golang-dev, nicksaika https://golang.org/cl/6488129
-
Daniel Morsing authored
In switches without an expression, the compiler would not convert the implicit true to an interface, causing codegen errors. Fixes #3980. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6497147
-
Robert Griesemer authored
Both gc and gccgo permit calls such as unsafe.Sizeof(42). The spec only permits variable arguments. This is a (backward-compatible) spec change reflecting the status quo. Seems preferrable over restricting the compilers. R=r, rsc, iant, ken CC=golang-dev https://golang.org/cl/6494140
-
Andrew Gerrand authored
I thought this was redundant since the behavior of 'go get -d' had changed. I was wrong. Should have tested more thoroughly. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6500136
-
Sanjay Menakuru authored
R=golang-dev, r CC=adg, golang-dev https://golang.org/cl/6493124
-
Andrew Gerrand authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6499127
-
Andrew Gerrand authored
Fixes #4083. R=golang-dev, r CC=golang-dev https://golang.org/cl/6498136
-
Eric Eisner authored
This also fixes the semantics of some corner cases with the empty match. TODOs for genericReplacer in the tests are fixed. benchmark old ns/op new ns/op delta BenchmarkGenericNoMatch 71395 3132 -95.61% BenchmarkGenericMatch1 75610 20280 -73.18% BenchmarkGenericMatch2 837995 86725 -89.65% R=nigeltao, rsc CC=golang-dev https://golang.org/cl/6492076
-
- 16 Sep, 2012 3 commits
-
-
Shenghou Ma authored
R=golang-dev CC=golang-dev https://golang.org/cl/6506121
-
Shenghou Ma authored
mainly for NetBSD/OpenBSD. R=bradfitz, r, rsc CC=golang-dev https://golang.org/cl/6453154
-
Shenghou Ma authored
Ref: http://svnweb.freebsd.org/base/head/sys/sys/signal.h?revision=HEAD&view=markup R=golang-dev, devon.odell, r CC=golang-dev https://golang.org/cl/6490118
-
- 14 Sep, 2012 9 commits
-
-
Rob Pike authored
Give the right name for errors, and add a test to check we're getting the errors we expect. Also fix an ordering bug (calling add after stopParse) that caused a nil indirection rather than a helpful error. Fixes #3280. R=golang-dev, adg CC=golang-dev https://golang.org/cl/6520043
-
Brad Fitzpatrick authored
Command.Start could crash before if no fds were available because a nil *os.File of /dev/null was added to the cleanup list, which crashed before returning the proper error. R=golang-dev, iant CC=golang-dev https://golang.org/cl/6514043
-
Robert Griesemer authored
Strings happen to be represented similarly to byte slices internally, but they don't quite behave like them: While strings can be indexed, sliced, and have their len() taken like byte slices, string elements are not addressable, make() and cap() is not supported, range loops operate differently, and they are immutable (and thus behave like values rather then references). Fixes #4018. R=r, rsc, iant, ken CC=golang-dev https://golang.org/cl/6503116
-
Russ Cox authored
When reading Go files, read through import block. When reading non-Go files, read only leading comments. R=nigeltao, adg, r CC=golang-dev https://golang.org/cl/6493068
-
Russ Cox authored
TBR=r TBR=r CC=golang-dev https://golang.org/cl/6496124
-
Russ Cox authored
Nothing in exp should get installed directly in bin, at least not by default. R=golang-dev, r CC=golang-dev https://golang.org/cl/6497138
-
Marcel van Lohuizen authored
instead of variables. Several reasons: - Encourage users of the API to minimize the number of creations and reuse Collate objects. - Don't rule out the possibility of using initialization code for collators. For some locales it will be possible to have very compact representations that can be quickly expanded into a proper table on demand. Other changes: - Change name of root* vars to main*, as the tables are shared between locales. - Added Locales() method to get a list of supported locales. R=r CC=golang-dev https://golang.org/cl/6498107
-
Alex Brainman authored
We have some tests (misc/cgo/test) that are disabled only because they will fail to run on go builder - see issue 3358 for details. This change will allow us to enable these tests. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6493118
-
Andrew Gerrand authored
R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/6493121
-
- 13 Sep, 2012 12 commits
-
-
Rob Pike authored
Also clean up the code and allow \U. Fixes #3007. R=golang-dev, rsc, 0xjnml CC=golang-dev https://golang.org/cl/6492105
-
Rob Pike authored
Should have done this a long time ago. Fixes #3811. R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/6488120
-
Jan Ziak authored
R=rsc CC=golang-dev https://golang.org/cl/6281048
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/6492117
-
Daniel Morsing authored
Fixes #4012. R=dave, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6490082
-
Adam Langley authored
X509KeyPair wasn't really supposed to allow the certificate and key to be in the same file, but it did work if you put the key first. Since some HTTPS servers support loading keys and certs like this, this change makes it work in either order. Fixes #3986. R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/6499103
-
Russ Cox authored
This is the easy part of issue 3528. (What to do about "noescape" is the hard part, left open.) Update #3528. R=mikesamuel, r, dsymonds CC=golang-dev https://golang.org/cl/6493113
-
Russ Cox authored
Right now we only have 32-bit ints so that's a no-op. Took the opportunity to check for some other invalid values too. Suggestions for additions or modifications welcome. R=agl CC=golang-dev https://golang.org/cl/6493112
-
Russ Cox authored
This fixes a problem with ELF tools thinking they know the format of the symbol table, as we do not use any of the standard formats for that table. This change will probably annoy the Plan 9 users, but I believe there are other incompatibilities already that mean they have to use a Go-specific nm. Fixes #3473. R=golang-dev, iant CC=golang-dev https://golang.org/cl/6500117
-
Francisco Souza authored
Fixes #3889. R=rsc, adg CC=golang-dev https://golang.org/cl/6499102
-
Nigel Tao authored
benchmark old ns/op new ns/op delta BenchmarkEncodeGray 23616080 5624558 -76.18% BenchmarkEncodeNRGBOpaque 34181260 17144380 -49.84% BenchmarkEncodeNRGBA 41235820 20345990 -50.66% BenchmarkEncodePaletted 5594652 5620362 +0.46% BenchmarkEncodeRGBOpaque 17242210 17168820 -0.43% BenchmarkEncodeRGBA 66515720 67243560 +1.09% R=r CC=golang-dev https://golang.org/cl/6490099
-
Andrew Gerrand authored
This change messes with anchor links. It obscures the item being linked to. I don't see a way around it. Undoing for now. Fixes #4071. ««« original CL description doc css: topbar sticks to the top of large windows. Rationale: for large screens, the convenience of not having to scroll to the top of the page to do a search outweighs having less vertical space. Tested with Chrome, Firefox, Safari with various window and text sizes. R=adg CC=gobot, golang-dev https://golang.org/cl/6493071 Committer: Andrew Gerrand <adg@golang.org> »»» R=golang-dev, r, dsymonds CC=golang-dev https://golang.org/cl/6488121
-
- 12 Sep, 2012 7 commits
-
-
Russ Cox authored
Fixes #4041. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6495121
-
Jan Ziak authored
R=rsc, nigeltao, minux.ma CC=golang-dev https://golang.org/cl/6290043
-
Russ Cox authored
go tool dist env -w is supposed to print a Windows batch file. Normally Windows will execute batch files without \r before \n, but issue 3060 reports that if the file ends up containing paths written in Chinese, Windows 7 cannot execute it without the \r. So add the \r. Fixes #3060. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6498120
-
Russ Cox authored
The (and not) arguably sounds like it is trying to say something - and not what?. Just an idea, won't be hurt if it gets rejected. R=gri, dsymonds, r CC=golang-dev https://golang.org/cl/6498115
-
Andreas Jellinghaus authored
SO_PEERCRED on unix domain socket will fill a Ucred struct, thus linux needs a custom Getsockopt variant. Fixes #3836. R=golang-dev, rsc, iant CC=golang-dev https://golang.org/cl/6445104
-
Ian Lance Taylor authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/6494121
-
Nigel Tao authored
Code higher up in the function already catches these cases. R=remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6496106
-