]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years agorun.bash: fix freebsd build (i hope)
Russ Cox [Wed, 18 Aug 2010 14:22:57 +0000 (10:22 -0400)]
run.bash: fix freebsd build (i hope)

R=adg
CC=golang-dev
https://golang.org/cl/2012041

14 years agobuild: no required environment variables
Russ Cox [Wed, 18 Aug 2010 14:08:49 +0000 (10:08 -0400)]
build: no required environment variables

R=adg, r, PeterGo
CC=golang-dev
https://golang.org/cl/1942044

14 years agocgo: fix build: use $GCC, not $CC
Russ Cox [Wed, 18 Aug 2010 14:03:01 +0000 (10:03 -0400)]
cgo: fix build: use $GCC, not $CC

I'm not sure there's a better way.
Cgo is juggling two different C compilers.

Fixes #1008.

R=iant
CC=golang-dev
https://golang.org/cl/1972044

14 years agohttp: parse query string always, not just in GET
Russ Cox [Wed, 18 Aug 2010 00:01:50 +0000 (20:01 -0400)]
http: parse query string always, not just in GET

Fixes #985.

R=dsymonds, dsymonds1
CC=golang-dev
https://golang.org/cl/1963044

14 years agojsonrpc: use `error: null` for success, not `error: ""`
Russ Cox [Tue, 17 Aug 2010 22:55:42 +0000 (18:55 -0400)]
jsonrpc: use `error: null` for success, not `error: ""`
handle missing id in server.

Fixes #1017.
Fixes #1018.

R=r
CC=golang-dev
https://golang.org/cl/1986044

14 years agoruntime: correct line numbers for .goc files.
Luuk van Dijk [Tue, 17 Aug 2010 22:16:05 +0000 (00:16 +0200)]
runtime: correct line numbers for .goc files.
Linenumbers start at 1.
Also call goc2c with an absolute pathi to preserve debug info.

R=rsc, r, ken2
CC=golang-dev
https://golang.org/cl/1954049

14 years agoreflect: allow PtrValue.PointTo(nil)
Robert Griesemer [Tue, 17 Aug 2010 22:12:28 +0000 (15:12 -0700)]
reflect: allow PtrValue.PointTo(nil)

(Argument: For any *PtrValue p, it should
always be possible to do: p.PointTo(p.Elem()),
even if p.Elem() is nil.)

Fixes #1028.

R=rsc
CC=golang-dev, r
https://golang.org/cl/1938044

14 years agoCONTRIBUTORS: add Luuk van Dijk (Google CLA)
Russ Cox [Tue, 17 Aug 2010 21:36:15 +0000 (17:36 -0400)]
CONTRIBUTORS: add Luuk van Dijk (Google CLA)

R=lvd
CC=golang-dev
https://golang.org/cl/1956046

14 years agoMake.common: add .PHONY rule
Scott Lawrence [Tue, 17 Aug 2010 21:35:48 +0000 (17:35 -0400)]
Make.common: add .PHONY rule
to prevent files named 'clean', 'bench', etc... preventing proper build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/1976044

14 years agoFix template package so that data items
Roger Peppe [Tue, 17 Aug 2010 13:13:07 +0000 (23:13 +1000)]
Fix template package so that data items
preceded by white space parse correctly.

R=r
CC=golang-dev
https://golang.org/cl/2010041

14 years agoRemove relic "once" import from time/zoneinfo.go
Roger Peppe [Tue, 17 Aug 2010 13:08:19 +0000 (23:08 +1000)]
Remove relic "once" import from time/zoneinfo.go

R=rsc, r
CC=golang-dev
https://golang.org/cl/2005042

14 years agogofmt: do not modify multi-line string literals
Robert Griesemer [Tue, 17 Aug 2010 04:37:10 +0000 (21:37 -0700)]
gofmt: do not modify multi-line string literals

tabwriter: Introduce a new flag StripEscape to control
if tabwriter.Escape chars should be stripped or passed
through unchanged.

go/printer: Don't modify tabwriter.Escape'd text. This
involved a new implementation of the internal trimmer
object.

Does not affect formatting of any existing code under
$GOROOT/src and $GOROOT/misc.

Fixes #1030.

R=rsc
CC=golang-dev
https://golang.org/cl/1943045

