]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoAdds benchmark support to gotest.
Trevor Strohman [Fri, 20 Nov 2009 00:35:34 +0000 (16:35 -0800)]
Adds benchmark support to gotest.

No benchmarks are run unless the --benchmarks=<regexp> flag
is specified on the gotest command line.  This change includes
sample benchmarks for regexp.

% gotest --benchmarks=.*
(standard test output redacted)
testing.BenchmarkSimpleMatch 200000       7799 ns/op
testing.BenchmarkUngroupedMatch 20000      76898 ns/op
testing.BenchmarkGroupedMatch 50000      38148 ns/op

R=r, rsc
https://golang.org/cl/154173

15 years agobuild Make.deps during make.bash instead
Russ Cox [Fri, 20 Nov 2009 00:27:13 +0000 (16:27 -0800)]
build Make.deps during make.bash instead
of keeping a checked-in copy.  doesn't
slow down make.bash appreciably.

R=r
https://golang.org/cl/156099

15 years agoput copy into goyacc
Ken Thompson [Thu, 19 Nov 2009 23:34:11 +0000 (15:34 -0800)]
put copy into goyacc

R=rsc
https://golang.org/cl/156100

15 years agoos.ReadAt doesn't return EOF at EOF.
Rob Pike [Thu, 19 Nov 2009 19:51:23 +0000 (11:51 -0800)]
os.ReadAt doesn't return EOF at EOF.
thanks to lionkov for the fix.

Fixes #262.

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

15 years agoruntime: mask signals during signal handler on OS X
Russ Cox [Thu, 19 Nov 2009 19:01:16 +0000 (11:01 -0800)]
runtime: mask signals during signal handler on OS X

Fixes #265.

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

15 years agobug219: parsing difficulties with 6g
Robert Griesemer [Thu, 19 Nov 2009 08:04:30 +0000 (00:04 -0800)]
bug219: parsing difficulties with 6g

R=r, rsc
https://golang.org/cl/157085

15 years ago- flip in and out to exercise overlap check a little (could do better)
Rob Pike [Thu, 19 Nov 2009 06:26:36 +0000 (22:26 -0800)]
- flip in and out to exercise overlap check a little (could do better)
- actually test the results

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

15 years agoreplace custom findByte with bytes.IndexByte
Rob Pike [Thu, 19 Nov 2009 03:58:32 +0000 (19:58 -0800)]
replace custom findByte with bytes.IndexByte

R=rsc
https://golang.org/cl/156093

15 years agobig: fix large division.
Adam Langley [Thu, 19 Nov 2009 03:26:12 +0000 (19:26 -0800)]
big: fix large division.

I missed a case.

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

15 years agoadd bytes.IndexByte; common case we can make fast later.
Rob Pike [Thu, 19 Nov 2009 03:23:08 +0000 (19:23 -0800)]
add bytes.IndexByte; common case we can make fast later.
also pick off the special case in strings.Index.   don't want strings.IndexByte
because the call site will very rarely need to allocate and we can handle the
test in the code itself.   bytes.IndexByte can avoid a common allocation.

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

15 years agoAllow optional second expression in slice expressions.
Robert Griesemer [Thu, 19 Nov 2009 03:15:25 +0000 (19:15 -0800)]
Allow optional second expression in slice expressions.
Built-in function copy.
Addresses issue 203.

R=rsc, r, iant
https://golang.org/cl/156089

15 years agoruntime: fix bug on darwin/amd64 - bad g in bsdthread_start
Russ Cox [Thu, 19 Nov 2009 02:17:11 +0000 (18:17 -0800)]
runtime: fix bug on darwin/amd64 - bad g in bsdthread_start

R=r
https://golang.org/cl/157077

15 years agoMore FreeBSD-touchups. Thundercats are GOOOOO!
Devon H. O'Dell [Thu, 19 Nov 2009 00:51:59 +0000 (16:51 -0800)]
More FreeBSD-touchups. Thundercats are GOOOOO!

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

15 years agocrypto/x509: RawContents -> RawContent
Adam Langley [Thu, 19 Nov 2009 00:38:30 +0000 (16:38 -0800)]
crypto/x509: RawContents -> RawContent

TBR=rsc

R=rsc
https://golang.org/cl/157075

