]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
13 years agorelease.2011-01-06 weekly.2011-01-06
Andrew Gerrand [Fri, 7 Jan 2011 04:28:25 +0000 (15:28 +1100)]
release.2011-01-06

R=nigeltao, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/3829043

13 years agold: Permit an ELF symbol to be exported in the dynamic symbol table.
Ian Lance Taylor [Fri, 7 Jan 2011 00:37:05 +0000 (16:37 -0800)]
ld: Permit an ELF symbol to be exported in the dynamic symbol table.

This permits exporting crosscall2 from the runtime/cgo
package.

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

13 years agodoc: add golanguage.ru to foreign-language doc list
Andrew Gerrand [Thu, 6 Jan 2011 22:34:13 +0000 (09:34 +1100)]
doc: add golanguage.ru to foreign-language doc list

R=r, brainman, r2
CC=golang-dev
https://golang.org/cl/3881041

13 years agocgo: disallow use of C.errno
Russ Cox [Thu, 6 Jan 2011 20:15:31 +0000 (15:15 -0500)]
cgo: disallow use of C.errno

It's incorrect, and it causes cryptic linker errors.

Fixes #1360.

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

13 years agoMake.pkg: use installed runtime.h for cgo
Russ Cox [Thu, 6 Jan 2011 20:15:22 +0000 (15:15 -0500)]
Make.pkg: use installed runtime.h for cgo

Fixes #1381.

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

13 years agoruntime/cgo: fix stackguard on FreeBSD/amd64
Anthony Martin [Thu, 6 Jan 2011 16:36:47 +0000 (11:36 -0500)]
runtime/cgo: fix stackguard on FreeBSD/amd64

A cursory reading of the cgo code suggests this
should be necessary, though I don't have access
to a FreeBSD machine for testing.

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

13 years agogc: fix &^=
Russ Cox [Thu, 6 Jan 2011 16:21:18 +0000 (11:21 -0500)]
gc: fix &^=

Fixes #1394.

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

13 years agocrypto/cipher: make NewCBCEncrypter return BlockMode
Russ Cox [Thu, 6 Jan 2011 16:21:04 +0000 (11:21 -0500)]
crypto/cipher: make NewCBCEncrypter return BlockMode

Fixes #1389.

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

13 years agoMade format string handling more efficient.
Kyle Consalus [Wed, 5 Jan 2011 19:42:35 +0000 (11:42 -0800)]
Made format string handling more efficient.

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

13 years agoeffective go: explain the effect of repanicking better.
Rob Pike [Wed, 5 Jan 2011 19:39:57 +0000 (11:39 -0800)]
effective go: explain the effect of repanicking better.
Also fix a <p> error in go_spec.html.

Fixes #1370.

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

13 years agoio: fix Copyn EOF handling
Russ Cox [Wed, 5 Jan 2011 19:35:13 +0000 (14:35 -0500)]
io: fix Copyn EOF handling

Fixes #1383.

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

13 years agosyscall: correct Linux Splice definition
Russ Cox [Wed, 5 Jan 2011 19:35:07 +0000 (14:35 -0500)]
syscall: correct Linux Splice definition

Fixes #1376.

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

13 years agogoinstall: add -clean flag
Kyle Lemons [Wed, 5 Jan 2011 19:34:59 +0000 (14:34 -0500)]
goinstall: add -clean flag

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

13 years agoA+C: Kyle Lemons (individual CLA)
Russ Cox [Wed, 5 Jan 2011 19:34:45 +0000 (14:34 -0500)]
A+C: Kyle Lemons (individual CLA)

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

13 years agogc: return constant floats for parts of complex constants
Anthony Martin [Wed, 5 Jan 2011 18:12:30 +0000 (13:12 -0500)]
gc: return constant floats for parts of complex constants

Fixes #1369.

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

13 years agofmt: normalize processing of format string
Rob Pike [Wed, 5 Jan 2011 18:11:34 +0000 (10:11 -0800)]
fmt: normalize processing of format string
The old loop was a bit odd; change it to be more regular.
This also enables a diagnostic for Printf("%", 3): %!(NOVERB)

R=rsc, Kyle C
CC=golang-dev
https://golang.org/cl/3749044

13 years agohttp: permit empty Reason-Phrase in response Status-Line
Brad Fitzpatrick [Wed, 5 Jan 2011 18:09:38 +0000 (13:09 -0500)]
http: permit empty Reason-Phrase in response Status-Line

