summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-01-28support for ...T parameters (go/* packages)Robert Griesemer8-14/+68
R=rsc CC=golang-dev http://codereview.appspot.com/194126
2010-01-27Allow underscores in XML element names (except for leading characters)Michael Hoisie2-2/+24
Fixes issue 569 R=rsc, r CC=golang-dev http://codereview.appspot.com/194121 Committer: Rob Pike <r@golang.org>
2010-01-28Regularize the comments for the websocket package and document all functions ↵Rob Pike3-57/+69
and methods. R=rsc, ukai CC=golang-dev http://codereview.appspot.com/196044
2010-01-27go/parser: disable scoping code alwaysRuss Cox1-1/+4
Seems to be enabled spuriously during godoc (can't see why), producing errors like: parser.parseDir: src/pkg/http/server.go:159:16: 'Write' declared already at src/pkg/http/request.go:140:21 (and 4 more errors) R=r CC=golang-dev http://codereview.appspot.com/194119
2010-01-27change print print buffer sizeKen Thompson7-19/+19
to go with the full path names R=rsc CC=golang-dev http://codereview.appspot.com/195079
2010-01-27gc: implement defer print/println/panic/paniclnRuss Cox5-80/+228
Fixes issue 219. R=ken2, r CC=golang-dev http://codereview.appspot.com/194097
2010-01-27More steps towards tracking of identifier scopes.Robert Griesemer13-70/+103
- provide scope to parse functions; if non-nil, parser uses the scope to declare and lookup identifiers - resolve forward references where possible R=rsc CC=golang-dev http://codereview.appspot.com/194098
2010-01-26gc: improved syntax errorsRuss Cox6-12/+309
* example-based syntax errors (go.errors) * enable bison's more specific errors and translate grammar token names into tokens like ++ * test cases R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/194085
2010-01-26small embedded target for arm.Kai Backman8-0/+129
R=rsc CC=golang-dev http://codereview.appspot.com/193104
2010-01-26cgo: update for package global name spaceRuss Cox1-5/+5
Fixes issue 560. R=r CC=golang-dev http://codereview.appspot.com/195051
2010-01-26patch: handle text diffs from gitRuss Cox2-1/+15
R=r CC=golang-dev http://codereview.appspot.com/194094
2010-01-26net: fix segfault if /etc/hosts fails to open or doesn't existMichael Hoisie1-1/+3
R=rsc CC=golang-dev, r http://codereview.appspot.com/194043 Committer: Russ Cox <rsc@golang.org>
2010-01-26gc: do not treat .6 different from .a anymoreRuss Cox1-13/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/195050
2010-01-26os: in test, allow Hostname to return FQDN even if /bin/hostname does notIcarus Sparry1-1/+6
Hostname reads the file /proc/sys/kernel/hostname to determine the value it returns. Some people set this to a Fully Qualified Doamin Name. At least one implementation of /bin/hostname truncates the name it gets (often from the "uname" system call) at the first dot unless it is given a "-f" flag. This change makes the unit test also truncate at the first dot and checks if the strings then match. This seems more portable than adding an extra flag to the called /bin/hostname program. R=rsc CC=golang-dev http://codereview.appspot.com/181097 Committer: Russ Cox <rsc@golang.org>
2010-01-26gotest still assumes that gopack is in your PATHIcarus Sparry1-1/+1
If your $PATH does not include $GOBIN then the build fails at the first *.a file, which is probably when running the tests for tar R=rsc CC=golang-dev http://codereview.appspot.com/193066 Committer: Russ Cox <rsc@golang.org>
2010-01-26math: 386 FPU hypotCharles L. Dorian5-4/+68
Added 386 FPU version of Hypot; modified all_test.go to test Hypot with large arguments. Also edited sqrt.go to remove Sqrt(0) as a special case. R=rsc CC=golang-dev http://codereview.appspot.com/186180 Committer: Russ Cox <rsc@golang.org>
2010-01-26Allow func() func().Robert Griesemer3-3/+3
Update gofmt test script. R=rsc CC=golang-dev http://codereview.appspot.com/195044
2010-01-26Bug in go/parser when coverting identifier lists.Robert Griesemer2-1/+2
Fixes issue 567. R=rsc CC=golang-dev http://codereview.appspot.com/195041
2010-01-26gc: fix chan <- chan precedence.Russ Cox4-47/+48
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25salvaging 183105 from dead clientKai Backman3-8/+9
a number of fixes for arm elf generation in 5l. -T now works as advertised, -D now works properly. R=rsc CC=golang-dev http://codereview.appspot.com/194076
2010-01-25in C and asm, replace pkg·name with ·nameRuss Cox64-416/+416
(eliminate assumption of package global name space, make code easier to move between packages). R=r CC=golang-dev http://codereview.appspot.com/194072
2010-01-25xml: add Escape, copied from template.HTMLEscape.Stephen Weinberg1-0/+35
R=rsc CC=golang-dev http://codereview.appspot.com/186282 Committer: Russ Cox <rsc@golang.org>
2010-01-25http: make Request.Body an io.ReadCloser, matching Response.Body.Petar Maymounkov4-16/+19
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/194046 Committer: Russ Cox <rsc@golang.org>
2010-01-25ld: typoRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/194073
2010-01-25cc: correct handling of leading ·Russ Cox2-9/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193081 Committer: Russ Cox <rsc@golang.org>
2010-01-25eliminate package global name spaceRuss Cox3-13/+17
R=ken2 CC=golang-dev http://codereview.appspot.com/194071
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox10-166/+203
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-255l, 6l, 8l: accept only one object fileRuss Cox3-14/+12
(package main; others are pulled in automatically) R=ken2 CC=golang-dev http://codereview.appspot.com/194069
2010-01-25steps towards a simplified parser interfaceRobert Griesemer2-12/+30
minor cleanups (which I did at home before but missed this morning at work) R=rsc CC=golang-dev http://codereview.appspot.com/193095
2010-01-25net: parse aliases in /etc/hosts correctlyAndrey Mirtchovski3-3/+13
Previous behaviour only picked the first entry (official hostname) but not the aliases. R=rsc CC=golang-dev http://codereview.appspot.com/193092 Committer: Russ Cox <rsc@golang.org>
2010-01-25A <- token in an expression may introduce a channel type.Robert Griesemer2-2/+17
Fixes issue 530. R=rsc CC=golang-dev http://codereview.appspot.com/193091
2010-01-25Scoping snapshot.Robert Griesemer2-74/+134
- separate parsing from declaration - setup of correct scopes R=rsc CC=golang-dev http://codereview.appspot.com/189098
2010-01-25ld: do not load the same object file multiple times.Russ Cox4-3/+27
eliminates spurious multiple initialization errors. give more information in the multiple init errors that remain. Fixes issue 87. R=r CC=golang-dev http://codereview.appspot.com/194052
2010-01-25Remove top-level (src/) Makefile.Christopher Wedgwood2-18/+7
R=rsc, dho, r CC=golang-dev http://codereview.appspot.com/194045 Committer: Russ Cox <rsc@golang.org>
2010-01-24gc: record full package paths in runtime type dataRuss Cox7-11/+67
detect compilation of special package runtime with compiler flag instead of package name. R=ken2 CC=golang-dev http://codereview.appspot.com/193080
2010-01-24gc: bug247, reported by robRuss Cox1-38/+40
R=ken2 CC=golang-dev http://codereview.appspot.com/194051
2010-01-24gc: cut some dead code, fix 6g -S outputRuss Cox4-54/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox37-422/+673
5g/6g/8g: add import statements to export metadata, mapping package path to package name. recognize "" as the path of the package in export metadata. use "" as the path of the package in object symbol names. 5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package. 5l/6l/8l: rewrite "" in symbol names as object files are read. gotest: handle new symbol names. gopack: handle new import lines in export metadata. Collectively, these changes eliminate the assumption of a global name space in the object file formats. Higher level pieces such as reflect and the computation of type hashes still depend on the assumption; we're not done yet. R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/186263 Committer: Russ Cox <rsc@golang.org>
2010-01-225a/6a/8a: avoid fixed-sized file name bufferDean Prichard5-3/+8
R=rsc CC=golang-dev http://codereview.appspot.com/186279 Committer: Russ Cox <rsc@golang.org>
2010-01-22gc: do not build builtin.c automatically; use golden copy instead.Russ Cox4-17/+17
R=r CC=golang-dev http://codereview.appspot.com/190104 Committer: Russ Cox <rsc@golang.org>
2010-01-22typoRuss Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/190103
2010-01-22Fix build: add new file to Makefile.Ian Lance Taylor1-0/+1
TBR=frm.adiputra CC=golang-dev http://codereview.appspot.com/193055
2010-01-22Add authentication.Firmansyah Adiputra2-32/+208
Other code fixing: - Fixed bugs in get32. - Fix code for parsing display string (as a new function). - Fix code for connecting to X server. The old code only work if the server is listening to TCP port, otherwise it doesn't work (at least in my PC). R=nigeltao_golang, rsc, jhh CC=golang-dev http://codereview.appspot.com/183111 Committer: Nigel Tao <nigeltao@golang.org>
2010-01-22Trim space on input to make searching more robust.Christopher Wedgwood1-1/+1
R=rsc, r, gri CC=golang-dev http://codereview.appspot.com/186255 Committer: Rob Pike <r@golang.org>
2010-01-20part 2 of sudoaddable optimizationKen Thompson1-17/+42
R=rsc CC=golang-dev http://codereview.appspot.com/190088
2010-01-19cleanup toward eliminating package global name spaceRuss Cox19-192/+228
* switch to real dot (.) instead of center dot (·) everywhere in object files. before it was half and half depending on where in the name it appeared. * in 6c/6a/etc identifiers, · can still be used but turns into . immediately. * in export metadata, replace package identifiers with quoted strings (still package names, not paths). R=ken2, r CC=golang-dev http://codereview.appspot.com/190076
2010-01-19runtime: wait to allocate mach semaphores backing Locks until neededRuss Cox1-12/+18
need better management of mach semaphores eventually but this avoids allocating them for uncontended Locks. R=r CC=agl1, golang-dev http://codereview.appspot.com/190079
2010-01-19start of better addressing ofKen Thompson1-8/+32
arrays/slices in structures R=rsc CC=golang-dev http://codereview.appspot.com/190077
2010-01-20first part of networked channels.Rob Pike5-0/+486
limitations: poor error handling teardown not done exporter must send, importer must receive testing is rudimentary at best R=rsc CC=golang-dev http://codereview.appspot.com/186234
2010-01-19http: handle old HTTP/1.0 unchunked "read to EOF" bodies.Russ Cox2-10/+186
Was trying to interpret raw body as chunked body. Add test for ReadResponse. Fixes issue 544. R=r, petar-m CC=golang-dev, shadowice http://codereview.appspot.com/190068