15 years agoasn1: add support for RawContent
Adam Langley [Thu, 19 Nov 2009 00:32:44 +0000 (16:32 -0800)]
asn1: add support for RawContent

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

15 years agocrypto/x509: add certificate support.
Adam Langley [Thu, 19 Nov 2009 00:08:24 +0000 (16:08 -0800)]
crypto/x509: add certificate support.

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

15 years ago6l, 8l: add trivial hash table for dynamic symbols
Russ Cox [Wed, 18 Nov 2009 23:58:44 +0000 (15:58 -0800)]
6l, 8l: add trivial hash table for dynamic symbols

R=r
https://golang.org/cl/156085

15 years agotest for copy()
Rob Pike [Wed, 18 Nov 2009 23:31:22 +0000 (15:31 -0800)]
test for copy()

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

15 years agoremove bytes.Copy
Rob Pike [Wed, 18 Nov 2009 23:24:24 +0000 (15:24 -0800)]
remove bytes.Copy
replace all calls with calls to copy
use copy in regexp and bytes.Buffer

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

15 years agobugs in memmove:
Rob Pike [Wed, 18 Nov 2009 23:00:02 +0000 (15:00 -0800)]
bugs in memmove:
- has arguments (no stack split)
- MOVL does not set condition

R=ken2, rsc
https://golang.org/cl/156086

15 years agogc: allow implicit conversion of *[10]int -> []int
Russ Cox [Wed, 18 Nov 2009 22:26:28 +0000 (14:26 -0800)]
gc: allow implicit conversion of *[10]int -> []int
when used as arg to copy.

R=ken2
https://golang.org/cl/157071

15 years agold: move interpreter string into first block of ELF file
Russ Cox [Wed, 18 Nov 2009 21:51:05 +0000 (13:51 -0800)]
ld: move interpreter string into first block of ELF file
necessary on freebsd.

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

15 years agoslicecopy was always using 16 (sizeof slice) for the size instead of size of element.
Rob Pike [Wed, 18 Nov 2009 21:43:48 +0000 (13:43 -0800)]
slicecopy was always using 16 (sizeof slice) for the size instead of size of element.

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

15 years agonet: remove race condition on Close.
Adam Langley [Wed, 18 Nov 2009 21:18:34 +0000 (13:18 -0800)]
net: remove race condition on Close.

Previously a netFd could be queued for reading/writing in the channel,
but close(2)'ed before pollServer got to it. In this case, the kernel
would consider the descriptor closed and the attempt to add it to the
epoll set would fail and panic.

This patch makes Close a roundtrip to the pollServer, although the
actual close(2) still occurs elsewhere to avoid blocking the
pollServer.

Fixes #143.

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

15 years agoOn 32-bit x86, one should configure with --with-arch=.
Ian Lance Taylor [Wed, 18 Nov 2009 20:48:48 +0000 (12:48 -0800)]
On 32-bit x86, one should configure with --with-arch=.

R=r
https://golang.org/cl/156080

15 years agoMangle C struct fields that happen to be named after Go keywords by prefixing them...
Eden Li [Wed, 18 Nov 2009 17:59:10 +0000 (09:59 -0800)]
Mangle C struct fields that happen to be named after Go keywords by prefixing them with _.  Collisions with existing fields are resolved by prefixing the new Go identifier with _ until it matches nothing else in the struct.
Fixes #36.

R=rsc
https://golang.org/cl/157061

15 years agobig: implement 386 assembly routines
Russ Cox [Wed, 18 Nov 2009 17:54:51 +0000 (09:54 -0800)]
big: implement 386 assembly routines
7x speedup on big and crypto/rsa unit tests.
also dropped useAsm in favor of making the
asm stubs jump to the Go versions.

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

15 years agoRemove unnecessary execute bits.
William Josephson [Wed, 18 Nov 2009 17:19:29 +0000 (09:19 -0800)]
Remove unnecessary execute bits.

R=rsc
https://golang.org/cl/156077

15 years agoMissing flags for FreeBSD shared link as used by cgo in default build.
William Josephson [Wed, 18 Nov 2009 17:18:51 +0000 (09:18 -0800)]
Missing flags for FreeBSD shared link as used by cgo in default build.

R=rsc
https://golang.org/cl/157065