Fixes #1388.

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

13 years agogo/ast: correct Pos/End ranges for field lists
Robert Griesemer [Wed, 5 Jan 2011 18:08:39 +0000 (10:08 -0800)]
go/ast: correct Pos/End ranges for field lists

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

13 years agogob: generate a better error message in one confusing place
Rob Pike [Wed, 5 Jan 2011 17:28:47 +0000 (09:28 -0800)]
gob: generate a better error message in one confusing place
(with maybe more to come) by printing a human-readable
representation of a remote type.

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

13 years agosyscall: Make Access second argument consistently uint32.
Ian Lance Taylor [Wed, 5 Jan 2011 06:28:31 +0000 (22:28 -0800)]
syscall: Make Access second argument consistently uint32.

Fixes #1377.

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

13 years agodoc: update contribution guidelines to prefix the change description
Nigel Tao [Wed, 5 Jan 2011 02:00:08 +0000 (13:00 +1100)]
doc: update contribution guidelines to prefix the change description
with the primary affected package.

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

13 years agostrings: fix description of FieldsFunc
Roger Peppe [Wed, 5 Jan 2011 00:23:29 +0000 (16:23 -0800)]
strings: fix description of FieldsFunc

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

13 years agofix occurrences of occur[^sr .,?!;\n]
Robert Griesemer [Tue, 4 Jan 2011 21:16:50 +0000 (13:16 -0800)]
fix occurrences of occur[^sr .,?!;\n]

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

13 years agoThe Dec 06 change
Icarus Sparry [Tue, 4 Jan 2011 21:16:29 +0000 (13:16 -0800)]
The Dec 06 change
changeset:   6839:545c9926d61a
user:        Robert Griesemer <gri@golang.org>
date:        Mon Dec 06 14:23:18 2010 -0800
summary:     go/ast: use token.Pos instead of token.Position; adjust all dependent code
broke 'godoc -src fmt', one of the example uses of godoc. It gives a stack backtrace essentially
caused by dereferencing a NULL pointer (in C terms). This change fixes the particular issue, but
the code probably should be made more robust.
Fixes #3818044.

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

13 years agoregexp: implement early out for failed anchored search.
Rob Pike [Tue, 4 Jan 2011 20:43:52 +0000 (12:43 -0800)]
regexp: implement early out for failed anchored search.

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

13 years agoencoding/binary: reject types with implementation-dependent sizes
Patrick Gavlin [Tue, 4 Jan 2011 18:42:50 +0000 (13:42 -0500)]
encoding/binary: reject types with implementation-dependent sizes

Fixes #1201.

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

13 years agomerge tree
Russ Cox [Tue, 4 Jan 2011 18:40:41 +0000 (13:40 -0500)]
merge tree

13 years agogc: rewrite complex /= to l = l / r.
Patrick Gavlin [Tue, 4 Jan 2011 18:14:17 +0000 (13:14 -0500)]
gc: rewrite complex /= to l = l / r.

Fixes #1368.

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

13 years agogo/ast: provide complete node text range info
Robert Griesemer [Tue, 4 Jan 2011 18:14:16 +0000 (10:14 -0800)]
go/ast: provide complete node text range info

- add End() method to all nodes; the text range of a node n is [n.Pos(), n.End())
- various small bug fixes in the process
- fixed several comments

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

13 years agostrconv: update ftoa comment for 'E' and 'G'
Russ Cox [Tue, 4 Jan 2011 18:13:12 +0000 (13:13 -0500)]
strconv: update ftoa comment for 'E' and 'G'

Inspired by 3827042.

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

13 years agoA+C: Patrick Gavlin (individual CLA)
Russ Cox [Tue, 4 Jan 2011 18:07:00 +0000 (13:07 -0500)]
A+C: Patrick Gavlin (individual CLA)

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

13 years agonet: fix close of Listener
Michael Hoisie [Tue, 4 Jan 2011 16:55:13 +0000 (11:55 -0500)]
net: fix close of Listener

Fixes #1375.

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

13 years agodoc: update Effective Go for template API change.
Nigel Tao [Tue, 4 Jan 2011 04:52:03 +0000 (15:52 +1100)]
doc: update Effective Go for template API change.

The original change 3378041 was submitted in December 2010:
template: change the signature of formatters for future development.

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

13 years agogoinstall: fix -u for bzr
Gustavo Niemeyer [Tue, 4 Jan 2011 03:22:18 +0000 (14:22 +1100)]
goinstall: fix -u for bzr