14 years agoos: preserve "=C:" like env variables in env block on windows and bug fix in Clearenv()
Alex Brainman [Tue, 17 Aug 2010 01:38:26 +0000 (11:38 +1000)]
os: preserve "=C:" like env variables in env block on windows and bug fix in Clearenv()

R=rsc
CC=golang-dev
https://golang.org/cl/1995043

14 years agotemplate: retain leading space if the line is not an action.
Rob Pike [Mon, 16 Aug 2010 23:44:16 +0000 (09:44 +1000)]
template: retain leading space if the line is not an action.

R=rsc
CC=golang-dev
https://golang.org/cl/1985042

14 years agofmt/print: remove a TODO regarding printing renamed byte slices.
Rob Pike [Mon, 16 Aug 2010 22:34:40 +0000 (08:34 +1000)]
fmt/print: remove a TODO regarding printing renamed byte slices.
the solution must work around a weakness in the reflection library:
there is no way to do type-safe conversions under reflection.

R=rsc
CC=golang-dev
https://golang.org/cl/2000041

14 years agoregexp: grow slices dynamically in the 'All' routines.
Rob Pike [Mon, 16 Aug 2010 22:17:34 +0000 (15:17 -0700)]
regexp: grow slices dynamically in the 'All' routines.

R=rsc
CC=golang-dev
https://golang.org/cl/1953044

14 years agotest/garbage: do not try to parse package bignum, which is gone.
Russ Cox [Mon, 16 Aug 2010 20:31:31 +0000 (13:31 -0700)]
test/garbage: do not try to parse package bignum, which is gone.

Fixes #1023.

R=gri
CC=golang-dev
https://golang.org/cl/1968043

14 years agocrypto/tls: client certificate support.
Mikkel Krautz [Mon, 16 Aug 2010 15:22:22 +0000 (11:22 -0400)]
crypto/tls: client certificate support.

This changeset implements client certificate support in crypto/tls
for both handshake_server.go and handshake_client.go

The updated server implementation sends an empty CertificateAuthorities
field in the CertificateRequest, thus allowing clients to send any
certificates they wish. Likewise, the client code will only respond
with its certificate when the server requests a certificate with this
field empty.

R=agl, rsc, agl1
CC=golang-dev
https://golang.org/cl/1975042

14 years agoA+C: Mikkel Krautz (individual CLA)
Russ Cox [Mon, 16 Aug 2010 15:21:33 +0000 (11:21 -0400)]
A+C: Mikkel Krautz (individual CLA)

R=agl, agl1
CC=golang-dev
https://golang.org/cl/1959042

14 years agoimage/png: support 16-bit color.
Nigel Tao [Mon, 16 Aug 2010 13:33:20 +0000 (23:33 +1000)]
image/png: support 16-bit color.

R=r, mpl
CC=golang-dev
https://golang.org/cl/1944043

14 years agospec: delete erroneous word 'pointer' in specification of select.
Rob Pike [Sun, 15 Aug 2010 20:42:41 +0000 (06:42 +1000)]
spec: delete erroneous word 'pointer' in specification of select.

R=gri
CC=golang-dev
https://golang.org/cl/1960044

14 years agocode optimization on slices
Ken Thompson [Sat, 14 Aug 2010 02:39:36 +0000 (19:39 -0700)]
code optimization on slices

R=rsc
CC=golang-dev
https://golang.org/cl/1942043

14 years agospec: trivial syntax fix
Stephen Ma [Sat, 14 Aug 2010 00:27:24 +0000 (10:27 +1000)]
spec: trivial syntax fix

R=golang-dev
CC=golang-dev
https://golang.org/cl/1982042

14 years agofmt/print: give %p priority, analogous to %T
Rob Pike [Fri, 13 Aug 2010 21:37:03 +0000 (07:37 +1000)]
fmt/print: give %p priority, analogous to %T
Fixes #1024.

R=rsc
CC=golang-dev
https://golang.org/cl/1961042

14 years agofix bounds check in error recovery
Ken Thompson [Fri, 13 Aug 2010 21:30:18 +0000 (14:30 -0700)]
fix bounds check in error recovery
(thanks to avp@mit.edu)

R=rsc
CC=golang-dev
https://golang.org/cl/1998041

14 years agogo AST: First step towards augmenting AST with full type information.
Robert Griesemer [Fri, 13 Aug 2010 17:42:18 +0000 (10:42 -0700)]
go AST: First step towards augmenting AST with full type information.