15 years agoUpdate legal.
William Josephson [Wed, 18 Nov 2009 17:17:47 +0000 (09:17 -0800)]
Update legal.

R=rsc
https://golang.org/cl/156075

15 years agoAdd an intptr type to runtime; needed in FreeBSD
Devon H. O'Dell [Wed, 18 Nov 2009 17:11:39 +0000 (09:11 -0800)]
Add an intptr type to runtime; needed in FreeBSD

In thread.c, we need to cast to whatever the native
size of intptr is on the system, but we only have
uintptr available. They're the same size, but can't
do signed casts without this one :).

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

15 years agomake all.bash finish on FreeBSD
Russ Cox [Wed, 18 Nov 2009 17:11:17 +0000 (09:11 -0800)]
make all.bash finish on FreeBSD

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

15 years agoFreeBSD/i386 work
Devon H. O'Dell [Wed, 18 Nov 2009 07:58:51 +0000 (23:58 -0800)]
FreeBSD/i386 work

This patchset gets Go to pretty much the same state that
FreeBSD/amd64 is in.

R=rsc
https://golang.org/cl/157055

15 years agocgo no longer translates function args that are void* into
Eden Li [Wed, 18 Nov 2009 07:42:21 +0000 (23:42 -0800)]
cgo no longer translates function args that are void* into
unsafe.Pointer.
Fixes #254.

R=rsc
https://golang.org/cl/157060

15 years ago Updated AUTHORS/CONTRIBUTORS files according to
Eden Li [Wed, 18 Nov 2009 07:42:15 +0000 (23:42 -0800)]
Updated AUTHORS/CONTRIBUTORS files according to
http://golang.org/doc/contribute.html#copyright

R=rsc
https://golang.org/cl/156066

15 years agoAdded Kate syntax highlighting file.
Evan Shaw [Wed, 18 Nov 2009 07:34:08 +0000 (23:34 -0800)]
Added Kate syntax highlighting file.

R=rsc
https://golang.org/cl/155075

15 years agoAdding my name to authors/contributors.
Evan Shaw [Wed, 18 Nov 2009 07:34:00 +0000 (23:34 -0800)]
Adding my name to authors/contributors.

R=rsc
https://golang.org/cl/154169

15 years agocodereview: more attempts at robustness in the face of unexpected exceptions
Russ Cox [Wed, 18 Nov 2009 07:23:18 +0000 (23:23 -0800)]
codereview: more attempts at robustness in the face of unexpected exceptions

R=r
https://golang.org/cl/156062

15 years agoAdds Trevor Strohman to CONTRIBUTORS.
Trevor Strohman [Wed, 18 Nov 2009 07:22:41 +0000 (23:22 -0800)]
Adds Trevor Strohman to CONTRIBUTORS.
Google is my employer so no AUTHORS change is needed.

R=rsc
https://golang.org/cl/154174

15 years agoruntime: add ARM memmove
Russ Cox [Wed, 18 Nov 2009 06:54:20 +0000 (22:54 -0800)]
runtime: add ARM memmove

R=ken2
https://golang.org/cl/156063

15 years agocopy tweaks
Russ Cox [Wed, 18 Nov 2009 06:16:55 +0000 (22:16 -0800)]
copy tweaks
  * move memmove to arch-specific subdirectories
  * add memmove for arm
  * add copyright notices marking them as copied from Inferno

R=ken2
https://golang.org/cl/156061

15 years agoadd a test for %+v in nested structures.
Rob Pike [Wed, 18 Nov 2009 06:14:34 +0000 (22:14 -0800)]
add a test for %+v in nested structures.
threw in an embedded one for good measure.

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

15 years agoallow copy to be used without a return value
Ken Thompson [Wed, 18 Nov 2009 06:00:59 +0000 (22:00 -0800)]
allow copy to be used without a return value

R=rsc
https://golang.org/cl/156060

15 years agoruntime: two trivial but important bug fixes
Russ Cox [Wed, 18 Nov 2009 06:00:30 +0000 (22:00 -0800)]
runtime: two trivial but important bug fixes

R=r
https://golang.org/cl/156059

15 years agorelease.2009-11-17: tag as of earlier this evening
Russ Cox [Wed, 18 Nov 2009 06:00:17 +0000 (22:00 -0800)]
release.2009-11-17: tag as of earlier this evening