Changeset 7012:65601d7cac9e broke goinstall -u for bzr
branches.  This will fix it.

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

13 years agogobuilder: prefix the tarball with 'go.', tweak release regexp
Andrew Gerrand [Tue, 4 Jan 2011 02:16:38 +0000 (13:16 +1100)]
gobuilder: prefix the tarball with 'go.', tweak release regexp

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

13 years agoregexp: fix prefix bug.
Rob Pike [Mon, 3 Jan 2011 19:35:34 +0000 (11:35 -0800)]
regexp: fix prefix bug.
After a prefix match, the old code advanced the length of the
prefix.  This is incorrect since the full match might begin
in the middle of the prefix. (Consider "aaaab+" matching
"aaaaaab").

Fixes #1373

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

13 years agoregexp: fix performance bug, make anchored searches fail fast.
Rob Pike [Mon, 3 Jan 2011 19:31:51 +0000 (11:31 -0800)]
regexp: fix performance bug, make anchored searches fail fast.

The bug was that for an anchored pattern such as ^x, the prefix
scan ignored the anchor, and could scan the whole file if there was
no x present.  The fix is to do prefix matching after the anchor;
the cost miniscule; the speedups huge.

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

13 years agoFix documentation typo.
Anschel Schaffer-Cohen [Thu, 30 Dec 2010 23:37:55 +0000 (10:37 +1100)]
Fix documentation typo.
This is really insignificant, but it might as well be fixed.

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

13 years agoatof: added 'E' as valid token for exponent
Stefan Nilsson [Mon, 27 Dec 2010 18:12:10 +0000 (10:12 -0800)]
atof: added 'E' as valid token for exponent

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

13 years agosimple fix to not have 'exp/eval' panic in presence of slices like s[:2]
Sebastien Binet [Mon, 27 Dec 2010 18:05:32 +0000 (10:05 -0800)]
simple fix to not have 'exp/eval' panic in presence of slices like s[:2]

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

13 years agocrypto/cipher: fix OCFB
Adam Langley [Mon, 27 Dec 2010 17:55:49 +0000 (12:55 -0500)]
crypto/cipher: fix OCFB

I messed up when reading the OCFB spec.

TBR=rsc

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

13 years agogoinstall/download.go: Add checkout concept and helper functions to clean and fix...
Caine Tighe [Fri, 24 Dec 2010 00:48:45 +0000 (11:48 +1100)]
goinstall/download.go: Add checkout concept and helper functions to clean and fix implementation (Issue 1265)

R=rsc, niemeyer, adg
CC=golang-dev
https://golang.org/cl/3536041

13 years agoA+C: Caine Tighe
Andrew Gerrand [Thu, 23 Dec 2010 22:24:33 +0000 (09:24 +1100)]
A+C: Caine Tighe

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

13 years ago6l: fix documentation of -L flag
Andrew Gerrand [Thu, 23 Dec 2010 22:04:53 +0000 (09:04 +1100)]
6l: fix documentation of -L flag

R=rsc, iant2, iant
CC=golang-dev
https://golang.org/cl/3802044

13 years agotag release.2010-12-22
Andrew Gerrand [Thu, 23 Dec 2010 02:33:40 +0000 (13:33 +1100)]
tag release.2010-12-22

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

13 years agorelease.2010-12-22 weekly.2010-12-22
Andrew Gerrand [Thu, 23 Dec 2010 02:32:20 +0000 (13:32 +1100)]
release.2010-12-22

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

13 years agotesting: fix error message on invalid regexp
Eoghan Sherry [Thu, 23 Dec 2010 00:40:10 +0000 (11:40 +1100)]
testing: fix error message on invalid regexp

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

13 years agohash/crc64: fix typo in Sum.
Nigel Tao [Tue, 21 Dec 2010 23:28:22 +0000 (10:28 +1100)]
hash/crc64: fix typo in Sum.

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

13 years agobufio: removed dead code
Stefan Nilsson [Tue, 21 Dec 2010 21:43:35 +0000 (08:43 +1100)]
bufio: removed dead code

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

13 years agotemplate: fix trivial bug: integers are not "empty"
Rob Pike [Mon, 20 Dec 2010 21:36:47 +0000 (13:36 -0800)]
template: fix trivial bug: integers are not "empty"
Fixes #1357.

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

