]>
Cypherpunks repositories - gostls13.git/log
Roger Peppe [Tue, 12 Jan 2010 17:45:11 +0000 (09:45 -0800)]
Fix bug that prevented the gofmt test script being run on more
than one explicitly named file.
R=rsc, gri
CC=golang-dev
https://golang.org/cl/186095
Charles L. Dorian [Tue, 12 Jan 2010 05:28:02 +0000 (21:28 -0800)]
math: special cases for Ceil, Exp, Floor, Log, Log10
Added special case tests to all_test.go. Added tests to Floor,
in-lined tests in Exp and Log.
R=rsc
CC=golang-dev
https://golang.org/cl/184081
Adam Langley [Tue, 12 Jan 2010 02:54:13 +0000 (18:54 -0800)]
asn1: fix marshaling of structures with >1 elements.
Fixes #515.
R=rsc
CC=golang-dev
https://golang.org/cl/184079
Adam Langley [Tue, 12 Jan 2010 02:53:58 +0000 (18:53 -0800)]
asn1: fix parsing of elements after a string in a structure.
Fixes #516.
R=rsc
CC=golang-dev, golang-dev
https://golang.org/cl/184080
Rob Pike [Tue, 12 Jan 2010 01:35:51 +0000 (17:35 -0800)]
delete debugging prints
R=rsc
CC=golang-dev
https://golang.org/cl/186079
Rob Pike [Tue, 12 Jan 2010 01:35:06 +0000 (17:35 -0800)]
delete debugging prints
R=rsc
CC=golang-dev
https://golang.org/cl/186079
Rob Pike [Tue, 12 Jan 2010 00:53:45 +0000 (16:53 -0800)]
add pprof output format to prof.
amd64 linux only.
R=rsc
CC=golang-dev
https://golang.org/cl/186077
Charles L. Dorian [Tue, 12 Jan 2010 00:20:51 +0000 (16:20 -0800)]
math: special cases for Fmod
Added special case tests to all_test.go for Fmod. Fixed Fmod [hung
for Fmod(+/-Inf, <finite>)]. Also added test for Ceil in all_test.go.
R=rsc
CC=golang-dev
https://golang.org/cl/186076
Bill Neubauer [Mon, 11 Jan 2010 21:06:58 +0000 (13:06 -0800)]
doc/contribute.html: change copyright year
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/184055
Devon H. O'Dell [Mon, 11 Jan 2010 21:05:26 +0000 (13:05 -0800)]
cgo: Make constants #define'd in C available to Go (as consts)
Fixes #435
R=rsc
CC=golang-dev
https://golang.org/cl/181161
Yongjian Xu [Mon, 11 Jan 2010 21:03:01 +0000 (13:03 -0800)]
gc: clean opnames.h
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/181186
Robert Griesemer [Mon, 11 Jan 2010 20:58:13 +0000 (12:58 -0800)]
Remove -oldprinter flag from gofmt; all code is
now printed using the semicolon-free style.
Removed NoSemis flag and mechanism dealing with
optional semicolons from go/printer.
Updated all go/printer output files using the
semi-colon free style.
Changes have no formatting impact on checked in
go code under src and misc.
R=rsc, r
CC=golang-dev
https://golang.org/cl/184068
Rob Pike [Mon, 11 Jan 2010 20:38:31 +0000 (07:38 +1100)]
Clean up and make consistent the comments in the math package.
R=rsc
CC=golang-dev
https://golang.org/cl/186042
Russ Cox [Mon, 11 Jan 2010 19:25:37 +0000 (11:25 -0800)]
math: fix pow10 comment, test portable Sqrt
R=r
CC= golang-dev, Charlie Dorian, golang-dev
https://golang.org/cl/184058
David Symonds [Mon, 11 Jan 2010 19:23:46 +0000 (11:23 -0800)]
Replicate signal names from syscall in os/signal.
R=rsc
CC=golang-dev
https://golang.org/cl/183142
Robert Griesemer [Mon, 11 Jan 2010 18:38:06 +0000 (10:38 -0800)]
Partial work-around for gofmt bug.
Addresses some cases and respects position of
closing parenthesis; but doesn't work yet in
all cases. Heuristic; will need to be replaced
by a real solution eventually. Does not cause
existing code to be reformatted.
R=r
CC=golang-dev, rsc
https://golang.org/cl/186043
Charles L. Dorian [Sun, 10 Jan 2010 23:41:07 +0000 (15:41 -0800)]
math: Sqrt using 386 FPU.
Note: sqrt_decl.go already in src/pkg/math/.
R=rsc
CC=golang-dev
https://golang.org/cl/183155
Russ Cox [Sat, 9 Jan 2010 17:47:45 +0000 (09:47 -0800)]
runtime: check for preemption due to garbage collection
in various already expensive routines.
helps keep cpu utilization up when GOMAXPROCS > 1,
but not a full solution.
http://groups.google.com/group/golang-nuts/t/
7a9535c4136d3e2
R=r
CC=golang-dev
https://golang.org/cl/184043
Russ Cox [Sat, 9 Jan 2010 17:47:14 +0000 (09:47 -0800)]
codereview: do not send mail when submitting for others
rename original_author to copied_from so that it reads
better when used as a condition.
R=r
CC=golang-dev
https://golang.org/cl/185045
Charles L. Dorian [Fri, 8 Jan 2010 22:12:10 +0000 (14:12 -0800)]
math: special cases for Atan, Asin and Acos
Added tests for NaN and out-of-range values.
Combined asin.go and atan.go into atan.go.
R=rsc
CC=golang-dev
https://golang.org/cl/180065
Rob Pike [Fri, 8 Jan 2010 20:32:26 +0000 (07:32 +1100)]
fix typo
R=gri, iant
CC=golang-dev
https://golang.org/cl/183160
Russ Cox [Fri, 8 Jan 2010 08:01:03 +0000 (00:01 -0800)]
gc: bug238
Fixes #471.
R=ken2
CC=golang-dev
https://golang.org/cl/181184
Russ Cox [Fri, 8 Jan 2010 07:24:48 +0000 (23:24 -0800)]
gc: bug219, bug239, bug240
Fixes #475.
R=ken2
CC=golang-dev
https://golang.org/cl/183157
Russ Cox [Fri, 8 Jan 2010 07:20:00 +0000 (23:20 -0800)]
gc: bug241
Fixes #495.
R=ken2
CC=golang-dev
https://golang.org/cl/183156
Rob Pike [Fri, 8 Jan 2010 06:49:55 +0000 (17:49 +1100)]
Rewrite tokenizer to clean up and fix a bug with spaces before delimited block.
Fixes #501.
R=rsc
CC=golang-dev
https://golang.org/cl/181183
Adam Langley [Fri, 8 Jan 2010 02:45:45 +0000 (18:45 -0800)]
Add builder scripts.
These are the scripts behind godashboard.appspot.com. Nothing is
particularly beautiful about it, but it does run.
I still need to add support for per-builder keys and for running the
benchmarks.
R=rsc
CC=golang-dev
https://golang.org/cl/183153
Russ Cox [Fri, 8 Jan 2010 02:23:41 +0000 (18:23 -0800)]
add doc/devel/index.html, linked from nav bar
R=r
CC=golang-dev
https://golang.org/cl/181156
Russ Cox [Fri, 8 Jan 2010 02:23:30 +0000 (18:23 -0800)]
codereview: repeated hg mail sends "PTAL"
also send out hg mail for TBR submits
R=r
CC=golang-dev
https://golang.org/cl/183137
Russ Cox [Fri, 8 Jan 2010 02:10:29 +0000 (18:10 -0800)]
http: most of a URL shouldn't use URL-escaping
Fixes #502.
R=r, hoisie
CC=golang-dev
https://golang.org/cl/181179
Rob Pike [Fri, 8 Jan 2010 01:59:20 +0000 (12:59 +1100)]
Add a parser to the time package, the inverse of time.Format
R=rsc
CC=golang-dev
https://golang.org/cl/183141
Robert Griesemer [Thu, 7 Jan 2010 17:27:24 +0000 (09:27 -0800)]
added some missing periods
R=rsc
CC=golang-dev
https://golang.org/cl/181171
Rob Pike [Thu, 7 Jan 2010 03:36:54 +0000 (14:36 +1100)]
make Format about twice as fast by removing allocations, using a bytes.Buffer
add a benchmark
R=rsc
CC=golang-dev
https://golang.org/cl/181164
Rob Pike [Thu, 7 Jan 2010 03:36:28 +0000 (19:36 -0800)]
update timing logs for benchmarks.
some significant improvements:
reverse-complement
nbody (gccgo only)
regex-dna
pidigits
one mysterious drop:
binary-tree.go (gccgo only)
R=rsc
CC=golang-dev
https://golang.org/cl/181158
Evan Shaw [Thu, 7 Jan 2010 03:28:19 +0000 (19:28 -0800)]
8g: float->uint64 conversion optimization
Using FUCOMIP instead of the FUCOMP-FSTSW-SAHF sequence gives better performance and saves code space.
R=rsc
CC=golang-dev
https://golang.org/cl/183139
Evan Shaw [Thu, 7 Jan 2010 03:26:04 +0000 (19:26 -0800)]
libmach: Add disassembly for newly implemented opcodes
R=rsc
CC=golang-dev
https://golang.org/cl/183140
Russ Cox [Thu, 7 Jan 2010 03:24:11 +0000 (19:24 -0800)]
runtime: close TODO now that 8c bug is fixed
R=r
CC=golang-dev
https://golang.org/cl/183138
Rob Pike [Thu, 7 Jan 2010 02:29:43 +0000 (13:29 +1100)]
add a standard interface that wraps ReadByte, io.ReadByter
R=rsc
CC=golang-dev
https://golang.org/cl/181163
Russ Cox [Thu, 7 Jan 2010 02:19:56 +0000 (18:19 -0800)]
sync make-arm.bash with make.bash
R=r
CC=golang-dev
https://golang.org/cl/183135
Russ Cox [Thu, 7 Jan 2010 02:18:07 +0000 (18:18 -0800)]
8c: only refer to extern register variables in MOVL instructions
R=ken2
https://golang.org/cl/183136
Russ Cox [Thu, 7 Jan 2010 01:59:15 +0000 (17:59 -0800)]
deps.bash: handle space between .go and \ in GOFILES=
R=r
CC=golang-dev
https://golang.org/cl/181157
Hector Chu [Thu, 7 Jan 2010 01:58:55 +0000 (17:58 -0800)]
Ported runtime to Windows.
R=rsc
CC=golang-dev
https://golang.org/cl/176066
Russ Cox [Thu, 7 Jan 2010 00:35:28 +0000 (16:35 -0800)]
time: fix Makefile so deps.bash is happy (fixes build)
TBR=r
https://golang.org/cl/183133
Russ Cox [Wed, 6 Jan 2010 23:59:03 +0000 (15:59 -0800)]
godoc: serve index.html in place of directory listing, when present
R=gri
CC=golang-dev
https://golang.org/cl/181155
Russ Cox [Wed, 6 Jan 2010 23:46:09 +0000 (15:46 -0800)]
add release log as doc/devel/release.html
won't appear online until next release
R=r
CC=golang-dev
https://golang.org/cl/183126
Austin Clements [Wed, 6 Jan 2010 23:45:43 +0000 (15:45 -0800)]
Use remove-text-properties instead of
remove-list-of-test-properties, since the latter is missing
from XEmacs.
Fixes #462.
R=rsc
CC=golang-dev
https://golang.org/cl/181152
Russ Cox [Wed, 6 Jan 2010 23:45:30 +0000 (15:45 -0800)]
http: avoid header duplication - take struct fields out of Header map
R=r
CC=golang-dev, petar-m
https://golang.org/cl/183132
Devon H. O'Dell [Wed, 6 Jan 2010 23:45:08 +0000 (15:45 -0800)]
cgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.
This keeps debug symbols in for e.g. unreferenced enums.
Fixes #479
R=rsc
CC=golang-dev, waltermundt
https://golang.org/cl/181102
Rob Pike [Wed, 6 Jan 2010 23:32:48 +0000 (10:32 +1100)]
New time formatter, time.Format(formatString)
The model is that formatString is a a representation of a standard time,
and that Format converts the time to that representation.
Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601.
There's also a humane Kitchen fomat: 3:04PM.
R=rsc, benolive, cw
CC=golang-dev
https://golang.org/cl/181130
Jan H. Hosang [Wed, 6 Jan 2010 21:55:47 +0000 (13:55 -0800)]
Added me to authors and contributors.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/181153
Devon H. O'Dell [Wed, 6 Jan 2010 15:47:56 +0000 (07:47 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
QUOTED_GOBIN. Re-take of 181077; fixes copy-pasta that broke build.
Fixes #468
R=rsc
CC=golang-dev
https://golang.org/cl/183125
Ivan Krasin [Wed, 6 Jan 2010 15:47:40 +0000 (07:47 -0800)]
Add http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.
R=rsc, imkrasin
CC=golang-dev
https://golang.org/cl/179126
Ivan Krasin [Wed, 6 Jan 2010 15:25:17 +0000 (07:25 -0800)]
Propagate error to the caller in json.Marshal. Fixes issue 445.
R=rsc, imkrasin
CC=golang-dev
https://golang.org/cl/179125
Russ Cox [Wed, 6 Jan 2010 01:15:56 +0000 (17:15 -0800)]
release.2010-01-05
R=r
https://golang.org/cl/183124
Russ Cox [Wed, 6 Jan 2010 01:12:44 +0000 (17:12 -0800)]
hgtags: delete "release" (prepare for new release)
R=r
CC=golang-dev
https://golang.org/cl/183123
Evan Shaw [Wed, 6 Jan 2010 01:06:41 +0000 (17:06 -0800)]
8a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructions
Fixes #447
R=rsc
CC=golang-dev
https://golang.org/cl/183047
Russ Cox [Wed, 6 Jan 2010 00:54:27 +0000 (16:54 -0800)]
rollback of https://golang.org/cl/181077
(broke build)
TBR=dho
https://golang.org/cl/181139
Evan Shaw [Wed, 6 Jan 2010 00:50:52 +0000 (16:50 -0800)]
xml: Fix comment so that example code compiles
R=rsc
CC=golang-dev
https://golang.org/cl/181138
Austin Clements [Wed, 6 Jan 2010 00:50:36 +0000 (16:50 -0800)]
Update Emacs go-mode for new semicolon rule.
Fixes #415.
R=rsc
CC=golang-dev
https://golang.org/cl/183104
Russ Cox [Wed, 6 Jan 2010 00:49:05 +0000 (16:49 -0800)]
big: fix ProbablyPrime bug, comments
(changes adopted from alc, agl)
R=agl1, agl
CC=golang-dev
https://golang.org/cl/181137
Devon H. O'Dell [Wed, 6 Jan 2010 00:22:40 +0000 (16:22 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of QUOTED_GOBIN
Fixes #468
R=rsc
CC=golang-dev
https://golang.org/cl/181077
Devon H. O'Dell [Tue, 5 Jan 2010 17:21:15 +0000 (09:21 -0800)]
syscall: add nanosleep on FreeBSD
Fixes #461
R=rsc
CC=golang-dev
https://golang.org/cl/181059
Roger Peppe [Tue, 5 Jan 2010 17:20:02 +0000 (09:20 -0800)]
net: make Dial correctly return nil on error.
R=rsc
CC=golang-dev
https://golang.org/cl/181135
Robert Griesemer [Tue, 5 Jan 2010 01:28:02 +0000 (17:28 -0800)]
remove reference to "basic literal" since it's never defined
R=rsc, r
CC=golang-dev
https://golang.org/cl/183113
Robert Griesemer [Tue, 5 Jan 2010 01:26:01 +0000 (17:26 -0800)]
Simplified parser interface.
R=rsc, r
CC=golang-dev, rog
https://golang.org/cl/183116
Rob Pike [Tue, 5 Jan 2010 00:33:06 +0000 (11:33 +1100)]
Check for errors when writing fields of a struct.
R=rsc
CC=golang-dev, jack.palevich
https://golang.org/cl/183109
Roger Peppe [Mon, 4 Jan 2010 18:34:37 +0000 (10:34 -0800)]
Allow a nil Ident to print without crashing.
Allow Walk of []Decl
R=gri
CC=golang-dev, rsc
https://golang.org/cl/183112
Rob Pike [Sun, 3 Jan 2010 20:36:39 +0000 (07:36 +1100)]
fix up YB and add ZB, EB in example
R=rsc
CC=golang-dev
https://golang.org/cl/183107
Yongjian Xu [Sat, 2 Jan 2010 00:09:22 +0000 (11:09 +1100)]
Remove redundant size check in resize. Let callers worry about that and resize should just do "resize".
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/181111
Rob Pike [Thu, 31 Dec 2009 01:47:20 +0000 (12:47 +1100)]
trivial bug: []byte is special but [3]byte is not.
modify a test to verify the fix.
R=rsc
CC=golang-dev
https://golang.org/cl/183090
Robert Griesemer [Wed, 30 Dec 2009 23:30:57 +0000 (15:30 -0800)]
More Xcode support.
Recognize special comments starting
with TODO or BUG.
R=r
CC=golang-dev
https://golang.org/cl/183095
Ian Lance Taylor [Tue, 29 Dec 2009 22:59:08 +0000 (14:59 -0800)]
Document how to build gccgo to use gold.
This provides full support for discontiguous stacks.
R=r
CC=golang-dev
https://golang.org/cl/183088
Robert Griesemer [Tue, 29 Dec 2009 22:44:56 +0000 (14:44 -0800)]
Test case for issue 475 and related bug.
R=iant
CC=golang-dev
https://golang.org/cl/183087
Ken Friedenbach [Tue, 29 Dec 2009 22:43:54 +0000 (14:43 -0800)]
Improved Xcode support
Added definition for raw string.
Added definitions for function and method declarations.
Enabled function, method, and type declarations to appear in Editor pop up menu.
Fixes #466.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/183065
Robert Griesemer [Tue, 29 Dec 2009 22:43:25 +0000 (14:43 -0800)]
added author/contributor
R=iant
CC=golang-dev
https://golang.org/cl/181099
Robert Griesemer [Tue, 29 Dec 2009 22:01:09 +0000 (14:01 -0800)]
test case for issue 471
R=iant
CC=golang-dev
https://golang.org/cl/183084
Rob Pike [Tue, 29 Dec 2009 21:33:48 +0000 (08:33 +1100)]
improve some type switches now that multiple types per case are supported.
R=rsc
CC=golang-dev
https://golang.org/cl/181089
Robert Griesemer [Tue, 29 Dec 2009 19:41:44 +0000 (11:41 -0800)]
Apply symmetric changes to sha1 and sha256 as to md4 and md5.
R=agl, agl1
CC=golang-dev
https://golang.org/cl/183083
Nigel Tao [Tue, 29 Dec 2009 04:23:55 +0000 (15:23 +1100)]
PNG decoder now handles transparent paletted images.
Fixes #439.
R=r
CC=golang-dev
https://golang.org/cl/181087
Nigel Tao [Tue, 29 Dec 2009 04:20:53 +0000 (15:20 +1100)]
JPEG decoder now handles RST (restart) markers.
R=r
CC=golang-dev
https://golang.org/cl/181075
Rob Pike [Tue, 29 Dec 2009 03:03:33 +0000 (14:03 +1100)]
add a debugging printer to the gob package.
used only for debugging, debug.go is not normally part of the package source.
also add a dump program to call it.
R=rsc
CC=golang-dev
https://golang.org/cl/183075
Rob Pike [Tue, 29 Dec 2009 03:03:12 +0000 (14:03 +1100)]
remove all references to gobType() from the decoder.
Fixes #470.
R=rsc
CC=golang-dev
https://golang.org/cl/183074
Robert Griesemer [Tue, 29 Dec 2009 01:24:53 +0000 (17:24 -0800)]
Fix bug in godoc tab conversion filter:
tabs after an empty line where not converted.
Also, made it more robust in the presence of
(unexpected) ' ' and '\v' chars in indentation
mode.
R=r
CC=golang-dev
https://golang.org/cl/181085
Robert Griesemer [Tue, 29 Dec 2009 01:20:33 +0000 (17:20 -0800)]
Symmetric changes to md4.go as for md5.go.
Use uint index variables in some cases instead
of int to enable strength reduction; this makes
it possible for the compiler to reduce % into
masks.
Old code: 6g -S md4.go md4block.go | grep "md4block.go:44"
0471 (md4block.go:44) MOVL AX,BX
0472 (md4block.go:44) MOVL AX,BP
0473 (md4block.go:44) MOVL AX,R8
0474 (md4block.go:44) SARL $31,R8
0475 (md4block.go:44) SHRL $30,R8
0476 (md4block.go:44) ADDL R8,BP
0477 (md4block.go:44) SARL $2,BP
0478 (md4block.go:44) IMULL $4,BP
0479 (md4block.go:44) SUBL BP,BX
0480 (md4block.go:44) MOVLQSX BX,BX
0481 (md4block.go:44) LEAQ shift1+0(SB),BP
0482 (md4block.go:44) CMPL BX,8(BP)
0483 (md4block.go:44) JCS ,485
0484 (md4block.go:44) CALL ,runtime.throwindex+0(SB)
0485 (md4block.go:44) MOVQ (BP),BP
0486 (md4block.go:44) MOVL (BP)(BX*4),DI
New code: 6g -S md4.go md4block.go | grep "md4block.go:44"
0471 (md4block.go:44) MOVL AX,BX
0472 (md4block.go:44) ANDL $3,BX
0473 (md4block.go:44) MOVLQZX BX,BX
0474 (md4block.go:44) LEAQ shift1+0(SB),BP
0475 (md4block.go:44) CMPL BX,8(BP)
0476 (md4block.go:44) JCS ,478
0477 (md4block.go:44) CALL ,runtime.throwindex+0(SB)
0478 (md4block.go:44) MOVQ (BP),BP
0479 (md4block.go:44) MOVL (BP)(BX*4),DI
R=agl, agl1
CC=golang-dev
https://golang.org/cl/181086
Robert Griesemer [Mon, 28 Dec 2009 23:48:58 +0000 (15:48 -0800)]
A couple of tighter loops.
(I was looking at this code accidentally because of some gofmt
issues and thought that one could write this more effectively.
You may have deliberately chosen not to use ranges here to make
the index range clearer. Just let me know.)
R=agl, agl1
CC=golang-dev
https://golang.org/cl/181084
Robert Griesemer [Mon, 28 Dec 2009 22:40:42 +0000 (14:40 -0800)]
Clarify section on tokens.
Fixes #457.
R=r
CC=golang-dev
https://golang.org/cl/181083
Rob Pike [Mon, 28 Dec 2009 20:41:53 +0000 (07:41 +1100)]
fix dumb bug: must write out default values inside arrays and slices
Fixes #459.
R=rsc, imkrasin, sonia
CC=golang-dev
https://golang.org/cl/181073
Robert Griesemer [Mon, 28 Dec 2009 20:27:43 +0000 (12:27 -0800)]
simplify some code that is using vectors
R=agl, agl1
CC=golang-dev
https://golang.org/cl/181080
Adam Langley [Mon, 28 Dec 2009 19:40:01 +0000 (11:40 -0800)]
crypto/tls: make Listener a pointer.
Listener contains private members and 6g now enforces that private
members cannot be assigned outside of their package.
R=rsc
CC=golang-dev
https://golang.org/cl/183073
Russ Cox [Sun, 27 Dec 2009 17:32:30 +0000 (09:32 -0800)]
gc: various C nits, found by plan 9 compiler.
reported by erik quanstrom.
R=ken2
https://golang.org/cl/181071
Rob Pike [Sat, 26 Dec 2009 20:57:57 +0000 (07:57 +1100)]
add exceptions to the road map. i think this just was an oversight.
also a way to run code when object is deleted.
both of these are possibilities, not certainties.
R=rsc, iant
CC=golang-dev
https://golang.org/cl/181057
Devon H. O'Dell [Thu, 24 Dec 2009 21:24:00 +0000 (08:24 +1100)]
Update documentation around time.Sleep to specify its precision, and suggest
a possible interface for more granular sleep times.
Fixes issue #260.
R=rsc, r
CC=golang-dev
https://golang.org/cl/181058
Rob Pike [Thu, 24 Dec 2009 20:13:14 +0000 (07:13 +1100)]
fix naked < and > as reported by Peter Williams <>
(i thought these were legal in <pre> blocks)
R=rsc
CC=golang-dev, pwil3058
https://golang.org/cl/181055
Ian Lance Taylor [Thu, 24 Dec 2009 06:08:49 +0000 (22:08 -0800)]
Use t.Errorf for formatted error output.
R=dsymonds1
CC=golang-dev
https://golang.org/cl/183049
Ian Lance Taylor [Thu, 24 Dec 2009 06:08:27 +0000 (22:08 -0800)]
Add a test for issue 337.
gccgo currently miscompiles this test.
R=rsc
CC=golang-dev
https://golang.org/cl/181050
Russ Cox [Wed, 23 Dec 2009 21:48:44 +0000 (13:48 -0800)]
go_spec: use PrimaryExpr as type switch expression
Without this change, the spec parses <-c.(type) as (<-c).(type)
but parses <-c.(int) as <-(c.(int)).
With this change, the former parses as <-(c.(type)).
All three parsers already implement this rule, because
they look for the "type" word during parsing of a standard
type assertion. This change merely brings the
spec in line with the implementations.
http://code.google.com/p/go/source/browse/src/cmd/gc/go.y#801
http://code.google.com/p/go/source/browse/src/pkg/go/parser/parser.go#900
http://gcc.gnu.org/viewcvs/branches/gccgo/gcc/go/parse.cc?revision=155389&view=markup#l2469
Pointed out by Brett Kail on golang-nuts.
R=gri
CC=golang-dev
https://golang.org/cl/182044
Peter Froehlich [Wed, 23 Dec 2009 21:43:35 +0000 (08:43 +1100)]
Add query to find number of subexpressions.
This was convenient for me to have without being forced
to parse the regexp myself. I'd understand if it's not
really wanted, but I also think that some meta information
about compiled regexps would be fine.
R=r, rsc
CC=golang-dev
https://golang.org/cl/183044
Robert Griesemer [Wed, 23 Dec 2009 21:15:00 +0000 (13:15 -0800)]
remove nums.sh
R=rsc
CC=golang-dev
https://golang.org/cl/181049
Rob Pike [Wed, 23 Dec 2009 20:41:56 +0000 (07:41 +1100)]
implement .repeats for maps.
Fixes #309.
R=rsc
CC=golang-dev
https://golang.org/cl/181044
Rob Pike [Wed, 23 Dec 2009 20:17:49 +0000 (07:17 +1100)]
make 6prof (sic) architecture-independent.
for now, it's amd64 and 386 only but it's trivial to add more.
Fixes #385.
(why couldn't it have been issue 386?)
tested for amd64 and 386 on darwin.
R=rsc
CC=golang-dev
https://golang.org/cl/182043
Adam Langley [Wed, 23 Dec 2009 19:13:09 +0000 (11:13 -0800)]
crypto/tls: extensions and Next Protocol Negotiation
Add support for TLS extensions in general and Next Protocol
Negotiation in particular.
R=rsc
CC=golang-dev
https://golang.org/cl/181045