- change ast.Ident back to contain the name and adjust all dependent code
- identifier object information will be added again through an optional
  typechecker phase (in the works).
- remove tracking of scopes in parser - it's easier to do this in a separate
  phase (in the works)
- in godoc, generate popup info table directly instead of through a formatter
  for simpler data flow (at the expense of a little bit more code)

Runs all tests.

As a result of this change, the currently shown popup information
(const, var, type, func, followed by identifier name) will not be
shown anymore temporarily.

R=rsc
CC=golang-dev
https://golang.org/cl/1994041

14 years agofmt/print: honor Formatter in Print, Println.
Rob Pike [Fri, 13 Aug 2010 07:26:32 +0000 (17:26 +1000)]
fmt/print: honor Formatter in Print, Println.
Rearrange code to clarify handling of %T, Formatter, GoStringer, and Stringer.

R=rsc
CC=golang-dev
https://golang.org/cl/1973043

14 years agoruntime: fix another stack split bug
Russ Cox [Fri, 13 Aug 2010 06:26:54 +0000 (23:26 -0700)]
runtime: fix another stack split bug

Makes godoc --http=:1234 not crash on linux/amd64.

R=r
CC=golang-dev
https://golang.org/cl/1975044

14 years agoos: implement env using native windows api.
Alex Brainman [Fri, 13 Aug 2010 04:29:23 +0000 (14:29 +1000)]
os: implement env using native windows api.
Fixes #864.

R=rsc
CC=golang-dev
https://golang.org/cl/1975043

14 years agodelete pkg/once
Rob Pike [Fri, 13 Aug 2010 02:53:27 +0000 (12:53 +1000)]
delete pkg/once

R=rsc
CC=golang-dev
https://golang.org/cl/1995041

14 years agocodereview: do not send "Abanoned" mail if this CL has
Russ Cox [Thu, 12 Aug 2010 21:58:38 +0000 (14:58 -0700)]
codereview: do not send "Abanoned" mail if this CL has
not been mailed out for review.

R=r
CC=golang-dev
https://golang.org/cl/1962046

14 years agopartial correction for CL 1983043: fix various godoc-related regexp calls
Robert Griesemer [Thu, 12 Aug 2010 18:28:50 +0000 (11:28 -0700)]
partial correction for CL 1983043: fix various godoc-related regexp calls

R=rsc
CC=golang-dev
https://golang.org/cl/1987041

14 years agoregexp: delete the deprecated methods and tests.
Rob Pike [Thu, 12 Aug 2010 07:16:37 +0000 (17:16 +1000)]
regexp: delete the deprecated methods and tests.

R=golang-dev
CC=golang-dev
https://golang.org/cl/1956044

14 years agocodereview.py: Fix issues with leading tabulation in the Files: section of CL descrip...
Ivan Krasin [Thu, 12 Aug 2010 07:04:17 +0000 (00:04 -0700)]
codereview.py: Fix issues with leading tabulation in the Files: section of CL description.

R=imkrasin, rsc
CC=golang-dev
https://golang.org/cl/1943042

14 years agonet: make IPv6 String method standards compliant
Mikio Hara [Thu, 12 Aug 2010 07:03:01 +0000 (00:03 -0700)]
net: make IPv6 String method standards compliant

draft-ietf-6man-text-addr-representation-07 will introduce
a canonical textual representation format for IPv6 address.

R=rsc
CC=golang-dev
https://golang.org/cl/1856047

14 years agoupdate the tree to use the new regexp methods
Rob Pike [Thu, 12 Aug 2010 06:48:41 +0000 (16:48 +1000)]
update the tree to use the new regexp methods

R=rsc
CC=golang-dev
https://golang.org/cl/1983043

14 years agotesting: delete the less useful methods in the testing regexp package
Rob Pike [Thu, 12 Aug 2010 06:47:52 +0000 (16:47 +1000)]
testing: delete the less useful methods in the testing regexp package
We can add them back using the new naming scheme should it become important.

R=rsc
CC=golang-dev
https://golang.org/cl/1968042

14 years agore-tag release.2010-08-11
Andrew Gerrand [Thu, 12 Aug 2010 06:02:12 +0000 (16:02 +1000)]
re-tag release.2010-08-11

R=rsc
CC=golang-dev
https://golang.org/cl/1983042