13 years agoexpvar: quote StringFunc output, same as String output.
David Symonds [Mon, 20 Dec 2010 06:35:21 +0000 (17:35 +1100)]
expvar: quote StringFunc output, same as String output.

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

13 years agosuffixarray: implememted FindAllIndex regexp search
Robert Griesemer [Fri, 17 Dec 2010 22:00:46 +0000 (14:00 -0800)]
suffixarray: implememted FindAllIndex regexp search

Implementation uses fast suffixarray lookup to find
initial matches if the regular expression starts with
a suitable prefix without meta characters.

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

13 years agogo/scanner: interpret filenames in //line filename:line comments
Robert Griesemer [Fri, 17 Dec 2010 21:54:37 +0000 (13:54 -0800)]
go/scanner: interpret filenames in //line filename:line comments
    relative to the source file directory

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

13 years agotls: fix argument mistake in Error call.
Rob Pike [Fri, 17 Dec 2010 21:47:52 +0000 (13:47 -0800)]
tls: fix argument mistake in Error call.

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

13 years agojson: fix Fatal call in test
Rob Pike [Fri, 17 Dec 2010 21:43:59 +0000 (13:43 -0800)]
json: fix Fatal call in test

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

13 years agofix cgo build
Russ Cox [Fri, 17 Dec 2010 21:22:20 +0000 (13:22 -0800)]
fix cgo build

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

13 years agocgo: handle references to symbols in shared libraries
Russ Cox [Fri, 17 Dec 2010 19:37:11 +0000 (11:37 -0800)]
cgo: handle references to symbols in shared libraries

Fixes #1334.

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

13 years agoregexp: change Expr() to String(); add HasOperator method to Regexp.
Rob Pike [Fri, 17 Dec 2010 18:23:46 +0000 (10:23 -0800)]
regexp: change Expr() to String(); add HasOperator method to Regexp.
It reports whether a regular expression has operators
as opposed to matching literal text.

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

13 years agold: ignore stab symbols
Russ Cox [Fri, 17 Dec 2010 18:03:43 +0000 (10:03 -0800)]
ld: ignore stab symbols

Makes 6l work better on OS X 10.5.

Fixes #1352.
Fixes #1353.

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

13 years agold: allow relocations pointing at ELF .bss symbols
Russ Cox [Fri, 17 Dec 2010 17:53:50 +0000 (09:53 -0800)]
ld: allow relocations pointing at ELF .bss symbols

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

13 years agomisc/cgo/life: fix, add to build
Russ Cox [Fri, 17 Dec 2010 17:51:55 +0000 (09:51 -0800)]
misc/cgo/life: fix, add to build

#pragma dynexport is no longer needed for
this use of cgo, since the gcc and gc code are
now linked together into the same binary.
It may still be necessary later.

On the Mac, you cannot use the GOT to resolve
symbols that exist in the current binary, so 6l and 8l
translate the GOT-loading mov instructions into lea
instructions.

On ELF systems, we could use the GOT for those
symbols, but for consistency 6l and 8l apply the
same translation.

The translation is sketchy in the extreme
(depending on the relocation being in a mov
instruction) but it verifies that the instruction
is a mov before rewriting it to lea.

Also makes typedefs global across files.

Fixes #1335.
Fixes #1345.

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

13 years agocrypto/hmac: add HMAC-SHA256
Anthony Martin [Fri, 17 Dec 2010 17:19:37 +0000 (12:19 -0500)]
crypto/hmac: add HMAC-SHA256

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

13 years agoregexp: add HasMeta and regexp.Expr().
Rob Pike [Fri, 17 Dec 2010 00:55:26 +0000 (16:55 -0800)]
regexp: add HasMeta and regexp.Expr().
The former is a boolean function to test whether a string
contains a regular expression metacharacter; the second
returns the string used to compile the regexp.

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

13 years agocrypto/tls: missed a file
Adam Langley [Thu, 16 Dec 2010 22:14:02 +0000 (17:14 -0500)]
crypto/tls: missed a file

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

13 years agocrypto/tls: add ECDHE support
Adam Langley [Thu, 16 Dec 2010 22:10:50 +0000 (17:10 -0500)]
crypto/tls: add ECDHE support

(ECDHE is "Elliptic Curve Diffie Hellman Ephemeral")

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

13 years agotime: explain the formats a little better.
Rob Pike [Thu, 16 Dec 2010 21:25:41 +0000 (13:25 -0800)]
time: explain the formats a little better.

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

