aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-09weekly.2011-11-09weekly.2011-11-09Andrew Gerrand
R=golang-dev, r CC=golang-dev https://golang.org/cl/5344055
2011-11-08renaming_4: gofix -r everything/but/src/pkgRob Pike
R=rsc CC=golang-dev https://golang.org/cl/5338043
2011-11-08renaming_3: gofix -r go1pkgrename src/pkg/[m-z]*Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/5345045
2011-11-08renaming_2: gofix -r go1pkgrename src/pkg/[a-l]*Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/5358041
2011-11-08renaming_1: hand-edited files for go 1 renamingRob Pike
This contains the files that required handiwork, mostly Makefiles with updated TARGs, plus the two packages with modified package names. html/template/doc.go needs a separate edit pass. test/fixedbugs/bug358.go is not legal go so gofix fails on it. R=rsc CC=golang-dev https://golang.org/cl/5340050
2011-11-08gofix: add go1pkgrenameRob Pike
This will do the package import renamings for Go 1. R=rsc, r, dsymonds CC=golang-dev https://golang.org/cl/5316078
2011-11-09tag weekly.2011-11-08Andrew Gerrand
R=r CC=golang-dev https://golang.org/cl/5364050
2011-11-09weekly.2011-11-08weekly.2011-11-08Andrew Gerrand
R=r CC=golang-dev https://golang.org/cl/5351049
2011-11-09html: treat <image> as <img>Andrew Balholm
Pass tests1.dat, test 90: <p><image></p> | <html> | <head> | <body> | <p> | <img> Also pass test 91: <a><table><a></table><p><a><div><a> R=nigeltao CC=golang-dev https://golang.org/cl/5339052
2011-11-08text/template: make redefinition of a template in a set more consistent.Rob Pike
Also make it agree with the documentation. You get an error, unless you're calling Add explicitly, in which case it panics since that's almost certainly a bug. The discrepancy was caused by a panic that wasn't turned into an error along one path; deleted the offending function for clarity. R=r, rsc CC=golang-dev https://golang.org/cl/5354045
2011-11-08runtime: add timespec definition for freebsdJoel Sing
R=golang-dev, devon.odell CC=golang-dev https://golang.org/cl/5340058
2011-11-08os, syscall: fix Plan 9 buildAnthony Martin
R=rsc CC=golang-dev https://golang.org/cl/5330067
2011-11-08html: parse <body>, <base>, <link>, <meta>, and <title> tags inside page bodyAndrew Balholm
Pass tests1.dat, test 87: <body><body><base><link><meta><title><p></title><body><p></body> | <html> | <head> | <body> | <base> | <link> | <meta> | <title> | "<p>" | <p> Handling the last <body> tag requires correcting the original insertion mode in useTheRulesFor. Also pass test 88: <textarea><p></textarea> R=nigeltao CC=golang-dev https://golang.org/cl/5364047
2011-11-08runtime: add windows callback testsAlex Brainman
Just a copy of cgo callback tests from misc/cgo/test. R=rsc CC=golang-dev, hectorchu https://golang.org/cl/5331062
2011-11-08gotest: don't run examples that have no expected outputAndrew Gerrand
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5364041
2011-11-08html: fix typo in package docs.Nigel Tao
Fixes #2419. R=dsymonds, rsc CC=golang-dev https://golang.org/cl/5352046
2011-11-08net: fix build commentMikio Hara
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5353045
2011-11-07gc: Clean up dostruct/stotype, detect broken fields and propagate up to ↵Luuk van Dijk
structs and functions to supress spurious errors. Fixes #1556. R=rsc CC=golang-dev https://golang.org/cl/5351042
2011-11-07go/ast: fix bugs in SortImportsRuss Cox
Tests are in gofix, since the bugs arise in rewritten ASTs. R=golang-dev, r CC=golang-dev https://golang.org/cl/5365043
2011-11-07lib9: fix windows buildRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5362045
2011-11-07lib9: add ctimeRuss Cox
ctime differs across Unix vs Plan 9 so add to portability library R=golang-dev, r CC=golang-dev https://golang.org/cl/5363043
2011-11-07runtime/cgo: fix data declaration to be externRuss Cox
Otherwise some OS X toolchains complain about the redeclaration of libcgo_thread_start by multiple object files. The real definition is in util.c. Fixes #2167. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5364045
2011-11-07exp/ssh: improved client authentication supportDave Cheney
This CL adds an API for handling the various SSH authenticaton methods. None and password continue to be the only supported methods. R=bradfitz, agl, n13m3y3r, rsc, cw CC=golang-dev https://golang.org/cl/5328045
2011-11-07runtime: fix prototype for openbsd thrsleepJoel Sing
- Fix function prototype for thrsleep(). - Provide enums for clock identifiers. - Provide timespec structure for use with thrsleep(). R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/5360042
2011-11-07gc: use HEADER_IO macro from gopackRon Minnich
Use HEADER_IO macro from gopack to read archive header The HEADER_IO macro portably reads archive headers. The current arsize code fails in the case of archive headers produced on plan 9 6c and read on other systems (it's not portable). Modify lex.c to use the portable macro Build tested (including tests) on OSX. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5323072
2011-11-07gc: format nitsLucio De Re
src/cmd/gc/bits.c: corrected a mistaken format; src/cmd/gc/go.h: %E can accept uints. R=rsc CC=golang-dev https://golang.org/cl/5331041
2011-11-07CONTRIBUTORS: add David Crawshaw's codereview accountRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5339047
2011-11-07xml: allow parsing of <_> </_>.David Crawshaw
R=rsc, nigeltao CC=golang-dev https://golang.org/cl/5298061
2011-11-07archive/zip: actually close file opened with OpenReader.Dmitry Chestnykh
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5341044
2011-11-07net/http: fix whitespace handling in sniffer.David Symonds
A single character typo ("\n" instead of "\r") meant that HTML data using DOS line breaks (CRLF) was not detected as HTML. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5365041
2011-11-07runtime: windows_386 sighandler to use correct gAlex Brainman
Fixes #2403. R=hectorchu CC=golang-dev https://golang.org/cl/5309071
2011-11-07html: be able to test more than one testdata file.Nigel Tao
R=andybalholm CC=golang-dev https://golang.org/cl/5351041
2011-11-06gc: Better error message for range over non-receive channel.Luuk van Dijk
Fixes #2354 R=rsc CC=golang-dev https://golang.org/cl/5346044
2011-11-06gc: Switch related errors should use plain format.Luuk van Dijk
Fixes #2422. R=rsc CC=golang-dev https://golang.org/cl/5353046
2011-11-05math: faster GammaCharles L. Dorian
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
2011-11-05gofix: avoid panic on body-less functions in netudpgroup.David Symonds
R=rsc, r CC=golang-dev https://golang.org/cl/5347041
2011-11-04test: make closedchan.go exit with failure if something failsIan Lance Taylor
R=golang-dev, rsc, iant CC=golang-dev https://golang.org/cl/5356042
2011-11-04math: improved high-angle test for Cos, Sin and TanCharles L. Dorian
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
2011-11-04goinstall: allow packages from launchpad.net/~user branches.Jani Monoses
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
2011-11-04CONTRIBUTORS: add Rietveld address for Jani MonosesGustavo Niemeyer
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5340046
2011-11-04html/template: wraps package template instead of exposing func EscapeMike Samuel
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
2011-11-04http: support Trailers in ReadRequestBrad Fitzpatrick
Available after closing Request.Body. R=adg, rsc CC=golang-dev https://golang.org/cl/5348041
2011-11-04gc: detect type switch variable not used cases.Luuk van Dijk
Fixes #873 Fixes #2162 R=rsc CC=golang-dev https://golang.org/cl/5341043
2011-11-04html,bzip2,sql: rename Error methods that return error to ErrGustavo Niemeyer
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
2011-11-04template: format error with pointer receiver.David Symonds
This is a continuation of 982d70c6d5d6. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5348042
2011-11-04runtime: fix linux/arm nanotime?Russ Cox
TBR=r CC=golang-dev https://golang.org/cl/5354041
2011-11-04template: format errorsRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5340043
2011-11-04runtime: fix openbsd nanotime?Russ Cox
TBR=r CC=golang-dev https://golang.org/cl/5353041
2011-11-04bytes: fix typo and resolve to be less idiotic next timeAndrew Gerrand
R=bradfitz CC=golang-dev https://golang.org/cl/5340044
2011-11-04bytes: add Contains functionAndrew Gerrand
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5349041