James Meneghello
c16f5cd9a6
Contributions etc.
...
R=rsc, r
https://golang.org/cl/156106
2009-11-19 21:07:54 -08:00
Michael Hoisie
ce88bfa585
Add json.Marshal to json package
...
R=rsc
CC=golang-dev
https://golang.org/cl/157068
2009-11-19 20:45:03 -08:00
Michael Hoisie
121bb921fb
Added my name to the CONTRIBUTORS file
...
R=rsc
https://golang.org/cl/156081
2009-11-19 20:44:56 -08:00
Evan Shaw
4db3a166b2
archive/tar: Make Reader and Writer more closely follow io.Reader and io.Writer interfaces
...
There's no functional change here. io gives the Read and Write methods byte slice arguments, but tar called them uint8. It's the same thing, but I think this is clearer and it matches what other packages do.
R=rsc
CC=golang-dev
https://golang.org/cl/157099
2009-11-19 20:43:30 -08:00
Russ Cox
ec30932124
big: fix arm build - forgot how to spell JMP
...
Fixes #269 .
TBR=kaib
https://golang.org/cl/156107
2009-11-19 20:32:09 -08:00
Russ Cox
d116a32727
gc: reject large channel values at compile time
...
Fixes #144 .
R=ken2
CC=agl1
https://golang.org/cl/156102
2009-11-19 18:20:06 -08:00
Rob Pike
a6e1ad2733
two easy optimizations for regexp:
...
1) if char class contains a single character, make it a single character.
(this is used to quote, e.g. [.] rather than \.
2) if regexp begins with ordinary text substring, use plain string match to start engine
R=rsc
CC=golang-dev
https://golang.org/cl/157095
2009-11-19 16:45:50 -08:00
Robert Griesemer
398927e63b
update test.sh for gofmt
...
R=rsc
https://golang.org/cl/157096
2009-11-19 16:42:49 -08:00
Robert Griesemer
b48f71213a
Permit omission of hi bound in slices.
...
R=r, rsc
https://golang.org/cl/157082
2009-11-19 16:42:05 -08:00
Trevor Strohman
61660adc63
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
2009-11-19 16:35:34 -08:00
Russ Cox
69039e5a5a
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
2009-11-19 16:27:13 -08:00
Ken Thompson
d9014dc98a
put copy into goyacc
...
R=rsc
https://golang.org/cl/156100
2009-11-19 15:34:11 -08:00
Rob Pike
4e201c7f20
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
2009-11-19 11:51:23 -08:00
Russ Cox
4aaf948f90
runtime: mask signals during signal handler on OS X
...
Fixes #265 .
R=r
CC=golang-dev
https://golang.org/cl/157084
2009-11-19 11:01:16 -08:00
Robert Griesemer
5fd4f76802
bug219: parsing difficulties with 6g
...
R=r, rsc
https://golang.org/cl/157085
2009-11-19 00:04:30 -08:00
Rob Pike
9682ee4e04
- 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
2009-11-18 22:26:36 -08:00
Rob Pike
02df7db868
replace custom findByte with bytes.IndexByte
...
R=rsc
https://golang.org/cl/156093
2009-11-18 19:58:32 -08:00
Adam Langley
bf1f63a273
big: fix large division.
...
I missed a case.
R=rsc, agl
CC=golang-dev
https://golang.org/cl/156092
2009-11-18 19:26:12 -08:00
Rob Pike
8c1a627e5c
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
2009-11-18 19:23:08 -08:00
Robert Griesemer
1a8ebcc4b8
Allow optional second expression in slice expressions.
...
Built-in function copy.
Addresses issue 203.
R=rsc, r, iant
https://golang.org/cl/156089
2009-11-18 19:15:25 -08:00
Russ Cox
e1c5c3df77
runtime: fix bug on darwin/amd64 - bad g in bsdthread_start
...
R=r
https://golang.org/cl/157077
2009-11-18 18:17:11 -08:00
Devon H. O'Dell
60b1a17b9e
More FreeBSD-touchups. Thundercats are GOOOOO!
...
R=rsc
CC=golang-dev
https://golang.org/cl/157074
2009-11-18 16:51:59 -08:00
Adam Langley
eac41e7eba
crypto/x509: RawContents -> RawContent
...
TBR=rsc
R=rsc
https://golang.org/cl/157075
2009-11-18 16:38:30 -08:00
Adam Langley
3ab331ed29
asn1: add support for RawContent
...
R=rsc
CC=golang-dev
https://golang.org/cl/157056
2009-11-18 16:32:44 -08:00
Adam Langley
cc56fc3860
crypto/x509: add certificate support.
...
R=rsc
CC=golang-dev
https://golang.org/cl/156054
2009-11-18 16:08:24 -08:00
Russ Cox
dc43b74eb1
6l, 8l: add trivial hash table for dynamic symbols
...
R=r
https://golang.org/cl/156085
2009-11-18 15:58:44 -08:00
Rob Pike
797cc4904c
test for copy()
...
R=rsc, ken2
CC=golang-dev
https://golang.org/cl/156084
2009-11-18 15:31:22 -08:00
Rob Pike
e70cedfaec
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
2009-11-18 15:24:24 -08:00
Rob Pike
093493c6a5
bugs in memmove:
...
- has arguments (no stack split)
- MOVL does not set condition
R=ken2, rsc
https://golang.org/cl/156086
2009-11-18 15:00:02 -08:00
Russ Cox
9be56adf3c
gc: allow implicit conversion of *[10]int -> []int
...
when used as arg to copy.
R=ken2
https://golang.org/cl/157071
2009-11-18 14:26:28 -08:00
Russ Cox
91cf0af181
ld: move interpreter string into first block of ELF file
...
necessary on freebsd.
R=r, dho
CC=golang-dev
https://golang.org/cl/157069
2009-11-18 13:51:05 -08:00
Rob Pike
7518613430
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
2009-11-18 13:43:48 -08:00
Adam Langley
ef8f483c60
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
2009-11-18 13:18:34 -08:00
Ian Lance Taylor
9e8d136888
On 32-bit x86, one should configure with --with-arch=.
...
R=r
https://golang.org/cl/156080
2009-11-18 12:48:48 -08:00
Eden Li
652bb7c2be
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
2009-11-18 09:59:10 -08:00
Russ Cox
a274099340
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
2009-11-18 09:54:51 -08:00
William Josephson
4c0f262a2d
Remove unnecessary execute bits.
...
R=rsc
https://golang.org/cl/156077
2009-11-18 09:19:29 -08:00
William Josephson
72e7444ad4
Missing flags for FreeBSD shared link as used by cgo in default build.
...
R=rsc
https://golang.org/cl/157065
2009-11-18 09:18:51 -08:00
William Josephson
57f62f6eae
Update legal.
...
R=rsc
https://golang.org/cl/156075
2009-11-18 09:17:47 -08:00
Devon H. O'Dell
659780b643
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
2009-11-18 09:11:39 -08:00
Russ Cox
43bcf47912
make all.bash finish on FreeBSD
...
R=dho
CC=golang-dev
https://golang.org/cl/156067
2009-11-18 09:11:17 -08:00
Devon H. O'Dell
b3f538a4fd
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
2009-11-17 23:58:51 -08:00
Eden Li
2115f514d0
cgo no longer translates function args that are void* into
...
unsafe.Pointer.
Fixes #254 .
R=rsc
https://golang.org/cl/157060
2009-11-17 23:42:21 -08:00
Eden Li
1ef0e0ed2c
Updated AUTHORS/CONTRIBUTORS files according to
...
http://golang.org/doc/contribute.html#copyright
R=rsc
https://golang.org/cl/156066
2009-11-17 23:42:15 -08:00
Evan Shaw
a269cdae8d
Added Kate syntax highlighting file.
...
R=rsc
https://golang.org/cl/155075
2009-11-17 23:34:08 -08:00
Evan Shaw
5a99927ddf
Adding my name to authors/contributors.
...
R=rsc
https://golang.org/cl/154169
2009-11-17 23:34:00 -08:00
Russ Cox
7db2c799ce
codereview: more attempts at robustness in the face of unexpected exceptions
...
R=r
https://golang.org/cl/156062
2009-11-17 23:23:18 -08:00
Trevor Strohman
01677dab31
Adds Trevor Strohman to CONTRIBUTORS.
...
Google is my employer so no AUTHORS change is needed.
R=rsc
https://golang.org/cl/154174
2009-11-17 23:22:41 -08:00
Russ Cox
744d5ae48a
runtime: add ARM memmove
...
R=ken2
https://golang.org/cl/156063
2009-11-17 22:54:20 -08:00
Russ Cox
ed0beea27b
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
2009-11-17 22:16:55 -08:00