13 years ago crypto/elliptic: add serialisation and key pair generation.
Adam Langley [Thu, 16 Dec 2010 21:04:01 +0000 (16:04 -0500)]
crypto/elliptic: add serialisation and key pair generation.

        This is a prerequisite to ECDHE support in crypto/tls.

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

13 years agodarwin, freebsd: ignore write failure (during print, panic)
Russ Cox [Thu, 16 Dec 2010 20:46:56 +0000 (12:46 -0800)]
darwin, freebsd: ignore write failure (during print, panic)

The other operating systems already ignore write failures.

Fixes #1279.

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

13 years agotest/bench: update numbers for regex-dna after speedup to regexp
Rob Pike [Thu, 16 Dec 2010 20:38:14 +0000 (12:38 -0800)]
test/bench: update numbers for regex-dna after speedup to regexp

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

13 years agogovet: fix comment
Christopher Wedgwood [Thu, 16 Dec 2010 20:35:38 +0000 (12:35 -0800)]
govet: fix comment

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

13 years agocrypto/tls: check in support code.
Adam Langley [Thu, 16 Dec 2010 15:39:53 +0000 (10:39 -0500)]
crypto/tls: check in support code.

This support code helps in generating the handshake scripts
which are used for testing.

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

13 years agoexp/draw: remove Border function.
Nigel Tao [Thu, 16 Dec 2010 04:11:10 +0000 (15:11 +1100)]
exp/draw: remove Border function.

It was only used by exp/4s, and even if it is general purpose, I think
it belongs in a graphics library atop exp/draw, not in exp/draw itself.

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

13 years agotag release.2010-12-15.1
Andrew Gerrand [Thu, 16 Dec 2010 03:47:08 +0000 (14:47 +1100)]
tag release.2010-12-15.1

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

13 years agorelease.2010-12-15.1 weekly.2010-12-15.1
Andrew Gerrand [Thu, 16 Dec 2010 03:46:19 +0000 (14:46 +1100)]
release.2010-12-15.1

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

13 years agold: text segment should not be writable
Russ Cox [Thu, 16 Dec 2010 03:29:53 +0000 (19:29 -0800)]
ld: text segment should not be writable

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

13 years agodoc/devel: release notes tweak
Andrew Gerrand [Thu, 16 Dec 2010 01:51:01 +0000 (12:51 +1100)]
doc/devel: release notes tweak

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

13 years agotag release.2010-12-15
Andrew Gerrand [Thu, 16 Dec 2010 01:46:08 +0000 (12:46 +1100)]
tag release.2010-12-15

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

13 years agorelease.2010-12-15 weekly.2010-12-15
Andrew Gerrand [Thu, 16 Dec 2010 01:29:10 +0000 (12:29 +1100)]
release.2010-12-15

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

13 years ago8l: remove unneeded windows check
Alex Brainman [Thu, 16 Dec 2010 01:19:59 +0000 (12:19 +1100)]
8l: remove unneeded windows check

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

13 years agoruntime: move windows goargs implementation from runtime and into os package
Alex Brainman [Thu, 16 Dec 2010 01:18:18 +0000 (12:18 +1100)]
runtime: move windows goargs implementation from runtime and into os package

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

13 years agobuild: add another --no-print-directory
Alex Brainman [Wed, 15 Dec 2010 23:46:25 +0000 (10:46 +1100)]
build: add another --no-print-directory

Fixes #1344.

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

13 years ago5l: fix arm build
Russ Cox [Wed, 15 Dec 2010 22:57:49 +0000 (14:57 -0800)]
5l: fix arm build

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

13 years agofix freebsd build
Russ Cox [Wed, 15 Dec 2010 22:20:26 +0000 (17:20 -0500)]
fix freebsd build

R=iant, r
CC=dho, golang-dev
https://golang.org/cl/3687041

13 years agocrypto/tls: commit fixes which I hadn't saved.
Adam Langley [Wed, 15 Dec 2010 18:58:57 +0000 (13:58 -0500)]
crypto/tls: commit fixes which I hadn't saved.

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

13 years agomath: change float64 bias constant from 1022 to 1023
Eoghan Sherry [Wed, 15 Dec 2010 18:20:52 +0000 (13:20 -0500)]
math: change float64 bias constant from 1022 to 1023

This makes some subtle code easier to understand.

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