R=r
https://golang.org/cl/156058

15 years agobug in copy
Ken Thompson [Wed, 18 Nov 2009 04:44:35 +0000 (20:44 -0800)]
bug in copy

R=rsc
https://golang.org/cl/156056

15 years agoinstall copy predefined
Ken Thompson [Wed, 18 Nov 2009 04:41:44 +0000 (20:41 -0800)]
install copy predefined
did not test 386, but should work
shouldnt matter if copy is not used

R=rsc
https://golang.org/cl/156055

15 years agocrypto/rsa: add PKCS#1 v1.5 signature support. weekly.2009-11-17
Adam Langley [Wed, 18 Nov 2009 02:21:47 +0000 (18:21 -0800)]
crypto/rsa: add PKCS#1 v1.5 signature support.

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

15 years agoasn1:
Adam Langley [Wed, 18 Nov 2009 02:09:41 +0000 (18:09 -0800)]
asn1:
  * add Marshal
  * add BitString.RightAlign
  * change to using a *time.Time (from time.Time) since that's what
    the time package uses.
  * return the unparsed data from Unmarshal.

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

15 years agocodereview: handle spaces and other unexpected chars in nicknames
Russ Cox [Wed, 18 Nov 2009 00:52:36 +0000 (16:52 -0800)]
codereview: handle spaces and other unexpected chars in nicknames

R=r
https://golang.org/cl/157053

15 years agoLet us have side by side git if we want
Josh Goebel [Wed, 18 Nov 2009 00:46:58 +0000 (16:46 -0800)]
Let us have side by side git if we want

R=r, rsc
https://golang.org/cl/156046

15 years agoAdd myself to authors and contributors
Josh Goebel [Wed, 18 Nov 2009 00:22:29 +0000 (16:22 -0800)]
Add myself to authors and contributors

R=r
https://golang.org/cl/156045

15 years agoreflect: document that PkgPath and Name return
Russ Cox [Wed, 18 Nov 2009 00:03:14 +0000 (16:03 -0800)]
reflect: document that PkgPath and Name return
empty string for unnamed types.

Fixes #249.

R=r
https://golang.org/cl/156052

15 years agohttp: do not crash accessing r.Form if ParseForm fails
Russ Cox [Tue, 17 Nov 2009 22:45:10 +0000 (14:45 -0800)]
http: do not crash accessing r.Form if ParseForm fails

Fixes #233.

R=dsymonds1
https://golang.org/cl/154179

15 years agoruntime: do not create new threads during malloc.
Russ Cox [Tue, 17 Nov 2009 22:42:08 +0000 (14:42 -0800)]
runtime: do not create new threads during malloc.
the signal handling stack is a different size than
the normal stack, so it cannot be allocated using
the backup stack allocator.

Fixes #250.

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

15 years agoexplain the situation with unicode and identifiers
Rob Pike [Tue, 17 Nov 2009 22:40:07 +0000 (14:40 -0800)]
explain the situation with unicode and identifiers

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

15 years agofix botch
Ken Thompson [Tue, 17 Nov 2009 22:11:50 +0000 (14:11 -0800)]
fix botch

R=rsc
https://golang.org/cl/157046

15 years agochange a n^2 algorithm in
Ken Thompson [Tue, 17 Nov 2009 21:59:38 +0000 (13:59 -0800)]
change a n^2 algorithm in
data initialization to n*log(n)

R=rsc
https://golang.org/cl/158041

15 years agoimprove documentation of runtime. there was no mention of types.
Rob Pike [Tue, 17 Nov 2009 19:44:15 +0000 (11:44 -0800)]
improve documentation of runtime. there was no mention of types.

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

15 years agocase insensitive matching in CONTRIBUTORS file
Rob Pike [Tue, 17 Nov 2009 19:40:25 +0000 (11:40 -0800)]
case insensitive matching in CONTRIBUTORS file

R=rsc
https://golang.org/cl/157043

15 years agoMake non-errored RPC calls return 'nil' error to caller.
Aron Nopanen [Tue, 17 Nov 2009 19:29:02 +0000 (11:29 -0800)]
Make non-errored RPC calls return 'nil' error to caller.

