- 28 Oct, 2011 2 commits
-
-
Russ Cox authored
We only guarantee that the main goroutine runs on the main OS thread for initialization. Programs that wish to preserve that property for main.main can call runtime.LockOSThread. This is what programs used to do before we unleashed goroutines during init, so it is both a simple fix and keeps existing programs working. R=iant, r, dave, dvyukov CC=golang-dev https://golang.org/cl/5309070
-
Russ Cox authored
I found these by adding a check to govet, but the check produces far too many false positives to be useful. Even so, these few seem worth cleaning up. R=golang-dev, bradfitz, iant CC=golang-dev https://golang.org/cl/5311067
-
- 27 Oct, 2011 6 commits
-
-
Andrew Balholm authored
Pass tests1.dat, test 50: <!DOCTYPE html><script> <!-- </script> --> </script> EOF | <!DOCTYPE html> | <html> | <head> | <script> | " <!-- " | " " | <body> | "--> EOF" Also pass tests through test 54: <!DOCTYPE html><title>U-test</title><body><div><p>Test<u></p></div></body> R=nigeltao CC=golang-dev https://golang.org/cl/5311066
-
Alex Brainman authored
R=jdpoirier CC=golang-dev https://golang.org/cl/5305048
-
Russ Cox authored
This is true of the existing implementations, and I think it is an important property to guarantee. R=golang-dev, r, borman, r CC=golang-dev https://golang.org/cl/5321058
-
Russ Cox authored
R=iant CC=golang-dev, gri https://golang.org/cl/5327048
-
Julian Phillips authored
goinstall has built in support for a few common code hosting sites. The identification of which vcs tool should be used was based purely on a regex match against the provided import path. The problem with this approach is that it requires distinct import paths for different vcs tools on the same site. Since bitbucket has recently starting hosting Git repositories under the same bitbucket.org/user/project scheme as it already hosts Mercurial repositories, now would seem a good time to take a more flexible approach. We still match the import path against a list of regexes, but now the match is purely to distinguish the different hosting sites. Once the site is identified, the specified function is called with the repo and path matched out of the import string. This function is responsible for creating the vcsMatch structure that tells us what we need to download the code. For github and launchpad, only one vcs tool is currently supported, so these functions can simply return a vcsMatch structure. For googlecode, we retain the behaviour of determing the vcs from the import path - but now it is done by the function instead of the regex. For bitbucket, we use api.bitbucket.org to find out what sort of repository the specified import path corresponds to - and then construct the appropriate vcsMatch structure. R=golang-dev, adg CC=golang-dev, rsc https://golang.org/cl/5306069
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5306070
-
- 26 Oct, 2011 32 commits
-
-
Andrew Balholm authored
Also correctly handle EOF inside a <style> element. Pass tests1.dat, test 49: <!DOCTYPE html><style> EOF | <!DOCTYPE html> | <html> | <head> | <style> | " EOF" | <body> R=nigeltao CC=golang-dev https://golang.org/cl/5321057
-
Andrew Balholm authored
Pass tests1.dat, test 34: <!DOCTYPE html>A<option>B<optgroup>C<select>D</option>E | <!DOCTYPE html> | <html> | <head> | <body> | "A" | <option> | "B" | <optgroup> | "C" | <select> | "DE" Also passes tests 35-48. Test 48 is: </ COM--MENT > R=nigeltao CC=golang-dev https://golang.org/cl/5311063
-
Russ Cox authored
Emitting ELF symbol table is the default behavior now and cannot be disabled. R=golang-dev, iant CC=golang-dev https://golang.org/cl/5319050
-
Ron Minnich authored
Change the name of cas() in cc to newcase() to avoid a NIX conflict. cas() is used in cc to create a new Case struct. There is a name conflict in that cas() is a commonly-used name for compare and swap. Since cas() is only used internally in the compiler in 3 places, change the name to avoid a wider conflict with the NIX runtime. This issue might well come up on other OSes in the future anyway, as the name is fairly common. R=rsc CC=golang-dev https://golang.org/cl/5294071
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5327045
-
Jongmin Kim authored
According to adding rune type R=adg, dsymonds CC=golang-dev https://golang.org/cl/5319048
-
Russ Cox authored
Small change to go/ast, go/parser, go/printer so that gofix can delete the blank line left from deleting an import. R=golang-dev, bradfitz, adg CC=golang-dev https://golang.org/cl/5321046
-
Russ Cox authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5308057
-
Russ Cox authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/5305062
-
Brad Fitzpatrick authored
R=golang-dev, rsc, iant CC=golang-dev https://golang.org/cl/5312057
-
Adam Langley authored
Although there's still no concrete security reason not to use 3, I think Bleichenbacher has convinced me that it's a useful defense and it's what everyone else does. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5307060
-
Alex Brainman authored
R=rsc, adg CC=golang-dev https://golang.org/cl/5302058
-
Alex Brainman authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5294060
-
Mikio Hara authored
R=lvd CC=golang-dev https://golang.org/cl/5314060
-
Andrew Gerrand authored
««« original CL description http: remove Connection header in ReverseProxy Fixes #2342 R=golang-dev, adg CC=golang-dev https://golang.org/cl/5302057 »»» R=bradfitz, dsymonds CC=golang-dev https://golang.org/cl/5296055
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/5304063
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/5297062
-
Russ Cox authored
Nothing terribly interesting here. (!) Since the public APIs are all in terms of UTF-8, the changes are all internal only. R=mpvl, gri, r CC=golang-dev https://golang.org/cl/5309042
-
Russ Cox authored
Nothing terribly interesting here. R=golang-dev, r, borman CC=golang-dev https://golang.org/cl/5315043
-
Russ Cox authored
ReadRune, WriteRune change signature. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/5314043
-
Russ Cox authored
Everything changes. R=r CC=golang-dev https://golang.org/cl/5310045
-
Russ Cox authored
Nothing terribly interesting here. R=r, gri CC=golang-dev https://golang.org/cl/5308042
-
Russ Cox authored
Nothing terribly interesting here. R=mikesamuel, nigeltao, r CC=golang-dev https://golang.org/cl/5307044
-
Russ Cox authored
Various rune-based APIs change. R=golang-dev, r CC=golang-dev https://golang.org/cl/5306044
-
Russ Cox authored
Nothing terribly interesting here. R=gri CC=golang-dev https://golang.org/cl/5305046
-
Russ Cox authored
Lots of internal edits. Formatter and Scanner interfaces change (clients to be checked by govet). R=r CC=golang-dev https://golang.org/cl/5305045
-
Russ Cox authored
R=golang-dev, hectorchu CC=golang-dev https://golang.org/cl/5304044
-
Russ Cox authored
Public API of syntax tree changes. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/5302046
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/5301053
-
Russ Cox authored
API question: is a scanner token an int or a rune? Since the rune is the common case and the token values are the special (negative) case, I chose rune. But it could easily go the other way. R=gri CC=golang-dev https://golang.org/cl/5301049
-
Russ Cox authored
Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev https://golang.org/cl/5300043
-
Russ Cox authored
R=ken, r CC=golang-dev https://golang.org/cl/5293046
-