13 years agocrypto/tls: support CBC ciphers
Adam Langley [Wed, 15 Dec 2010 16:49:55 +0000 (11:49 -0500)]
crypto/tls: support CBC ciphers

This is largely based on ality's CL 2747042.

crypto/rc4: API break in order to conform to crypto/cipher's
Stream interface

cipher/cipher: promote to the default build

Since CBC differs between TLS 1.0 and 1.1, we downgrade and
support only 1.0 at the current time. 1.0 is what most of the
world uses.

Given this CL, it would be trival to add support for AES 256,
SHA 256 etc, but I haven't in order to keep the change smaller.

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

13 years agocodereview: keep quiet when not in use
Eoghan Sherry [Wed, 15 Dec 2010 16:49:43 +0000 (11:49 -0500)]
codereview: keep quiet when not in use

This prevents status messages from filling the
screen when using a command like 'hg log | less'.

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

13 years agoremove nacl
Russ Cox [Wed, 15 Dec 2010 16:49:23 +0000 (11:49 -0500)]
remove nacl

The recent linker changes broke NaCl support
a month ago, and there are no known users of it.

The NaCl code can always be recovered from the
repository history.

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

13 years agotest/bench: a couple fixes to timing.sh
Anthony Martin [Wed, 15 Dec 2010 14:47:13 +0000 (09:47 -0500)]
test/bench: a couple fixes to timing.sh

- Skip the gccgo tests if we don't have it
- Add -lm so nbody.c will compile
- Pass 2098 to the meteor test (cf. the shootout site)

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

13 years ago[68]l and runtime: GDB support for interfaces and goroutines.
Luuk van Dijk [Wed, 15 Dec 2010 11:00:43 +0000 (12:00 +0100)]
[68]l and runtime: GDB support for interfaces and goroutines.

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

13 years agoreflect: remove unnecessary indirection in TestCopy.
Nigel Tao [Wed, 15 Dec 2010 09:54:11 +0000 (20:54 +1100)]
reflect: remove unnecessary indirection in TestCopy.

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

13 years agogovet: allow directories as arguments, process recursively.
Rob Pike [Wed, 15 Dec 2010 01:09:24 +0000 (17:09 -0800)]
govet: allow directories as arguments, process recursively.

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

13 years agogodashboard: support submitting projects with non-ascii names
Ryan Hitchman [Wed, 15 Dec 2010 01:07:30 +0000 (12:07 +1100)]
godashboard: support submitting projects with non-ascii names

Fixes #1314.

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

13 years agohtml: parse "<h1>foo<h2>bar".
Nigel Tao [Wed, 15 Dec 2010 00:39:56 +0000 (11:39 +1100)]
html: parse "<h1>foo<h2>bar".

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

13 years agogob: Register should use the original type, not the indirected one.
Rob Pike [Tue, 14 Dec 2010 23:04:52 +0000 (15:04 -0800)]
gob: Register should use the original type, not the indirected one.
Fixes a bug reported on golang-nuts.

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

13 years agogovet: on error continue to the next file
Christopher Wedgwood [Tue, 14 Dec 2010 22:12:22 +0000 (14:12 -0800)]
govet: on error continue to the next file

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

13 years agogob: document the byte count used in the encoding of values.
Rob Pike [Tue, 14 Dec 2010 22:04:52 +0000 (14:04 -0800)]
gob: document the byte count used in the encoding of values.

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

13 years agoreflect: add Append and AppendSlice functions.
Nigel Tao [Tue, 14 Dec 2010 21:50:08 +0000 (08:50 +1100)]
reflect: add Append and AppendSlice functions.

R=r, nigeltao_gnome, rog, niemeyer
CC=golang-dev
https://golang.org/cl/3529042

13 years agoregexp: simplify code for brackets, per rsc suggestion
Rob Pike [Tue, 14 Dec 2010 20:01:35 +0000 (12:01 -0800)]
regexp: simplify code for brackets, per rsc suggestion

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

13 years agocompress/flate: implement Flush
Russ Cox [Tue, 14 Dec 2010 19:57:12 +0000 (14:57 -0500)]
compress/flate: implement Flush

This Flush is equivalent to zlib's Z_SYNC_FLUSH.
The addition of the explicit Writer type opens the
door to adding a PartialFlush if needed for SSH
and maybe even FullFlush.  It also opens the door
for a SetDictionary method to be added.

http://www.bolet.org/~pornin/deflate-flush.html
documents the various intricacies of flushing a
DEFLATE stream.

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