Error information is carried from RPC server to client in the string
'Error' field of rpc.Response. An empty string is sent in the success
case. This empty string was being returned to the caller (of Client.Call
or Client.Go), resulting in a non-nil error response.

This change detects an empty-string Response.Error at the client, and
translates it into a nil value in Call.Error.

Tests updated to check error return in success cases.

R=r, rsc
https://golang.org/cl/154159

15 years agoAdd myself to 'AUTHORS' and 'CONTRIBUTORS'
Aron Nopanen [Tue, 17 Nov 2009 19:28:54 +0000 (11:28 -0800)]
Add myself to 'AUTHORS' and 'CONTRIBUTORS'

R=rsc, r
https://golang.org/cl/154175

15 years agocodereview: discard \r characters (sigh)
Russ Cox [Tue, 17 Nov 2009 17:08:54 +0000 (09:08 -0800)]
codereview: discard \r characters (sigh)

R=r
https://golang.org/cl/157041

15 years agocmd/cc: Fix -I switch to handle a path with blankspaces correctly
Sergio Luis O. B. Correia [Tue, 17 Nov 2009 17:02:47 +0000 (09:02 -0800)]
cmd/cc: Fix -I switch to handle a path with blankspaces correctly

Currently, -I switch can't deal with a path containing spaces.
This commit simplify setinclude(), by removing the special case
of a string that had spaces. After this change, setinclude() will
merely add the given directories to the include path, if it does
not yet exist, and this approach works.

Will be needed for solving issue 115.

R=agl1, rsc, iant2, r
https://golang.org/cl/155059

15 years agoAdd myself to list of AUTHORS/CONTRIBUTORS for Go.
Sergio Luis O. B. Correia [Tue, 17 Nov 2009 17:02:41 +0000 (09:02 -0800)]
Add myself to list of AUTHORS/CONTRIBUTORS for Go.

R=rsc
https://golang.org/cl/154180

15 years agocodereview: add clpatch --ignore_hgpatch_errors.
Russ Cox [Tue, 17 Nov 2009 16:47:48 +0000 (08:47 -0800)]
codereview: add clpatch --ignore_hgpatch_errors.
  of limited utility but good for creating the metadata
  for an AUTHORS/CONTRIBUTORS change even if
  the patch doesn't apply cleanly.

R=r
https://golang.org/cl/154140

15 years agomath: fix argument names in Atan2
Russ Cox [Tue, 17 Nov 2009 16:39:56 +0000 (08:39 -0800)]
math: fix argument names in Atan2
(error introduced converting from arg1, arg2)

Fixes #220.

R=r
https://golang.org/cl/156041

15 years agoMake.pkg: have "make coverage" invoke 6cov with correct binary
Russ Cox [Tue, 17 Nov 2009 16:39:26 +0000 (08:39 -0800)]
Make.pkg: have "make coverage" invoke 6cov with correct binary

Fixes #239.

R=r
https://golang.org/cl/154176

15 years agonet: enforce timeouts for ReadFrom/WriteTo
Russ Cox [Tue, 17 Nov 2009 16:39:17 +0000 (08:39 -0800)]
net: enforce timeouts for ReadFrom/WriteTo

Fixes #153.

R=r
https://golang.org/cl/154177

15 years agosyscall: use correct pointer in recvfrom/sendto.
Russ Cox [Tue, 17 Nov 2009 16:39:04 +0000 (08:39 -0800)]
syscall: use correct pointer in recvfrom/sendto.
linux/386 stack trace: use 32-bit hex.

Fixes #159.

R=r
https://golang.org/cl/154178

15 years agoPass ui into PostMessage to avoid nasty/confusing exception
Devon H. O'Dell [Tue, 17 Nov 2009 16:32:23 +0000 (08:32 -0800)]
Pass ui into PostMessage to avoid nasty/confusing exception

R=rsc
https://golang.org/cl/155079

15 years agoFreeBSD-specific porting work.
Devon H. O'Dell [Tue, 17 Nov 2009 16:20:58 +0000 (08:20 -0800)]
FreeBSD-specific porting work.

cgo/libmach remain unimplemented. However, compilers, runtime,
and packages are 100%. I still need to go through and implement
missing syscalls (at least make sure they're all listed), but
for all shipped functionality, this is done. Ship! ;)

R=rsc, VenkateshSrinivas
https://golang.org/cl/152142