14 years agotag release.2010-08-11
Andrew Gerrand [Thu, 12 Aug 2010 05:52:54 +0000 (15:52 +1000)]
tag release.2010-08-11

R=rsc
CC=golang-dev
https://golang.org/cl/1951043

14 years agorelease.2010-08-11 weekly.2010-08-11
Andrew Gerrand [Thu, 12 Aug 2010 05:51:11 +0000 (15:51 +1000)]
release.2010-08-11

R=rsc
CC=golang-dev
https://golang.org/cl/1954044

14 years ago6g, 8g: handle slice by sub-word-sized index (uint8, int8, uint16, int16)
Russ Cox [Thu, 12 Aug 2010 05:27:47 +0000 (22:27 -0700)]
6g, 8g: handle slice by sub-word-sized index (uint8, int8, uint16, int16)

R=ken2
CC=golang-dev
https://golang.org/cl/1960042

14 years agoA+C: Mikio Hara (individual CLA)
Russ Cox [Thu, 12 Aug 2010 05:22:36 +0000 (22:22 -0700)]
A+C: Mikio Hara (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/1971042

14 years agogopack: handle long lines in export data
Russ Cox [Thu, 12 Aug 2010 05:17:20 +0000 (22:17 -0700)]
gopack: handle long lines in export data
Also, if the header is bad, exit with a non-zero status.

Other calls to Brdline in the tree, by category:

Reading symbol name from object file:
./cmd/5l/obj.c:486:  name = Brdline(f, '\0');
./cmd/6l/obj.c:535:  name = Brdline(f, '\0');
./cmd/8l/obj.c:564:  name = Brdline(f, '\0');
./libmach/sym.c:292:  cp = Brdline(bp, '\0');

Reading archive header line (fixed, short):
./cmd/gc/lex.c:287:  if((a = Brdline(b, '\n')) == nil)
./cmd/gc/lex.c:303:  if((p = Brdline(b, '\n')) == nil)

Reading object file header line (fixed, short):
./cmd/ld/lib.c:421:  line = Brdline(f, '\n');

Reading undefined symbol list (unused code):
./cmd/ld/lib.c:773:  while((l = Brdline(b, '\n')) != nil){

Implementing Brdstr:
./libbio/brdstr.c:36:  p = Brdline(bp, delim);

The symbol names ones will cause a problem loudly if they
fail: they'll error out with symbol name too long.  This means
that you can't define an enormous struct without giving the
type a name and then stick it in an interface, because the
type's symbol name will be too long for the object file.
Since this will be a loud failure instead of a silent one,
I'm willing to wait until it comes up in practice.

R=r
CC=golang-dev
https://golang.org/cl/1982041

14 years ago5g, 8g: dead code (already removed from 6g)
Russ Cox [Thu, 12 Aug 2010 04:58:29 +0000 (21:58 -0700)]
5g, 8g: dead code (already removed from 6g)

R=ken2
CC=golang-dev
https://golang.org/cl/1983041

14 years agoregexp: new regularized methods for matching.
Rob Pike [Thu, 12 Aug 2010 04:41:52 +0000 (14:41 +1000)]
regexp: new regularized methods for matching.
The previous set was spotty, incomplete, and confusing.
This CL proposes a regular, clean set with clearer names.
It's also complete.  Many existing methods will be deprecated,
but not in this CL.  Ditto for the tests.

R=rsc, gri
CC=golang-dev, rog
https://golang.org/cl/1946041

14 years agogofmt: if a semicolon is found unexpectedly, report detailed cause
Robert Griesemer [Thu, 12 Aug 2010 04:25:52 +0000 (21:25 -0700)]
gofmt: if a semicolon is found unexpectedly, report detailed cause

go/scanner: return information on semicolon (real or inserted) when
    found in source
go/parser:  better error message when a semicolon is found unexpectedly

For instance, if an unexpected semicolon is found that was automatically
inserted, the parser error message is now:

    "expected '}', found newline"

Fixes #1006.

R=rsc
CC=golang-dev
https://golang.org/cl/1936044

14 years agosync.once: document that Do cannot be invoked recursively.
Rob Pike [Thu, 12 Aug 2010 02:59:37 +0000 (12:59 +1000)]
sync.once: document that Do cannot be invoked recursively.
documentation change only.

R=rsc
CC=golang-dev
https://golang.org/cl/1964043

14 years agoSmall performance improvements to the HTML tokenizer based on your 'TODO's.
Kyle Consalus [Wed, 11 Aug 2010 23:45:34 +0000 (09:45 +1000)]
Small performance improvements to the HTML tokenizer based on your 'TODO's.

R=nigeltao_golang
CC=golang-dev
https://golang.org/cl/1941042

14 years agotemplate: added ParseFile method for template.Template
Scott Lawrence [Wed, 11 Aug 2010 04:04:03 +0000 (14:04 +1000)]
template: added ParseFile method for template.Template
Fixes #971.

Parse/ParseFile methods of Template now match template.Parse and .ParseFile methods.
Also made tests being run on Parse and ParseFile be run on Template.ParseFile as well.

R=r
CC=golang-dev
https://golang.org/cl/1741059

14 years agogc: bug302
Russ Cox [Wed, 11 Aug 2010 00:39:38 +0000 (17:39 -0700)]
gc: bug302

Fixed by http://code.google.com/p/go/source/detail?r=d1f41e20a90e
This just adds a test and checks the return value of Bprint.

R=ken2
CC=golang-dev
https://golang.org/cl/1949042

14 years agolibbio: fix Bprint bug
Russ Cox [Wed, 11 Aug 2010 00:38:28 +0000 (17:38 -0700)]
libbio: fix Bprint bug

Make Bprint work even when the amount of output
exceeds the available buffer space.

R=r
CC=golang-dev
https://golang.org/cl/1968041

14 years agoexp/draw: fix drawRGBA when x0 > x1 and we have to draw right-to-left.
Nigel Tao [Wed, 11 Aug 2010 00:10:17 +0000 (10:10 +1000)]
exp/draw: fix drawRGBA when x0 > x1 and we have to draw right-to-left.

R=r
CC=golang-dev
https://golang.org/cl/1940042

14 years agorpc: catch errors from ReadResponseBody.
Rob Pike [Tue, 10 Aug 2010 23:55:02 +0000 (16:55 -0700)]
rpc: catch errors from ReadResponseBody.
Fixes #1014.

R=rsc
CC=golang-dev
https://golang.org/cl/1941041

14 years agofix build: update exp/draw/draw_test.go
Robert Griesemer [Tue, 10 Aug 2010 17:11:28 +0000 (10:11 -0700)]
fix build: update exp/draw/draw_test.go

R=nigeltao
CC=golang-dev
https://golang.org/cl/1962041

14 years agogodoc: report Status 404 if a pkg or file is not found
Robert Griesemer [Tue, 10 Aug 2010 16:52:02 +0000 (09:52 -0700)]
godoc: report Status 404 if a pkg or file is not found

Fixes #1005.

R=rsc, r
CC=golang-dev
https://golang.org/cl/1935041

14 years agoasn1: remove superfluous if's, unused function
Robert Griesemer [Tue, 10 Aug 2010 16:50:21 +0000 (09:50 -0700)]
asn1: remove superfluous if's, unused function

R=adg
CC=golang-dev
https://golang.org/cl/1743059

14 years agoexp/draw: remove the Color, Point and Rectangle types.
Nigel Tao [Tue, 10 Aug 2010 12:05:11 +0000 (22:05 +1000)]
exp/draw: remove the Color, Point and Rectangle types.
image: introduce Transparent and Opaque.

R=r
CC=golang-dev
https://golang.org/cl/1947042

14 years agogopack documentation: fixed typo
Scott Lawrence [Tue, 10 Aug 2010 08:01:00 +0000 (18:01 +1000)]
gopack documentation: fixed typo
(Removed extraneous "program".)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1950041

14 years agoimage: fix comment typo.
Nigel Tao [Tue, 10 Aug 2010 07:56:57 +0000 (17:56 +1000)]
image: fix comment typo.

R=adg
CC=golang-dev
https://golang.org/cl/1952041

14 years agoimage: change image representation from slice-of-slices to linear buffer,
Nigel Tao [Tue, 10 Aug 2010 06:34:57 +0000 (16:34 +1000)]
image: change image representation from slice-of-slices to linear buffer,
stride and rect.

R=r
CC=golang-dev, rog
https://golang.org/cl/1849041

14 years agoFirst cut of an HTML tokenizer (and eventually a parser).
Nigel Tao [Tue, 10 Aug 2010 06:08:21 +0000 (16:08 +1000)]
First cut of an HTML tokenizer (and eventually a parser).

R=r, rsc, gri, rsc1
CC=golang-dev
https://golang.org/cl/1814044

14 years agoexp/draw/x11: temporarily workaround compiler bug 1011.
Nigel Tao [Tue, 10 Aug 2010 05:53:19 +0000 (15:53 +1000)]
exp/draw/x11: temporarily workaround compiler bug 1011.

R=r
CC=golang-dev
https://golang.org/cl/1951041

14 years agopng: grayscale support.
Mathieu Lonjaret [Tue, 10 Aug 2010 02:25:08 +0000 (12:25 +1000)]
png: grayscale support.

R=nigeltao_golang, r
CC=golang-dev
https://golang.org/cl/1897049

14 years agoimage: replace Width and Height by Bounds, and introduce the Point and
Nigel Tao [Tue, 10 Aug 2010 02:08:52 +0000 (12:08 +1000)]
image: replace Width and Height by Bounds, and introduce the Point and
Rect types.

The actual image representation is unchanged. A future change will
replace the {[][]color} with {[]color, stride int, r Rectangle} and
possibly a clip region.

The draw.Color, draw.Point and draw.Rect types will be removed in a
future change. Trying to do it in this one polluted the diff with
trivia.

R=r, rsc
CC=golang-dev
https://golang.org/cl/1918047

14 years agoregexp: document that backslashes are the escape character.
Rob Pike [Mon, 9 Aug 2010 22:11:02 +0000 (15:11 -0700)]
regexp: document that backslashes are the escape character.
Fixes #1013.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/1938041

14 years agogoinstall docs: fixed typos
Scott Lawrence [Mon, 9 Aug 2010 17:45:20 +0000 (10:45 -0700)]
goinstall docs: fixed typos
(Added mising closing quotes.)

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/1902049

14 years agobig: Several fixes to bitwise functions
Evan Shaw [Mon, 9 Aug 2010 17:21:54 +0000 (10:21 -0700)]
big: Several fixes to bitwise functions

Fixed:
* SetString calls in bitwise tests
* Aliasing problem with self bitwise test
* One test case that was just flat out wrong
* Slice panics in nat.or and nat.xor
* Aliasing problems in Int.And, Int.AndNot, Int.Or, Int.Xor

Fixes #1007.

R=gri
CC=golang-dev
https://golang.org/cl/1895049

14 years agoasn1 incorrectly encoded signed integers. When determining the
Nicholas Waples [Mon, 9 Aug 2010 14:25:54 +0000 (10:25 -0400)]
asn1 incorrectly encoded signed integers. When determining the
encoded length it was not taking into account the sign bit.

Fixes #997.

R=agl1, gri
CC=golang-dev
https://golang.org/cl/1870047

14 years agoruntime: free memory returned by windows GetEnvironmentStrings
Alex Brainman [Mon, 9 Aug 2010 01:30:33 +0000 (11:30 +1000)]
runtime: free memory returned by windows GetEnvironmentStrings

R=golang-dev
CC=golang-dev
https://golang.org/cl/1917048

14 years agoos: fix ForkExec() handling of envv == nil
Alex Brainman [Mon, 9 Aug 2010 01:21:20 +0000 (11:21 +1000)]
os: fix ForkExec() handling of envv == nil

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1913047

14 years agoimage: introduce Decode and RegisterFormat.
Nigel Tao [Mon, 9 Aug 2010 00:44:38 +0000 (10:44 +1000)]
image: introduce Decode and RegisterFormat.

R=r, rsc
CC=golang-dev
https://golang.org/cl/1849054

14 years agonet/textproto: new package, with example net/dict
Russ Cox [Sat, 7 Aug 2010 00:37:45 +0000 (17:37 -0700)]
net/textproto: new package, with example net/dict

Generic text-based network protcol library for SMTP-like protocols.
HTTP and NNTP should be changed to use this package,
and I expect that SMTP and POP3 will be able to use it too.

R=cemeyer, nigeltao_golang, r
CC=golang-dev, petar-m
https://golang.org/cl/889041

14 years agofmt.Scan: empty strings are errors
Rob Pike [Sat, 7 Aug 2010 00:02:04 +0000 (10:02 +1000)]
fmt.Scan: empty strings are errors
Fixes #1002.

R=rsc
CC=golang-dev
https://golang.org/cl/1882046

14 years agoarm: bugfixes and syscall
Kai Backman [Fri, 6 Aug 2010 23:57:49 +0000 (16:57 -0700)]
arm: bugfixes and syscall

- integer divide by zero raises panic
- float comparisons involving NaNs work
- syscall interface actually handles return
  values and errno correctly.

R=rsc, bradfitzpatrick
CC=golang-dev
https://golang.org/cl/1847047

14 years agomath: fix amd64 Hypot.
Charles L. Dorian [Fri, 6 Aug 2010 23:50:48 +0000 (16:50 -0700)]
math: fix amd64 Hypot.
Underflow/overflow tests for exp_amd64.s

Fixes #957.

R=rsc
CC=golang-dev
https://golang.org/cl/1817041

14 years agoencoding/binary: add complex
Roger Peppe [Fri, 6 Aug 2010 23:44:38 +0000 (16:44 -0700)]
encoding/binary: add complex

R=rsc
CC=golang-dev
https://golang.org/cl/1879043

14 years agoexp/iterable: add UintArray
Anschel Schaffer-Cohen [Fri, 6 Aug 2010 23:39:18 +0000 (16:39 -0700)]
exp/iterable: add UintArray

all other basic types seem to be represented.

R=rsc
CC=golang-dev
https://golang.org/cl/1919042

14 years agoA+C: Anschel Schaffer-Cohen (individual CLA)
Russ Cox [Fri, 6 Aug 2010 23:31:12 +0000 (16:31 -0700)]
A+C: Anschel Schaffer-Cohen (individual CLA)

R=gri
CC=golang-dev
https://golang.org/cl/1893045

14 years agotest/peano: use directly recursive type def
Robert Griesemer [Fri, 6 Aug 2010 22:07:54 +0000 (15:07 -0700)]
test/peano: use directly recursive type def

Test case for http://code.google.com/p/go/issues/detail?id=999

R=r
CC=golang-dev
https://golang.org/cl/1892050

14 years agoA+C: Nicholas Waples and Mathieu Lonjaret (individual CLA)
Russ Cox [Fri, 6 Aug 2010 20:10:47 +0000 (13:10 -0700)]
A+C: Nicholas Waples and Mathieu Lonjaret (individual CLA)

R=gri
CC=golang-dev
https://golang.org/cl/1856054

14 years agofix windows build
Alex Brainman [Thu, 5 Aug 2010 23:42:55 +0000 (09:42 +1000)]
fix windows build

R=rsc
CC=golang-dev
https://golang.org/cl/1890045

14 years agoonce: replace all uses of package once with sync.Once.
Rob Pike [Thu, 5 Aug 2010 20:14:41 +0000 (06:14 +1000)]
once: replace all uses of package once with sync.Once.
package once remains for now; will be deleted after next release.

R=golang-dev, brainman
CC=golang-dev
https://golang.org/cl/1914046

14 years agobytes: add IndexRune, FieldsFunc and To*Special
Christian Himpel [Thu, 5 Aug 2010 13:11:06 +0000 (23:11 +1000)]
bytes: add IndexRune, FieldsFunc and To*Special

Basically these functions are implemented the same way as the
corresponding functions in the strings package.  Test functions
are implemented for IndexRune and FieldsFunc.

Additionally two typos are fixed in packages bytes and strings.

R=r
CC=golang-dev
https://golang.org/cl/1696062

14 years agosync: add sync.Once, a proposed replacement for package once.
Rob Pike [Thu, 5 Aug 2010 03:31:10 +0000 (13:31 +1000)]
sync: add sync.Once, a proposed replacement for package once.
This implementation is simpler and more useful, since it can work
with methods.

R=rsc
CC=golang-dev
https://golang.org/cl/1864051

14 years agotag release.2010-08-04
Andrew Gerrand [Thu, 5 Aug 2010 03:21:41 +0000 (13:21 +1000)]
tag release.2010-08-04

R=rsc
CC=golang-dev
https://golang.org/cl/1863051

14 years agorelease.2010-08-04 weekly.2010-08-04
Andrew Gerrand [Thu, 5 Aug 2010 03:18:49 +0000 (13:18 +1000)]
release.2010-08-04

R=rsc
CC=golang-dev
https://golang.org/cl/1892049

14 years agopath: fix comment for Split()
Alex Brainman [Thu, 5 Aug 2010 01:43:53 +0000 (11:43 +1000)]
path: fix comment for Split()

R=golang-dev
CC=golang-dev
https://golang.org/cl/1905050

14 years agogo/parser.ParseFiles: don't override error (to nil) if there is one
Robert Griesemer [Thu, 5 Aug 2010 01:02:43 +0000 (18:02 -0700)]
go/parser.ParseFiles: don't override error (to nil) if there is one

Also: Return first instead of last error as that seems more useful.

R=r
CC=golang-dev
https://golang.org/cl/1897050

14 years agofix build: literal types cannot be parenthesized anymore
Robert Griesemer [Thu, 5 Aug 2010 00:58:56 +0000 (17:58 -0700)]
fix build: literal types cannot be parenthesized anymore

R=rsc
CC=golang-dev
https://golang.org/cl/1849055

14 years agoamd64: use segment memory for thread-local storage
Russ Cox [Thu, 5 Aug 2010 00:50:22 +0000 (17:50 -0700)]
amd64: use segment memory for thread-local storage
Returns R14 and R15 to the available register pool.
Plays more nicely with ELF ABI C code.
In particular, our signal handlers will no longer crash
when a signal arrives during execution of a cgo C call.

Fixes #720.

R=ken2, r
CC=golang-dev
https://golang.org/cl/1847051

14 years agomisc/vim: highlight misspelled words only in comments
Christian Himpel [Thu, 5 Aug 2010 00:31:00 +0000 (10:31 +1000)]
misc/vim: highlight misspelled words only in comments

R=adg
CC=golang-dev
https://golang.org/cl/1915043

14 years agogofmt/go/parser: strengthen syntax checks
Robert Griesemer [Thu, 5 Aug 2010 00:21:02 +0000 (17:21 -0700)]
gofmt/go/parser: strengthen syntax checks

- don't allow parenthesized receiver base types or anonymous fields
- fixed a couple of other omissions
- adjusted gofmt test script
- removed several TODOs

R=rsc
CC=golang-dev
https://golang.org/cl/1897043

14 years agogoinstall: check for error from exec.*Cmd.Wait() before using its result
Alex Brainman [Thu, 5 Aug 2010 00:18:57 +0000 (17:18 -0700)]
goinstall: check for error from exec.*Cmd.Wait() before using its result

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/1923043

14 years agocgo: generate correct multiple return value function invocations
Christian Himpel [Thu, 5 Aug 2010 00:15:04 +0000 (17:15 -0700)]
cgo: generate correct multiple return value function invocations

Fixes #967.

R=rsc
CC=golang-dev
https://golang.org/cl/1855051

14 years agoA+C: fix email address
Russ Cox [Thu, 5 Aug 2010 00:14:51 +0000 (17:14 -0700)]
A+C: fix email address

R=adg
CC=golang-dev
https://golang.org/cl/1856052

14 years agogofmt: make code more readable by avoiding redeclaration
Robert Griesemer [Wed, 4 Aug 2010 06:39:01 +0000 (23:39 -0700)]
gofmt: make code more readable by avoiding redeclaration

R=r
CC=golang-dev
https://golang.org/cl/1910045

14 years agobytes: added test case for explode with blank string.
Scott Lawrence [Wed, 4 Aug 2010 03:33:24 +0000 (13:33 +1000)]
bytes: added test case for explode with blank string.
Tests for the equivalent of the strings.explode("") panic bug (issue 980).

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1850052

14 years agojson: object members must have a value
Anthony Martin [Wed, 4 Aug 2010 00:05:00 +0000 (17:05 -0700)]
json: object members must have a value

R=rsc
CC=golang-dev
https://golang.org/cl/1847050

14 years agoA+C: Anthony Martin, Christian Himpel (individual CLA)
Russ Cox [Wed, 4 Aug 2010 00:04:54 +0000 (17:04 -0700)]
A+C: Anthony Martin, Christian Himpel (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/1689061

14 years agobufio: introduce Peek.
Nigel Tao [Tue, 3 Aug 2010 23:44:02 +0000 (09:44 +1000)]
bufio: introduce Peek.

I'll leave whether or not this obsoletes UnreadByte for a future CL.

R=r, rsc
CC=golang-dev
https://golang.org/cl/1912042