Nigel Tao
cd0a75f3d7
exp/draw: unbreak build.
...
R=adg
CC=golang-dev
https://golang.org/cl/2448041
2010-10-12 14:05:50 +11:00
Nigel Tao
b5a480f035
image: add image.Tiled type, the Go equivalent of Plan9's repl bit.
...
Make ColorImage methods' receiver type be a pointer.
R=r, rsc
CC=golang-dev
https://golang.org/cl/2345043
2010-10-12 13:44:11 +11:00
Eric Clark
fcc0c00228
Make.cmd: remove $(OFILES)
...
The linker doesn't support multiple object files (maybe it did in the past?)
R=rsc
CC=golang-dev
https://golang.org/cl/2444041
2010-10-11 22:39:37 -04:00
Russ Cox
e6ecf9765a
exp/iterable: delete
...
Package iterable has outlived its utility.
It is an interesting demonstration, but it encourages
people to use iteration over channels where simple
iteration over array indices or a linked list would be
cheaper, simpler, and have fewer races.
R=dsymonds, r
CC=golang-dev
https://golang.org/cl/2436041
2010-10-11 22:38:42 -04:00
Andrew Gerrand
f75129894c
build: fix darwin/386 build
...
R=rsc
CC=golang-dev
https://golang.org/cl/2443041
2010-10-12 11:49:05 +11:00
Russ Cox
054be1b6c3
ld: be less picky about bad line number info
...
Fixes #1175 .
R=lvd
CC=golang-dev
https://golang.org/cl/2439041
2010-10-11 16:21:03 -04:00
Rob Pike
570f59c109
new command gotry.
...
An exercise in reflection and an unusual tool.
From the usage message:
usage: gotry [packagedirectory] expression ...
Given one expression, gotry attempts to evaluate that expression.
Given multiple expressions, gotry treats them as a list of arguments
and result values and attempts to find a function in the package
that, given the first few expressions as arguments, evaluates to
the remaining expressions as results. If the first expression has
methods, it will also search for applicable methods.
If there are multiple expressions, a package directory must be
specified. If there is a package argument, the expressions are
evaluated in an environment that includes
import . "packagedirectory"
Examples:
gotry 3+4
# evaluates to 7
gotry strings '"abc"' '"c"' 7-5
# finds strings.Index etc.
gotry regexp 'MustCompile("^[0-9]+")' '"12345"' true
# finds Regexp.MatchString
R=rsc, PeterGo, r2
CC=golang-dev
https://golang.org/cl/2352043
2010-10-11 12:40:13 -07:00
Roger Peppe
17c9c01912
netchan: zero out request to ensure correct gob decoding.
...
Gob decoding does not overwrite fields which are zero
in the encoder.
Fixes #1174 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2337044
2010-10-11 12:36:16 -07:00
Jim McGrath
3d0726b04d
6l: correct offset for __nl_symbol_ptr in Mach-O.
...
Fixes malformed object message from nm etc.
Fixes #1180 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/2390042
2010-10-11 14:45:01 -04:00
Jim McGrath
0f6926474f
6l: fix Mach-O LC_RPATH
...
Fixes #1177 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/2387042
2010-10-11 14:39:41 -04:00
Russ Cox
e35aff7205
A+C: Jim McGrath (individual CLA)
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2438041
2010-10-11 14:32:25 -04:00
Sam Thorogood
3b9c9d2125
expvar: add (*Int).Set
...
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/2336044
2010-10-11 13:14:07 -04:00
Russ Cox
1abd293d01
CONTRIBUTORS: link sam.thorogood@gmail.com for code review
...
R=Sam
CC=golang-dev
https://golang.org/cl/2437041
2010-10-11 13:13:57 -04:00
Adam Langley
2d8e2482cc
crypto/tls: make SetReadTimeout work.
...
Fixes #1181 .
R=rsc, agl1, cw, r2
CC=golang-dev
https://golang.org/cl/2414041
2010-10-11 10:41:01 -04:00
Adam Langley
f6e2eab8e0
crypto/tls: better error messages for certificate issues.
...
Fixes #1146 .
R=rsc, agl1
CC=golang-dev
https://golang.org/cl/2380042
2010-10-11 10:39:56 -04:00
Andrew Gerrand
1e66a21348
time: add After
...
Permits one to easily put a timeout in a select:
select {
case <-ch:
// foo
case <-time.After(1e6):
// bar
}
R=r, rog, rsc, sameer1, PeterGo, iant, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/2321043
2010-10-11 13:45:26 +11:00
Nigel Tao
fd311cb144
exp/draw/x11: support X11 vendors other than "The X.Org Foundation".
...
R=adg, ehog.hedge
CC=golang-dev
https://golang.org/cl/2385041
2010-10-09 11:22:14 +11:00
Ken Thompson
ed575dc2b9
bug in stack size in arm.
...
stack is off by one if calling
through reflect.Call
R=rsc
CC=golang-dev
https://golang.org/cl/2400041
2010-10-08 16:46:05 -07:00
Andrew Gerrand
3f032d5670
build: add GOHOSTOS and GOHOSTARCH environment variables.
...
Auto-detect both if not set, and if GOARCH is not set use GOHOSTARCH.
GOHOSTARCH is used to set the -m32 or -m64 flags for gcc.
This is so that 64-bit can build binaries that run on 32-bit systems.
R=rsc, iant, brainman
CC=golang-dev
https://golang.org/cl/2342045
2010-10-08 18:52:28 +11:00
Anthony Martin
5781a00e00
big: fix panic and round correctly in Rat.FloatString
...
R=gri, rsc
CC=golang-dev
https://golang.org/cl/2212044
2010-10-07 16:10:48 +02:00
Russ Cox
1f6f563900
5l, 8l: dregs
...
R=ken2
CC=golang-dev
https://golang.org/cl/2390041
2010-10-07 07:51:37 -04:00
Russ Cox
1b6282a799
runtime: fix tiny build
...
Reported by Jeff Allen.
R=r, r2
CC=golang-dev
https://golang.org/cl/2385042
2010-10-07 06:46:01 -04:00
Russ Cox
2408a4bbbd
net: allow _ in names
...
Enables lookup of _jabber._tcp.gmail.com's SRV record.
Fixes #1167 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2353043
2010-10-07 06:45:50 -04:00
Russ Cox
7eb13b95a3
runtime: fix argument dump in traceback
...
Was printing words at SP instead of at FP
after shuffle due to nascent flag.
R=r, r2
CC=golang-dev
https://golang.org/cl/2316044
2010-10-07 06:45:40 -04:00
Russ Cox
53fff1e74d
gc: maybe the code is only mostly dead
...
R=ken2
CC=golang-dev
https://golang.org/cl/2346044
2010-10-07 06:36:39 -04:00
Luuk van Dijk
2ad521c19a
[568]a: precise linenumbers for statements.
...
R=rsc, ken2, r, rsc1
CC=golang-dev
https://golang.org/cl/2297042
2010-10-07 11:13:06 +02:00
Graham Miller
cc5c2ee0ec
life: fix for new slice rules
...
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/2341049
2010-10-07 04:52:13 -04:00
Russ Cox
2a7019894a
gc: better error for method non-call
...
was
x.go:7: must call (&b).*Buffer·Write
now
x.go:7: method b.Write is not an expression, must be called
Fixes #1171 .
R=ken2
CC=golang-dev
https://golang.org/cl/2384042
2010-10-07 04:42:44 -04:00
Russ Cox
410927d1ad
gc: elide dead code
...
R=ken2
CC=golang-dev
https://golang.org/cl/2365044
2010-10-07 04:42:26 -04:00
Russ Cox
42c26b734c
gc: fix error for 1 <- "foo"
...
was
x.go:4: invalid operation: 1 <- "foo" (send to receive-only type int)
now
x.go:4: invalid operation: 1 <- "foo" (send to non-chan type int)
R=ken2
CC=golang-dev
https://golang.org/cl/2330042
2010-10-07 03:33:42 -04:00
Graham Miller
62355959c6
runtime: faster strequal, memequal
...
Fixes #1161 .
R=rsc, cwvh
CC=golang-dev
https://golang.org/cl/2317044
2010-10-07 03:13:24 -04:00
Russ Cox
4ed132826f
A+C: Graham Miller (individual CLA)
...
R=gmiller, adg
CC=golang-dev
https://golang.org/cl/2362043
2010-10-07 03:07:35 -04:00
Russ Cox
49bff2da22
codereview: disallow submit of *.[chys] files indented with spaces
...
R=r
CC=golang-dev
https://golang.org/cl/2383041
2010-10-06 18:10:23 -04:00
Rob Pike
4138fdd850
playground.html: filesystem is not a word.
...
R=adg, rsc
CC=golang-dev
https://golang.org/cl/2370043
2010-10-06 23:56:13 +02:00
Russ Cox
a0a7768b21
net: comment pedantry
...
Fixes #1167 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2290044
2010-10-06 11:54:53 -04:00
Russ Cox
8599a83727
runtime: correct iteration of large map values
...
The hash_next_and_deref was a dreg from a
previous large value scheme.
Fixes #1163 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2369043
2010-10-06 11:54:41 -04:00
Russ Cox
335a318c27
build: disable archive/zip for nacl (fix build)
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2290045
2010-10-06 11:25:40 -04:00
Russ Cox
01385b400d
gc: ... bug
...
Fixes #1165 .
R=ken2
CC=golang-dev
https://golang.org/cl/2339042
2010-10-06 11:12:30 -04:00
Russ Cox
30dd191171
gc: O(1) string comparison when lengths differ
...
R=ken2
CC=golang-dev
https://golang.org/cl/2331045
2010-10-06 09:53:12 -04:00
Russ Cox
30edda690f
ld: share asmlc
...
R=ken2
CC=golang-dev
https://golang.org/cl/2373043
2010-10-06 09:52:54 -04:00
Stephen Ma
8d130f5d2d
http: return the correct error if a header line is too long.
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2372042
2010-10-06 22:04:18 +11:00
Mikio Hara
4e3c58cd62
net: fix comment
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2358041
2010-10-06 21:47:25 +11:00
Albert Strasheim
8b905489ab
syscall: add ucred structure for SCM_CREDENTIALS over UNIX sockets.
...
Working on issue 1101.
R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/2338042
2010-10-06 21:32:31 +11:00
Andrew Gerrand
c276ce98c2
A+C: Albert Strasheim
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2336042
2010-10-06 21:30:34 +11:00
Stephen Ma
5043f0a1ad
bufio: minor documentation fix.
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2301045
2010-10-06 19:39:30 +11:00
Luuk van Dijk
454f03ff0b
6g: set kind to KindUnsafePointer where appropriate in reflect structures.
...
R=rsc, ken2, r
CC=golang-dev
https://golang.org/cl/2355043
2010-10-05 21:17:16 +02:00
Alex Brainman
4d4b74c7b3
websocket: enable tests on windows
...
Fixes #1110 .
R=golang-dev, adg
CC=Joe Poirier, golang-dev
https://golang.org/cl/2367041
2010-10-05 11:02:15 +11:00
Rob Pike
f73f9ad4ad
fmt: allow %d on []byte
...
Fixes #1159 .
R=rsc, adg
CC=golang-dev
https://golang.org/cl/2305043
2010-10-04 11:57:48 +02:00
Alex Brainman
17fe2479bf
os: make tests work on windows
...
Fixes #1105 .
R=golang-dev, r
CC=Joe Poirier, golang-dev
https://golang.org/cl/2343043
2010-10-04 17:31:49 +11:00
Alex Brainman
1756b31bb9
add _testmain.go to .hgignore
...
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2332042
2010-10-04 14:56:44 +11:00