15 years agoRework gobs to fix bad bug related to sharing of id's between encoder and decoder...
Rob Pike [Tue, 17 Nov 2009 07:32:30 +0000 (23:32 -0800)]
Rework gobs to fix bad bug related to sharing of id's between encoder and decoder side.
Fix is to move all decoder state into the decoder object.

Fixes #215.

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

15 years agofix bug causing empty strings to be become non-nil errors on client side of rpc conne...
Rob Pike [Tue, 17 Nov 2009 07:32:16 +0000 (23:32 -0800)]
fix bug causing empty strings to be become non-nil errors on client side of rpc connection.

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

15 years agofix typo in Append return type
Rob Pike [Tue, 17 Nov 2009 05:56:38 +0000 (21:56 -0800)]
fix typo in Append return type

R=rsc
https://golang.org/cl/155058

15 years agobug218.go: testcase for issue 238
Robert Griesemer [Tue, 17 Nov 2009 01:53:39 +0000 (17:53 -0800)]
bug218.go: testcase for issue 238

R=rsc
https://golang.org/cl/154172

15 years agoruntime: make signal handler work on 386
Russ Cox [Tue, 17 Nov 2009 01:51:47 +0000 (17:51 -0800)]
runtime: make signal handler work on 386

R=r
https://golang.org/cl/154171

15 years agogc: change "can we const evaluate this" from blacklist to whitelist
Russ Cox [Tue, 17 Nov 2009 01:40:47 +0000 (17:40 -0800)]
gc: change "can we const evaluate this" from blacklist to whitelist

R=ken2
https://golang.org/cl/155074

15 years ago6l: fix divide by zero in glibc linker.
Russ Cox [Tue, 17 Nov 2009 01:40:03 +0000 (17:40 -0800)]
6l: fix divide by zero in glibc linker.

repeats 8l change http://code.google.com/p/go/source/detail?r=7594e16b5cf9

Fixes #179.

R=iant
https://golang.org/cl/154145

15 years agounsafe: documentation typo.
Adam Langley [Mon, 16 Nov 2009 23:39:04 +0000 (15:39 -0800)]
unsafe: documentation typo.

Fixes #236.

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

15 years agoAdd id attribute to h2 and h3 tags so that they exist when referring
Robert Griesemer [Mon, 16 Nov 2009 23:25:16 +0000 (15:25 -0800)]
Add id attribute to h2 and h3 tags so that they exist when referring
to generated pages even if Javascript has not introduced them yet.

R=rsc
https://golang.org/cl/154167

15 years agoDon't emit line tags when source code is printed as part of
Robert Griesemer [Mon, 16 Nov 2009 22:26:29 +0000 (14:26 -0800)]
Don't emit line tags when source code is printed as part of
package documentation using templates. The line tag interferes
with the anchor tag introduces by the template.

This fixes an an issue where some headers lost their ability
to link to the respective source code.

R=rsc
https://golang.org/cl/154166

15 years agoAdd some primitive type aliases to exp/iterable and define Iter on them.
David Symonds [Mon, 16 Nov 2009 21:39:59 +0000 (13:39 -0800)]
Add some primitive type aliases to exp/iterable and define Iter on them.

R=rsc
https://golang.org/cl/155065

15 years ago An asked-for-in #go-nuts extension to quickly create a repeated
David G. Andersen [Mon, 16 Nov 2009 20:40:01 +0000 (12:40 -0800)]
An asked-for-in #go-nuts extension to quickly create a repeated
copy of a string or a byte array.
        strings.Repeat("-", 50)
bytes.Repeat(b, 99)

R=rsc
https://golang.org/cl/155063

15 years agoAdding my name to authors/contributors. I'm waiting to hear
David G. Andersen [Mon, 16 Nov 2009 20:39:37 +0000 (12:39 -0800)]
Adding my name to authors/contributors.  I'm waiting to hear
back from Carnegie Mellon about whether they're interested in
signing the agreement (do you know if they have already?).
In the meantime, I'm submitting these changes on my own time.
If CMU has already signed the corporate contributor agreement,
please remove my name from the AUTHORS list.

R=rsc
https://golang.org/cl/154161

