- 17 Jul, 2011 2 commits
-
-
Rob Pike authored
The previous CL doicumented and diagnosed the old situation. This one changes it to something more traditional: any action may declare a variable, and the block structure of scopes applies only to control seequences. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4748047
-
Rob Pike authored
In simple pipelines the declaration has no scope. Also document the scope. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4761044
-
- 15 Jul, 2011 10 commits
-
-
Russ Cox authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4753044
-
Lucio De Re authored
6a/a.h: . Dropped <u.h> and <libc.h>. . Made definition of EOF conditional. 6a/a.y: . Added <u.h> and <libc.h>. 6a/lex.c: . Added <u.h> and <libc.h>. . Dropped <ctype.h> (now in <u.h>). 6c/gc.h: . Added varargck pragma for "lD". 6c/swt.c: . Dropped unused "thestring" argument in Bprint() calls. 6l/Makefile: . Dropped unneeded directory prefix. 6l/l.h: . Dropped unneeded directory prefix. . Added varargck pragma for "I" and "i". 6l/obj.c: . Dropped unneeded assignment. . Dropped unreachable goto statement. 6l/pass.c: . Dropped assignments flagged as unused. 6l/prof.c: . Replaced "#if 0" with "#ifdef NOTDEF". 6l/span.c: . Dropped unused incrementation. . Added USED() as required. . Dropped unreachable "return" statement. R=golang-dev CC=golang-dev, rsc https://golang.org/cl/4747044
-
Lucio De Re authored
5a/a.h: . Removed <u.h> and <lib.h>. . Made definition of EOF conditional. 5a/a.y: . Added <u.h> and <lib.h>. 5a/lex.c: . Added <u.h> and <lib.h>. . Dropped <ctype.h> (now in <u.h>). 5c/peep.c: . Removed unnecessary "return 0" statement. 5c/reg.c: . Added compilation condition around unused code. 5c/swt.c: . Removed unused "thestring" argument from Bprint() calls. 5l/asm.c: . Added USED() statements as required. . Adjusted a few format specifications. . Added compilation condition around unused code. 5l/l.h: . Dropped directory prefix from <../5l/5.out.h>. . Added varargck pragma for "I" and "i". 5l/obj.c: . Cascaded consecutive "if" statements. . Dropped unnecessary incrementation and assignments. 5l/pass.c: . Dropped unnecessary assignment. 5l/prof.c: . #if 0 converted to #ifdef NOTDEF. 5l/span.c: . Dropped unnecessary incrementation and assignments. R=golang-dev CC=golang-dev, rsc https://golang.org/cl/4752041
-
Lucio De Re authored
8l/Makefile: . Dropped unnecessary prefix from "../8l/8.out.h" 8l/l.h: . Dropped unnecessary prefix from "../8l/8.out.h" . Dropped unused and inconsistent "I" vararg pragma. R=golang-dev CC=golang-dev, rsc https://golang.org/cl/4754041
-
Dmitriy Vyukov authored
benchmark old ns/op new ns/op delta BenchmarkSemaUncontended 37.40 34.10 -8.82% BenchmarkSemaUncontended-2 18.90 17.70 -6.35% BenchmarkSemaUncontended-4 11.90 10.90 -8.40% BenchmarkSemaUncontended-8 6.26 5.19 -17.09% BenchmarkSemaUncontended-16 4.39 3.91 -10.93% BenchmarkSemaSyntNonblock 38.00 35.30 -7.11% BenchmarkSemaSyntNonblock-2 83.00 46.70 -43.73% BenchmarkSemaSyntNonblock-4 124.00 101.00 -18.55% BenchmarkSemaSyntNonblock-8 124.00 116.00 -6.45% BenchmarkSemaSyntNonblock-16 148.00 114.00 -22.97% (on HP Z600 2 x Xeon E5620, 8 HT cores, 2.40GHz) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4755041
-
Luuk van Dijk authored
R=rsc CC=golang-dev https://golang.org/cl/4710046
-
Russ Cox authored
R=dsymonds CC=golang-dev https://golang.org/cl/4746041
-
Andrew Gerrand authored
R=golang-dev, rsc, dsymonds CC=golang-dev https://golang.org/cl/4743041
-
Russ Cox authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4714045
-
Brad Fitzpatrick authored
Previously, during the anti-zombie test, a CGI process had to finish within ~625ms. Now it gets ~5.6 seconds. R=golang-dev, r CC=golang-dev https://golang.org/cl/4741041
-
- 14 Jul, 2011 16 commits
-
-
Robert Griesemer authored
No formatting changes. R=rsc CC=golang-dev https://golang.org/cl/4735042
-
Robert Griesemer authored
R=rsc, bradfitz, r CC=golang-dev https://golang.org/cl/4738042
-
Robert Griesemer authored
manual changes in src/pkg/go/printer, src/cmd/gofix/signal_test.go (cd src/cmd/gofix/testdata; gofmt -w *.in *.out) (cd src/pkg/go/printer; gotest -update) gofmt -w misc src runs all tests R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4715041
-
Russ Cox authored
R=gri, ken, r CC=golang-dev https://golang.org/cl/4721044
-
Brad Fitzpatrick authored
Fixes #2032 R=rsc, dsymonds, r, r CC=golang-dev https://golang.org/cl/4709044
-
Robert Griesemer authored
R=bradfitz CC=golang-dev https://golang.org/cl/4733041
-
Robert Griesemer authored
Instead of serving files of the underlying OS file system, a .zip file may be provided to godoc containing the files to serve; for instance: godoc -http=:6060 -zip=go.zip using a .zip file created from a clean tree as follows: zip -r go.zip $GOROOT R=rsc CC=golang-dev https://golang.org/cl/4670053
-
Luuk van Dijk authored
Fixes #2056. R=rsc CC=golang-dev https://golang.org/cl/4709042
-
David Symonds authored
Angle brackets can trigger some browser sniffers, causing some forms of JSON output to be interpreted as HTML. Escaping angle brackets closes that security hole. R=rsc CC=golang-dev https://golang.org/cl/4701047
-
Rob Pike authored
{{range $key, $element := pipeline}} This CL is smaller than it looks due to some rearrangement and renaming. R=rsc, r CC=golang-dev https://golang.org/cl/4709047
-
Russ Cox authored
R=bradfitz CC=golang-dev https://golang.org/cl/4695060
-
David Symonds authored
Angle brackets can trigger some browser sniffers, causing some output to be interpreted as HTML. Escaping angle brackets closes that security hole. R=r CC=golang-dev https://golang.org/cl/4714044
-
Rob Pike authored
R=golang-dev, rsc, r CC=golang-dev https://golang.org/cl/4711049
-
Rob Pike authored
rather than the type's, so a method's invocation works the same as a function's. R=golang-dev, rsc, r CC=golang-dev https://golang.org/cl/4704049
-
Mikio Hara authored
R=adg, rsc, bradfitz, mattn.jp, gustavo CC=golang-dev https://golang.org/cl/4625081
-
Rob Pike authored
Just an oversight it was missing. R=rsc, dsymonds, bradfitz, r CC=golang-dev https://golang.org/cl/4695059
-
- 13 Jul, 2011 12 commits
-
-
Yuval Pavel Zholkover authored
Move the Signal interface from exec_posix.go to exec.go. Remove some unsused code from file_plan9.go. R=fshahriar, rsc CC=golang-dev https://golang.org/cl/4683044
-
Alex Brainman authored
Fixes #2068. R=rsc CC=golang-dev https://golang.org/cl/4705046
-
Lucio De Re authored
<ctype.h> has been moved into <u.h>, specifically to be able to drop it from these modules. Will someone check platforms other than UBUNTU/386, please? R=bsiegert, rsc CC=golang-dev https://golang.org/cl/4648078
-
Brad Fitzpatrick authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4696047
-
Russ Cox authored
Fixes #2069. R=golang-dev, r CC=golang-dev https://golang.org/cl/4703048
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4701045
-
Robert Griesemer authored
R=bradfitz CC=golang-dev https://golang.org/cl/4704047
-
Rob Pike authored
Russ suggested this technique, making the "and" and "or" functions handier. But it's hacky, and I can be talked out of it. R=dsymonds, rsc CC=golang-dev https://golang.org/cl/4698044
-
Rob Pike authored
Also really fix the bug about dot vs. receivers. R=rsc, r CC=golang-dev https://golang.org/cl/4705047
-
Yasuhiro Matsumoto authored
ServeFile() pass empty string to serveFile(). serveFile() should get file extension via joining root and filename. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4654089
-
Wei Guangjing authored
R=rsc, alex.brainman CC=golang-dev https://golang.org/cl/3790044
-
Matthew Horsnell authored
NewFile has been fixed to read ELF Program headers into the structs. Added test coverage. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4628062
-