summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-12-01gofmt: use os.Stdin instead of opening /dev/stdinFazlul Shahriar1-8/+18
Opening /dev/stdin can sometimes fail. For example, in the acme editor, executing "Edit ,|gofmt" fails with: open /dev/stdin: no such device or address Executing "Edit ,|ls -l /dev/stdin /proc/self/fd/0" gives: lrwxrwxrwx 1 root root 15 2009-09-07 02:17 /dev/stdin -> /proc/self/fd/0 lrwx------ 1 fhs users 64 2009-11-26 22:05 /proc/self/fd/0 -> socket:[5528230] (This is my first change, and I've signed the individual contributor license agreement.) R=rsc, gri CC=golang-dev http://codereview.appspot.com/162041 Committer: Robert Griesemer <gri@golang.org>
2009-12-01some godoc cleanup:Robert Griesemer5-109/+36
- simplified dealing with parse errors: no need to intersperse them in the source - improve visibility of highlighted identifiers by showing them in bold R=rsc http://codereview.appspot.com/163051
2009-11-30Fix typo in specFazlul Shahriar1-1/+1
R=golang-dev, rsc http://codereview.appspot.com/164052 Committer: Russ Cox <rsc@golang.org>
2009-11-30Syntax coloring and function navigation for BBEdit/TextWranglerAnthony Starks1-0/+65
R=rsc CC=agl1 http://codereview.appspot.com/154123 Committer: Russ Cox <rsc@golang.org>
2009-11-30Adding to AUTHORS and CONTRIBUTORS as per ↵Anthony Starks2-0/+2
http://golang.org/doc/contribute.html#copyright R=rsc http://codereview.appspot.com/163050 Committer: Russ Cox <rsc@golang.org>
2009-11-30change command-line argument to beRoger Peppe2-9/+13
unnamed, not require -n, in line with other entries. R=rsc CC=r http://codereview.appspot.com/162061 Committer: Russ Cox <rsc@golang.org>
2009-11-30Make tests run on systems missing time utilitySergey 'SnakE' Gromov1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/164047 Committer: Russ Cox <rsc@golang.org>
2009-11-30Added my name to the AUTHORS and CONTRIBUTORS files.Adrian O'Grady2-0/+2
R=rsc http://codereview.appspot.com/157153 Committer: Russ Cox <rsc@golang.org>
2009-11-30A first stab at porting the XCB X11 protocol bindings to go.Tor Andersson6-0/+5344
The python script needs a checkout of xcb/proto to generate an xproto.go file, which together with xgb.go provide functions to access all of the core X11 protocol requests. I have included the generated file. Extensions and authentication methods are not implemented. R=r, rsc, nigeltao_golang http://codereview.appspot.com/162053 Committer: Russ Cox <rsc@golang.org>
2009-11-30json: Decode into native Go data structuresSergey 'SnakE' Gromov7-427/+271
This patch adds an ability to convert JSON-encoded data into a hierarchy of Go's native data types. R=rsc CC=golang-dev http://codereview.appspot.com/161060 Committer: Russ Cox <rsc@golang.org>
2009-11-30Typo in comment.Robert Griesemer1-1/+1
Fixes issue 358. R=rsc CC=r http://codereview.appspot.com/164043
2009-11-30sync.RWMutex: rewritten to add support for concurrent readers.Péter Szabó5-49/+202
Also made sync.xadd public to help testing sync.RWMutex. Also added unit tests for sync.RWMutex. R=rsc http://codereview.appspot.com/162044 Committer: Russ Cox <rsc@golang.org>
2009-11-30Added a method on UDPConn so they can actually send broadcast packets.Jonathan Wills1-1/+5
R=rsc http://codereview.appspot.com/162046 Committer: Russ Cox <rsc@golang.org>
2009-11-30a[b:len(a)] -> a[b:]Christopher Wedgwood2-7/+7
R=r, rsc CC=agl1 http://codereview.appspot.com/161070 Committer: Russ Cox <rsc@golang.org>
2009-11-30Handle \r as a whitespace when parsing JSON string.Andrew Skiba2-1/+12
Fixes issue 272. R=rsc http://codereview.appspot.com/161061 Committer: Russ Cox <rsc@golang.org>
2009-11-30Add trivial whitespace to CorruptInputError strings.Christopher Wedgwood3-3/+3
R=r, rsc http://codereview.appspot.com/161058 Committer: Russ Cox <rsc@golang.org>
2009-11-30Minimise bitrot: bytes.Copy -> copyChristopher Wedgwood4-24/+10
(compile tested only) R=r, rsc http://codereview.appspot.com/161069 Committer: Russ Cox <rsc@golang.org>
2009-11-30Ports of lib9, libbio and libmach to Windows.Hector Chu16-128/+100
R=rsc http://codereview.appspot.com/157159 Committer: Russ Cox <rsc@golang.org>
2009-11-30AUTHORS+CONTRIBUTORS: more names; CLA verifiedRuss Cox2-1/+15
R=gri CC=r http://codereview.appspot.com/163044
2009-11-30template: two bug fixes / nitsRuss Cox3-1/+17
* diagnose template not created with New (current code just crashes) * write []byte uninterpreted (current code writes fmt format: "[65 65 65 65]") R=r CC=golang-dev http://codereview.appspot.com/161075
2009-11-30codereview: allow editing of local CL descriptionRuss Cox1-1/+8
between hg clpatch and hg submit. R=r http://codereview.appspot.com/162059
2009-11-30AUTHORS/CONTRIBUTORS: two more namesRuss Cox2-0/+5
R=r, SnakE CC=fhs, pts http://codereview.appspot.com/162054
2009-11-29Fix example Makefile to avoid $GOROOT in case it has spaces.Fumitoshi Ukai1-2/+5
R=rsc, sergio http://codereview.appspot.com/162058 Committer: Russ Cox <rsc@golang.org>
2009-11-29websocket: avoid $GOROOT in case it has spacesRuss Cox1-2/+2
Fixes issue 115. R=r, ukai, sergio http://codereview.appspot.com/162057
2009-11-29crypto/md4, exp/draw/x11: fix makefile to build when GOROOT has whitespacesSergio Luis O. B. Correia2-4/+4
this is the exact same thing issue #115 is about. fix makefiles to use relative path to work in the case we have whitespaces as part of GOROOT. R=rsc http://codereview.appspot.com/162055 Committer: Russ Cox <rsc@golang.org>
2009-11-29cgo: use C type void for opaque types if dwarf.Common().Type returns nothingEden Li1-0/+3
Ideally, the C name would come from the typedef or pointer that references the Size<0 type, but we can't easily generate this without performing a look-ahead to see if any referencing type will become opaque. Fixes issue 334. Fixes issue 281. R=rsc http://codereview.appspot.com/161056 Committer: Russ Cox <rsc@golang.org>
2009-11-29Add WebSocket server framework hooked into http.Fumitoshi Ukai6-0/+418
R=r, rsc http://codereview.appspot.com/156071 Committer: Russ Cox <rsc@golang.org>
2009-11-29Make comment-start/-end changes buffer-local instead of global.Austin Clements1-2/+2
Fixes issue 290. R=rsc http://codereview.appspot.com/160070 Committer: Russ Cox <rsc@golang.org>
2009-11-29Add myself to CONTRIBUTORSFumitoshi Ukai1-0/+1
R=r, rsc http://codereview.appspot.com/156070 Committer: Russ Cox <rsc@golang.org>
2009-11-29Correct expression level for argument lists.Robert Griesemer2-0/+3
Fixes issue 352. R=rsc http://codereview.appspot.com/161073
2009-11-25a few utf8 benchmarks. on my mac:Rob Pike1-0/+40
utf8_test.BenchmarkRuneCountTenASCIIChars 20000000 108 ns/op utf8_test.BenchmarkRuneCountTenJapaneseChars 10000000 199 ns/op utf8_test.BenchmarkEncodeASCIIRune 500000000 6 ns/op utf8_test.BenchmarkEncodeJapaneseRune 100000000 10 ns/op utf8_test.BenchmarkDecodeASCIIRune 100000000 13 ns/op utf8_test.BenchmarkDecodeJapaneseRune 100000000 21 ns/op R=gri CC=golang-dev http://codereview.appspot.com/161049
2009-11-25rewrite RuneCountInString to use range.Rob Pike1-12/+4
R=gri CC=golang-dev http://codereview.appspot.com/160069
2009-11-25Initial exp/draw/x11 implementation.Nigel Tao3-0/+629
This provides an experimental X11 backend for the exp/draw interface. It does not aim to provide a complete implementation of the X11 client protocol. This works for me (Ubuntu Hardy 8.04, GOARCH=386). Your mileage my vary. R=r, rsc, r1 CC=golang-dev http://codereview.appspot.com/156109
2009-11-24fix weird all.bash failures by running deps.bash before make clean runs in ↵Rob Pike2-4/+7
pkg directory. before this change, if pkg/Make.deps is missing or broken, clean.bash fails and the build dies but not until much later. add freebsd to error message about valid values of $GOOS TODO: would be nice if this process exited when an error occurred. subshells make it hard R=rsc CC=golang-dev http://codereview.appspot.com/160065
2009-11-24Handle presence of illegal semicolon after package clause better.Robert Griesemer1-0/+8
R=r, r1 http://codereview.appspot.com/157167
2009-11-24Replace sort.Sort call with heapify algorithm in Init.Robert Griesemer2-17/+103
Fixed package comment. Renamed some variables for symmetry, added more internal comments and more tests. Fixes issue 304. R=rsc http://codereview.appspot.com/157166
2009-11-24gc: correct type check for x, ok map assignmentRuss Cox2-1/+15
Fixes issue 288. R=ken2 http://codereview.appspot.com/157162
2009-11-24make.bash: clear CDPATH to avoid output from cdRuss Cox1-0/+2
Fixes issue 306. R=r, r1 http://codereview.appspot.com/160060
2009-11-24add freebsd to the list of os'es.Rob Pike1-8/+33
make the GOOS/GOARCH pair a table to avoid the confusion caused when it was of the form linux/386. R=rsc CC=golang-dev http://codereview.appspot.com/160061
2009-11-24test case for large angles in trig functionsKen Thompson1-0/+37
R=rsc http://codereview.appspot.com/157160
2009-11-24bad sin/cos for large angles.Ken Thompson1-1/+1
fixes issue 326. R=rsc http://codereview.appspot.com/160059
2009-11-24timing log update for new version of chameneosRob Pike1-0/+8
R=rsc CC=golang-dev, rog http://codereview.appspot.com/160054
2009-11-24fix for broken build (built-in new was invisible due to a parameter called ↵Robert Griesemer1-6/+6
'new') R=iant http://codereview.appspot.com/160057
2009-11-24change the rules for maintaining AUTHORS and CONTRIBUTORS files.Rob Pike1-11/+27
the current system is too painful, so instead let's just have the coders tell us the details. we can update the files ourselves. R=rsc, r1 CC=golang-dev http://codereview.appspot.com/157158
2009-11-24Change to container/vector interface:Robert Griesemer25-165/+195
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-24Mention golang-dev as a default code review destination.Ian Lance Taylor1-0/+4
R=rsc CC=r http://codereview.appspot.com/160056
2009-11-24godoc: plug file descriptor leakRuss Cox1-0/+1
R=gri CC=r http://codereview.appspot.com/157149
2009-11-24A quick fix to ensure that json.Marshal returns errors correctly, as well as ↵Michael Hoisie2-5/+34
some error-related tests R=rsc http://codereview.appspot.com/157151 Committer: Russ Cox <rsc@golang.org>
2009-11-24http: redirect to correct URLRuss Cox1-4/+3
R=r, r1 http://codereview.appspot.com/157154
2009-11-24chameneosredux test modified, bug fixed, fasterRoger Peppe1-133/+106
based on suggestion from arvindht@gmail.com R=r, rsc, r1 http://codereview.appspot.com/157091 Committer: Russ Cox <rsc@golang.org>