15 years agos/AJMP/AB/ to fix build breakage.
Kai Backman [Mon, 16 Nov 2009 19:58:28 +0000 (11:58 -0800)]
s/AJMP/AB/ to fix build breakage.

R=rsc
https://golang.org/cl/155069

15 years agodoc: fix typo.
Adam Langley [Mon, 16 Nov 2009 19:56:18 +0000 (11:56 -0800)]
doc: fix typo.

Fixes #218

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

15 years ago- Clarify that struct composite literal keys are field names not selectors.
Robert Griesemer [Mon, 16 Nov 2009 16:58:55 +0000 (08:58 -0800)]
- Clarify that struct composite literal keys are field names not selectors.
- Slight re-phrasing of struct type section since "field name" was not
properly introduced.

Fixes #164.

R=r, rsc, iant
https://golang.org/cl/155061

15 years agoUse ElementType consistently.
Robert Griesemer [Mon, 16 Nov 2009 01:42:27 +0000 (17:42 -0800)]
Use ElementType consistently.

Fixes #173.

R=r, rsc, r1
https://golang.org/cl/154156

15 years agogc: fix up floating point NaN comparisons
Russ Cox [Mon, 16 Nov 2009 01:24:14 +0000 (17:24 -0800)]
gc: fix up floating point NaN comparisons

Fixes #167.

R=ken2
https://golang.org/cl/155062

15 years agocrypto/md5: fix comment typo.
Adam Langley [Sun, 15 Nov 2009 22:00:46 +0000 (14:00 -0800)]
crypto/md5: fix comment typo.

Fixes #210.

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

15 years agoadd a paragraph about GOMAXPROCS
Rob Pike [Sun, 15 Nov 2009 21:09:43 +0000 (13:09 -0800)]
add a paragraph about GOMAXPROCS

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

15 years agogodefs: avoid gcc 4'isms in command line.
Russ Cox [Sun, 15 Nov 2009 20:57:39 +0000 (12:57 -0800)]
godefs: avoid gcc 4'isms in command line.

Fixes #97.

R=r
https://golang.org/cl/155054

15 years agogodocs.js: fix bad variable name
Russ Cox [Sun, 15 Nov 2009 20:57:33 +0000 (12:57 -0800)]
godocs.js: fix bad variable name

Thanks to anno.langen.
Fixes #103.

R=r
https://golang.org/cl/155050

15 years agomakefiles: use correct gcc order in case --as-needed is in use.
Russ Cox [Sun, 15 Nov 2009 20:57:28 +0000 (12:57 -0800)]
makefiles: use correct gcc order in case --as-needed is in use.

Suggested by eostapets.
Fixes #141.

R=r
https://golang.org/cl/155049

15 years agocgo: arrange for English error messages
Russ Cox [Sun, 15 Nov 2009 20:57:21 +0000 (12:57 -0800)]
cgo: arrange for English error messages

Fixes #21.

R=r
https://golang.org/cl/155048

15 years agoruntime: avoid crash in Caller
Russ Cox [Sun, 15 Nov 2009 20:57:15 +0000 (12:57 -0800)]
runtime: avoid crash in Caller

Fixes #176.

R=r
https://golang.org/cl/154146

15 years agogc: five bug fixes, one better error.
Russ Cox [Sun, 15 Nov 2009 20:57:09 +0000 (12:57 -0800)]
gc: five bug fixes, one better error.

* check for struct literal assignment to private fields.
* record, fix crash involving parallel map assignment.
* avoid infinite recursion in exportassignok.
* make floating point bounds check precise.
* avoid crash on invalid receiver.

* add context to error about implicit assignment.

Fixes #86.
Fixes #88.
Fixes #158.
Fixes #174.
Fixes #201.
Fixes #204.

R=ken2
https://golang.org/cl/154144

15 years agohttp.URLEscape: escape all bytes required by RFC 2396
Russ Cox [Sun, 15 Nov 2009 20:56:50 +0000 (12:56 -0800)]
http.URLEscape: escape all bytes required by RFC 2396

Fixes #125.

R=r
https://golang.org/cl/154143

15 years agogotest: show the test file pattern in "no test files" error
Russ Cox [Sun, 15 Nov 2009 20:56:39 +0000 (12:56 -0800)]
gotest: show the test file pattern in "no test files" error

Fixes #190.

R=r
https://golang.org/cl/154142