]>
Cypherpunks repositories - gostls13.git/log
Nigel Tao [Sun, 6 Nov 2011 22:38:40 +0000 (09:38 +1100)]
html: be able to test more than one testdata file.
R=andybalholm
CC=golang-dev
https://golang.org/cl/
5351041
Luuk van Dijk [Sun, 6 Nov 2011 21:14:15 +0000 (22:14 +0100)]
gc: Better error message for range over non-receive channel.
Fixes #2354
R=rsc
CC=golang-dev
https://golang.org/cl/
5346044
Luuk van Dijk [Sun, 6 Nov 2011 21:13:54 +0000 (22:13 +0100)]
gc: Switch related errors should use plain format.
Fixes #2422.
R=rsc
CC=golang-dev
https://golang.org/cl/
5353046
Charles L. Dorian [Sat, 5 Nov 2011 19:25:36 +0000 (12:25 -0700)]
math: faster Gamma
Having the compiler count the number of array elements speeds up Gamma from 63.7 to 56.6 ns/op.
R=rsc, golang-dev, r
CC=golang-dev
https://golang.org/cl/
5362043
David Symonds [Sat, 5 Nov 2011 00:28:23 +0000 (11:28 +1100)]
gofix: avoid panic on body-less functions in netudpgroup.
R=rsc, r
CC=golang-dev
https://golang.org/cl/
5347041
Ian Lance Taylor [Fri, 4 Nov 2011 21:12:35 +0000 (14:12 -0700)]
test: make closedchan.go exit with failure if something fails
R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/
5356042
Charles L. Dorian [Fri, 4 Nov 2011 19:35:59 +0000 (15:35 -0400)]
math: improved high-angle test for Cos, Sin and Tan
Maximum error for 386 is "close" (1e-14). For amd64, it's "veryclose" (4e-16).
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/
5340042
Jani Monoses [Fri, 4 Nov 2011 19:07:34 +0000 (15:07 -0400)]
goinstall: allow packages from launchpad.net/~user branches.
The permitted filename characters should include ~ to allow
the names of user-owned branches in Launchpad.
R=golang-dev, rsc, n13m3y3r, gustavo
CC=golang-dev, gustavo.niemeyer
https://golang.org/cl/
5280052
Gustavo Niemeyer [Fri, 4 Nov 2011 19:05:32 +0000 (15:05 -0400)]
CONTRIBUTORS: add Rietveld address for Jani Monoses
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5340046
Mike Samuel [Fri, 4 Nov 2011 17:09:21 +0000 (13:09 -0400)]
html/template: wraps package template instead of exposing func Escape
This does escaping on first execution.
template.go defines the same interface elements as package template.
It requires rather more duplication of code than I'd like, but I'm
not clear how to avoid that.
Maybe instead of
mySet.ParseGlob(...)
template.ParseSetGlob(...)
mySet.ParseFiles(...)
mySet.ParseTemplateFiles(...)
template.ParseTemplateFiles(...)
we combine these into a fileset abstraction that can be wrapped
var fileset template.FileSet
fileset.Glob(...) // Load a few files by glob
fileset.Files(...) // Load a few {{define}}d files
fileset.TemplateFiles(...) // Load a few files as template bodies
fileset.Funcs(...) // Make the givens func available to templates
// Do the parsing.
set, err := fileset.ParseSet()
// or set, err := fileset.ParseInto(set)
or provide an interface that can receive filenames and functions and
parse messages:
type Bundle interface {
TemplateFile(string)
File(string)
Funcs(FuncMap)
}
and define template.Parse* to handle the file-system stuff and send
messages to a bundle:
func ParseFiles(b Bundle, filenames ...string)
R=r, r
CC=golang-dev
https://golang.org/cl/
5270042
Brad Fitzpatrick [Fri, 4 Nov 2011 16:17:46 +0000 (09:17 -0700)]
http: support Trailers in ReadRequest
Available after closing Request.Body.
R=adg, rsc
CC=golang-dev
https://golang.org/cl/
5348041
Luuk van Dijk [Fri, 4 Nov 2011 16:03:50 +0000 (17:03 +0100)]
gc: detect type switch variable not used cases.
Fixes #873
Fixes #2162
R=rsc
CC=golang-dev
https://golang.org/cl/
5341043
Gustavo Niemeyer [Fri, 4 Nov 2011 13:50:20 +0000 (09:50 -0400)]
html,bzip2,sql: rename Error methods that return error to Err
There are three classes of methods/functions called Error:
a) The Error method in the just introduced error interface
b) Error methods that create or report errors (http.Error, etc)
c) Error methods that return errors previously associated with
the receiver (Tokenizer.Error, rows.Error, etc).
This CL introduces the convention that methods in case (c)
should be named Err.
The reasoning for the change is:
- The change differentiates the two kinds of APIs based on
names rather than just on signature, unloading Error a bit
- Err is closer to the err variable name that is so commonly
used with the intent of verifying an error
- Err is shorter and thus more convenient to be used often
on error verifications, such as in iterators following the
convention of the sql package.
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/
5327064
David Symonds [Fri, 4 Nov 2011 12:45:38 +0000 (23:45 +1100)]
template: format error with pointer receiver.
This is a continuation of
982d70c6d5d6 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5348042
Russ Cox [Fri, 4 Nov 2011 12:38:10 +0000 (08:38 -0400)]
runtime: fix linux/arm nanotime?
TBR=r
CC=golang-dev
https://golang.org/cl/
5354041
Russ Cox [Fri, 4 Nov 2011 11:33:55 +0000 (07:33 -0400)]
template: format errors
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5340043
Russ Cox [Fri, 4 Nov 2011 11:24:39 +0000 (07:24 -0400)]
runtime: fix openbsd nanotime?
TBR=r
CC=golang-dev
https://golang.org/cl/
5353041
Andrew Gerrand [Fri, 4 Nov 2011 06:55:21 +0000 (17:55 +1100)]
bytes: fix typo and resolve to be less idiotic next time
R=bradfitz
CC=golang-dev
https://golang.org/cl/
5340044
Andrew Gerrand [Fri, 4 Nov 2011 06:46:52 +0000 (17:46 +1100)]
bytes: add Contains function
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5349041
Andrew Balholm [Fri, 4 Nov 2011 04:48:11 +0000 (15:48 +1100)]
html: properly close <tr> element when an new <tr> starts.
Pass tests1.dat, test 87:
<table><tr><tr><td><td><span><th><span>X</table>
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <tr>
| <td>
| <td>
| <span>
| <th>
| <span>
| "X"
R=nigeltao
CC=golang-dev
https://golang.org/cl/
5343041
Brad Fitzpatrick [Fri, 4 Nov 2011 03:37:02 +0000 (20:37 -0700)]
http: doc nits
Remove the last two "convenience" mentions.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5344041
Brad Fitzpatrick [Fri, 4 Nov 2011 03:05:13 +0000 (20:05 -0700)]
http: clarify Request docs
R=rsc
CC=golang-dev
https://golang.org/cl/
5342041
Brad Fitzpatrick [Fri, 4 Nov 2011 01:12:51 +0000 (18:12 -0700)]
httputil: move dump and chunking functions out of http
This moves DumpRequest, DumpResponse, NewChunkedReader,
and NewChunkedWriter out of http, as part of the continued
http diet plan.
Also, adds DumpRequestOut (for dumping outbound requests),
since DumpRequest's ambiguity (the "wire representation" in
what direction?) was often a source of confusion and bug
reports.
R=rsc, adg
CC=golang-dev
https://golang.org/cl/
5339041
Rob Pike [Fri, 4 Nov 2011 01:05:14 +0000 (18:05 -0700)]
gob: fix bug when registering the same type multiple times
Need to compare user type, not base type.
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/
5340041
Brad Fitzpatrick [Fri, 4 Nov 2011 00:21:58 +0000 (17:21 -0700)]
http: only recognize application/x-www-form-urlencoded in ParseForm
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
5322070
Brad Fitzpatrick [Thu, 3 Nov 2011 22:54:08 +0000 (15:54 -0700)]
httputil: move ReverseProxy out of http
http diet plan, continued.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5305090
Andrew Balholm [Thu, 3 Nov 2011 22:29:06 +0000 (09:29 +1100)]
html: move <link> element from after <head> into <head>
Pass tests1.dat, test 85:
<head><meta></head><link>
| <html>
| <head>
| <meta>
| <link>
| <body>
R=nigeltao
CC=golang-dev
https://golang.org/cl/
5297079
Brad Fitzpatrick [Thu, 3 Nov 2011 21:44:29 +0000 (14:44 -0700)]
net/http/httputil: new package; move ClientConn and ServerConn
Part of http diet plan.
More of the lesser-used and newcomer-misleading parts of http will
move here.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
5336049
Russ Cox [Thu, 3 Nov 2011 21:35:28 +0000 (17:35 -0400)]
time: faster Nanoseconds call
runtime knows how to get the time of day
without allocating memory.
R=golang-dev, dsymonds, dave, hectorchu, r, cw
CC=golang-dev
https://golang.org/cl/
5297078
Russ Cox [Thu, 3 Nov 2011 21:35:11 +0000 (17:35 -0400)]
runtime: fix set and not used
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5305087
David Symonds [Thu, 3 Nov 2011 21:34:37 +0000 (08:34 +1100)]
gofix: make fix order implicit by date.
This partially undoes
8fd7e6d070c8 , but preserves its semantics.
More importantly, it results in the data about each fix being
decentralised, which makes it easier for new fixes to be added,
and other gofix users to slot new fixes in.
It also adds some useful metadata that could be used in the future.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5306092
Rob Pike [Thu, 3 Nov 2011 21:18:06 +0000 (14:18 -0700)]
os,text,unicode: renamings
This is Go 1 package renaming CL #4.
This one merely moves the source; the import strings will be
changed after the next weekly release.
This one moves pieces into os, text, and unicode.
exec -> os/exec
scanner -> text/scanner
tabwriter -> text/tabwriter
template -> text/template
template/parse -> text/template/parse
utf16 -> unicode/utf16
utf8 -> unicode/utf8
This should be the last of the source-rearranging CLs.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5331066
Vincent Vanackere [Thu, 3 Nov 2011 21:01:30 +0000 (14:01 -0700)]
all: rename os.EOF to io.EOF in various non-code contexts
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5334050
Rob Pike [Thu, 3 Nov 2011 20:26:43 +0000 (13:26 -0700)]
net: renamings
This is Go 1 package renaming CL #3.
This one merely moves the source; the import strings will be
changed after the next weekly release.
This one moves pieces into net.
http -> net/http
http/cgi -> net/http/cgi
http/fcgi -> net/http/fcgi
http/pprof -> net/http/pprof
http/httptest -> net/http/httptest
mail -> net/mail
rpc -> net/rpc
rpc/jsonrpc -> net/rpc/jsonrpc
smtp -> net/smtp
url -> net/url
Also remove rand (now math/rand) from NOTEST - it has a test.
The only edits are in Makefiles and deps.bash.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5335048
Rob Pike [Thu, 3 Nov 2011 19:42:57 +0000 (12:42 -0700)]
html,log,math: renamings
This is Go 1 package renaming CL #2.
This one merely moves the source; the import strings will be
changed after the next weekly release.
exp/template/html -> html/template
big -> math/big
cmath -> math/cmplx
rand -> math/rand
syslog -> log/syslog
The only edits are in Makefiles and deps.bash.
Note that this CL moves exp/template/html out of exp. I decided
to do that so all the renamings can be done together, even though
the API (and that of template, for that matter) is still fluid.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
5332053
Brad Fitzpatrick [Thu, 3 Nov 2011 19:35:56 +0000 (12:35 -0700)]
http: don't use ClientConn in Transport
ClientConn's main feature (pipelining support)
wasn't being used anyway. Ends up simpler to
just not use it.
This is prep for the http diet, moving ClientConn,
ServerConn, etc into http/httputil.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5305088
Russ Cox [Thu, 3 Nov 2011 19:30:57 +0000 (15:30 -0400)]
container/heap: document what Push and Pop do
Now that vector is gone, there is no precedent to refer to.
This is a confusing point for people looking to use the
package.
R=golang-dev, r, cw
CC=golang-dev
https://golang.org/cl/
5322069
Rob Pike [Thu, 3 Nov 2011 19:19:07 +0000 (12:19 -0700)]
deps.bash: attempt to fix the windows build
Use simpler shell constructs.
R=golang-dev
CC=golang-dev
https://golang.org/cl/
5297080
Rob Pike [Thu, 3 Nov 2011 18:39:52 +0000 (11:39 -0700)]
encoding: move asn1, csv, gob, json, xml into encoding
This is Go 1 package renaming CL #1.
This one merely moves the source; the import strings will be
changed after the next weekly release.
The only edits are in Makefiles.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
5331060
Luuk van Dijk [Thu, 3 Nov 2011 16:51:15 +0000 (17:51 +0100)]
gc: Don't pollute the xmethod list with non-methods.
Fixes #2355.
I have a test, but not sure if it's worth adding. Instead i've made
the patching-over in reflect.c methods more fatal and more descriptive.
R=rsc
CC=golang-dev
https://golang.org/cl/
5302082
Russ Cox [Thu, 3 Nov 2011 16:44:51 +0000 (12:44 -0400)]
gc, ld: sync pathtoprefix + add comments
R=lvd, lvd
CC=golang-dev
https://golang.org/cl/
5332051
Russ Cox [Thu, 3 Nov 2011 16:07:47 +0000 (12:07 -0400)]
gopack: do not look for Go metadata in non-Go objects
Fixes #2333.
R=r
CC=golang-dev
https://golang.org/cl/
5316075
Russ Cox [Thu, 3 Nov 2011 15:32:37 +0000 (11:32 -0400)]
8a: fix IMULL grammar
R=ken2
CC=golang-dev
https://golang.org/cl/
5298091
Andrew Balholm [Thu, 3 Nov 2011 06:12:13 +0000 (17:12 +1100)]
html: parse <link> elements in <head>
Pass tests1.dat, test 83:
<title><meta></title><link><title><meta></title>
| <html>
| <head>
| <title>
| "<meta>"
| <link>
| <title>
| "<meta>"
| <body>
Also pass test 84:
<style><!--</style><meta><script>--><link></script>
R=nigeltao
CC=golang-dev
https://golang.org/cl/
5331061
Andrew Gerrand [Thu, 3 Nov 2011 03:52:38 +0000 (14:52 +1100)]
builtin: remove errant spaces
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5337041
David Symonds [Thu, 3 Nov 2011 03:34:35 +0000 (14:34 +1100)]
http: update mime sniffing doc reference.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5303095
Fumitoshi Ukai [Thu, 3 Nov 2011 03:13:39 +0000 (14:13 +1100)]
websocket: return an error HTTP response for bad websocket request.
websocket spec had changed server-side requiements to return
an HTTP response with an appropriate error code (such as 400 Bad
Request) when it finds client did not send a handshake that matches
websocket protocol, rather than just closing connection.
It needs to flush out response before closing connection.
Fixes issues 2396.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5318072
Mikio Hara [Thu, 3 Nov 2011 01:26:33 +0000 (10:26 +0900)]
test: clear execute bit from source file
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5330068
Andrew Balholm [Wed, 2 Nov 2011 23:11:06 +0000 (10:11 +1100)]
html: properly close <marquee> elements.
Pass tests1.dat, test 80:
<a href=a>aa<marquee>aa<a href=b>bb</marquee>aa
| <html>
| <head>
| <body>
| <a>
| href="a"
| "aa"
| <marquee>
| "aa"
| <a>
| href="b"
| "bb"
| "aa"
Also pass tests through test 82:
<!DOCTYPE html><spacer>foo
R=nigeltao
CC=golang-dev
https://golang.org/cl/
5319071
Luuk van Dijk [Wed, 2 Nov 2011 21:33:15 +0000 (22:33 +0100)]
gc: package paths in symbol names: don't escape periods before last slash, always escape >=0x7f.
R=rsc
CC=golang-dev
https://golang.org/cl/
5323071
Russ Cox [Wed, 2 Nov 2011 19:54:16 +0000 (15:54 -0400)]
all: sort imports
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5319072
Russ Cox [Wed, 2 Nov 2011 19:53:57 +0000 (15:53 -0400)]
gofmt, gofix: sort imports
Add ast.SortImports(fset, file) to go/ast, for use by both programs.
Fixes #346.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5330069
Rob Pike [Wed, 2 Nov 2011 19:06:36 +0000 (12:06 -0700)]
builtin: document the basic types
The recursive definitions are illegal Go, but godoc doesn't mind.
R=bradfitz, r, n13m3y3r, rsc
CC=golang-dev
https://golang.org/cl/
5322067
Brad Fitzpatrick [Wed, 2 Nov 2011 18:46:04 +0000 (11:46 -0700)]
exp/sql: finish transactions, flesh out types, docs
Fixes #2328 (float, bool)
R=rsc, r
CC=golang-dev
https://golang.org/cl/
5294067
Charles L. Dorian [Wed, 2 Nov 2011 18:01:21 +0000 (14:01 -0400)]
math: improved accuracy for Tan
R=rsc
CC=golang-dev
https://golang.org/cl/
5298087
Luuk van Dijk [Wed, 2 Nov 2011 16:18:53 +0000 (17:18 +0100)]
gc: helpful message instead of internal error on method call on pointer to pointer.
Fixes #2343.
R=rsc
CC=golang-dev
https://golang.org/cl/
5332048
Brad Fitzpatrick [Wed, 2 Nov 2011 15:30:50 +0000 (08:30 -0700)]
bufio: return nil line from ReadLine on error, as documented
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5316069
Luuk van Dijk [Wed, 2 Nov 2011 14:36:33 +0000 (15:36 +0100)]
gc: small fixes for printing.
mark OADDR inserted by typecheck as implicit
OCOPY takes ->left and ->right, not ->list
OMAKE*'s can all have arguments
precedence for OIND was initalized twice
fixes #2414
R=rsc, dave
CC=golang-dev
https://golang.org/cl/
5319065
Dmitriy Vyukov [Wed, 2 Nov 2011 13:42:01 +0000 (16:42 +0300)]
runtime: unify mutex code across OSes
The change introduces 2 generic mutex implementations
(futex- and semaphore-based). Each OS chooses a suitable mutex
implementation and implements few callbacks (e.g. futex wait/wake).
The CL reduces code duplication, extends some optimizations available
only on Linux/Windows to other OSes and provides ground
for futher optimizations. Chan finalizers are finally eliminated.
(Linux/amd64, 8 HT cores)
benchmark old new
BenchmarkChanContended 83.6 77.8 ns/op
BenchmarkChanContended-2 341 328 ns/op
BenchmarkChanContended-4 382 383 ns/op
BenchmarkChanContended-8 390 374 ns/op
BenchmarkChanContended-16 313 291 ns/op
(Darwin/amd64, 2 cores)
benchmark old new
BenchmarkChanContended 159 172 ns/op
BenchmarkChanContended-2 6735 263 ns/op
BenchmarkChanContended-4 10384 255 ns/op
BenchmarkChanCreation 1174 407 ns/op
BenchmarkChanCreation-2 4007 254 ns/op
BenchmarkChanCreation-4 4029 246 ns/op
R=rsc, jsing, hectorchu
CC=golang-dev
https://golang.org/cl/
5140043
Nigel Tao [Wed, 2 Nov 2011 07:03:45 +0000 (18:03 +1100)]
json: fix typo in scanner_test.go.
R=dsymonds
CC=golang-dev
https://golang.org/cl/
5303092
Alex Brainman [Wed, 2 Nov 2011 06:11:40 +0000 (17:11 +1100)]
net: implement LookupTXT for windows
R=rsc
CC=golang-dev
https://golang.org/cl/
5318056
Andrew Gerrand [Wed, 2 Nov 2011 06:03:36 +0000 (15:03 +0900)]
builtin: document built-in error type
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/
5307080
David Symonds [Wed, 2 Nov 2011 05:25:24 +0000 (16:25 +1100)]
gc: fix spelling of "GOEXPERIMENT" in a comment.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5323070
Rob Pike [Wed, 2 Nov 2011 03:57:17 +0000 (20:57 -0700)]
spec: delete spurious article
A profound change to christen the new tag.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
5327062
Russ Cox [Wed, 2 Nov 2011 03:26:10 +0000 (23:26 -0400)]
undo CL
5330066 /
6a5647d82728
I promised it wouldn't last very long.
People who really need this can sync to
6a5647d82728 .
««« original CL description
gc: add GOEXPERIMENT=os.Error
This won't last long, I promise.
R=ken2
CC=golang-dev
https://golang.org/cl/
5330066
»»»
R=ken2
CC=golang-dev
https://golang.org/cl/
5333053
Russ Cox [Wed, 2 Nov 2011 03:24:28 +0000 (23:24 -0400)]
gc: add GOEXPERIMENT=os.Error
This won't last long, I promise.
R=ken2
CC=golang-dev
https://golang.org/cl/
5330066
Andrew Gerrand [Wed, 2 Nov 2011 03:01:51 +0000 (12:01 +0900)]
tag weekly.2011-11-02
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5311083
Andrew Gerrand [Wed, 2 Nov 2011 03:00:13 +0000 (12:00 +0900)]
weekly.2011-11-02
R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/
5308077
Russ Cox [Wed, 2 Nov 2011 02:58:09 +0000 (22:58 -0400)]
all: rename os.Error to error in various non-code contexts
R=adg
CC=golang-dev
https://golang.org/cl/
5328062
Russ Cox [Wed, 2 Nov 2011 02:19:40 +0000 (22:19 -0400)]
os: fixes for error (plan9)
The Plan 9 build stops in runtime,
but might as well fix these anyway.
R=adg
CC=golang-dev
https://golang.org/cl/
5336045
Russ Cox [Wed, 2 Nov 2011 02:18:16 +0000 (22:18 -0400)]
net: update for error (linux)
R=adg
CC=golang-dev
https://golang.org/cl/
5303091
Russ Cox [Wed, 2 Nov 2011 02:12:41 +0000 (22:12 -0400)]
os, syscall: update for error
R=adg
CC=golang-dev
https://golang.org/cl/
5333052
Russ Cox [Wed, 2 Nov 2011 02:06:05 +0000 (22:06 -0400)]
non-pkg: gofix -r error -force=error
R=golang-dev, iant, r, r
CC=golang-dev
https://golang.org/cl/
5307066
Russ Cox [Wed, 2 Nov 2011 02:05:34 +0000 (22:05 -0400)]
src/pkg/[n-z]*: gofix -r error -force=error
R=golang-dev, bsiegert, iant
CC=golang-dev
https://golang.org/cl/
5294074
Russ Cox [Wed, 2 Nov 2011 02:04:37 +0000 (22:04 -0400)]
src/pkg/[a-m]*: gofix -r error -force=error
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
5322051
Rob Pike [Wed, 2 Nov 2011 01:50:21 +0000 (21:50 -0400)]
tutorial,effective_go: prepare for error change
R=adg, rsc
CC=golang-dev
https://golang.org/cl/
5316068
Russ Cox [Wed, 2 Nov 2011 01:49:44 +0000 (21:49 -0400)]
exec: introduce ExitError
The existing code uses *os.Waitmsg as an os.Error,
but *os.Waitmsg is really just a stringer.
Introduce an explicit error type for the real error.
Not to be submitted until just before error goes in;
the gofix for error updates type assertions
err.(*os.Waitmsg)
to
err.(*exec.ExitError)
The seemingly redundant String method will become
an Error method when error goes in, and will no longer
be redundant.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
5331044
Russ Cox [Wed, 2 Nov 2011 01:49:33 +0000 (21:49 -0400)]
exp/ebnf: manual fixup for error
(The definition of ErrorList is in another file, so gofix
has no hope of getting this right.)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
5330043
Russ Cox [Wed, 2 Nov 2011 01:49:22 +0000 (21:49 -0400)]
cgo, gotest: use error instead of os.Error in generated code
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
5319057
Russ Cox [Wed, 2 Nov 2011 01:49:08 +0000 (21:49 -0400)]
os: use error, io.EOF
R=r
CC=golang-dev
https://golang.org/cl/
5298073
Russ Cox [Wed, 2 Nov 2011 01:48:52 +0000 (21:48 -0400)]
io: use error, add EOF, avoid os
R=r, r
CC=golang-dev
https://golang.org/cl/
5311068
Russ Cox [Wed, 2 Nov 2011 01:48:27 +0000 (21:48 -0400)]
runtime: update for error
R=golang-dev, iant, r
CC=golang-dev
https://golang.org/cl/
5306075
Russ Cox [Wed, 2 Nov 2011 01:47:33 +0000 (21:47 -0400)]
exp/types: add error type to universe
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
5327051
David Symonds [Wed, 2 Nov 2011 01:47:07 +0000 (21:47 -0400)]
misc/vim: add error type.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5331046
Russ Cox [Wed, 2 Nov 2011 01:46:59 +0000 (21:46 -0400)]
errors: new package
The only function is errors.New, at least for now.
R=r, gustavo, adg, r
CC=golang-dev
https://golang.org/cl/
5321061
Russ Cox [Wed, 2 Nov 2011 01:46:41 +0000 (21:46 -0400)]
gc: add error type
R=ken
CC=golang-dev
https://golang.org/cl/
5331043
Russ Cox [Wed, 2 Nov 2011 01:45:37 +0000 (21:45 -0400)]
http: avoid name error in test
R=adg
CC=golang-dev
https://golang.org/cl/
5316070
Russ Cox [Wed, 2 Nov 2011 01:45:21 +0000 (21:45 -0400)]
gofix: error fix
To make the error fix more useful, expand typecheck to gather
more information about struct fields, typecheck range statements,
typecheck indirect and index of named types, and collect information
about assignment conversions.
Also, change addImport to rename top-level uses of a to-be-imported
identifier to avoid conflicts. This duplicated some of the code in
the url fix, so that fix is now shorter.
R=iant, r, r
CC=golang-dev
https://golang.org/cl/
5305066
Russ Cox [Wed, 2 Nov 2011 01:45:02 +0000 (21:45 -0400)]
spec: add error
R=golang-dev, dsymonds, r, r
CC=golang-dev
https://golang.org/cl/
5308072
Andrew Gerrand [Wed, 2 Nov 2011 01:40:35 +0000 (10:40 +0900)]
tag weekly.2011-11-01
R=golang-dev, rsc, dsymonds
CC=golang-dev
https://golang.org/cl/
5305085
Andrew Gerrand [Wed, 2 Nov 2011 01:37:01 +0000 (10:37 +0900)]
weekly.2011-11-01
R=rsc, r
CC=golang-dev
https://golang.org/cl/
5336044
Andrew Balholm [Wed, 2 Nov 2011 00:47:05 +0000 (11:47 +1100)]
html: stop at scope marker node when generating implied </a> tags
A <a> tag generates implied end tags for any open <a> elements.
But it shouldn't do that when it is inside a table cell the the open <a>
is outside the table.
So stop the search for an open <a> when we reach a scope marker node.
Pass tests1.dat, test 78:
<a href="blah">aba<table><tr><td><a href="foo">br</td></tr>x</table>aoe
| <html>
| <head>
| <body>
| <a>
| href="blah"
| "abax"
| <table>
| <tbody>
| <tr>
| <td>
| <a>
| href="foo"
| "br"
| "aoe"
Also pass test 79:
<table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe
R=nigeltao
CC=golang-dev
https://golang.org/cl/
5320063
Nigel Tao [Tue, 1 Nov 2011 22:42:25 +0000 (09:42 +1100)]
html: refactor the blacklist for the "render and re-parse" test.
R=andybalholm
CC=golang-dev, mikesamuel
https://golang.org/cl/
5331056
Mike Solomon [Tue, 1 Nov 2011 17:31:29 +0000 (10:31 -0700)]
textproto: prevent long lines in HTTP headers from causing HTTP 400 responses.
This fixes the issue without an extra copy in the average case.
R=golang-dev, ality, bradfitz
CC=golang-dev
https://golang.org/cl/
5272049
Rob Pike [Tue, 1 Nov 2011 16:45:04 +0000 (09:45 -0700)]
doc/Makefile: add 'all' rule to build all docs
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
5334044
Russ Cox [Tue, 1 Nov 2011 15:02:43 +0000 (11:02 -0400)]
gc: test + fix escape analysis bug
R=lvd
CC=golang-dev
https://golang.org/cl/
5333049
Andrew Gerrand [Tue, 1 Nov 2011 07:09:29 +0000 (16:09 +0900)]
doc: refer to tour.golang.org instead of go-tour.appspot.com
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5331055
Charles L. Dorian [Tue, 1 Nov 2011 06:13:33 +0000 (15:13 +0900)]
doc: fix typo in spec example code comment
R=r, golang-dev, adg
CC=golang-dev
https://golang.org/cl/
5308071
Robert Griesemer [Tue, 1 Nov 2011 05:09:22 +0000 (01:09 -0400)]
go spec: introduce rune type
R=r, iant, rsc, r
CC=golang-dev
https://golang.org/cl/
5293048
Russ Cox [Tue, 1 Nov 2011 04:29:41 +0000 (00:29 -0400)]
rpc: avoid infinite loop on input error
Fixes #1828.
Fixes #2179.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
5305084