Ian Lance Taylor
84e7cb0611
Tweak test to work with both 6g and gccgo.
...
Pull the struct into a single line, since 6g reports the error
on the last line of the struct definition and gccgo reports it
on the first line.
6g:
bug215.go:12: invalid recursive type A
gccgo:
bug215.go:12:6: error: invalid recursive type ‘A’
R=rsc
https://golang.org/cl/180044
2009-12-15 13:57:24 -08:00
Russ Cox
8274742393
codereview: add golang-dev@googlegroups.com
...
automatically in "hg mail".
also, avoid "empty list means all modified files in client" bug
R=gri, cw
CC=golang-dev
https://golang.org/cl/174072
2009-12-15 13:36:05 -08:00
Robert Griesemer
55ca7a2644
fix TODO: insert semicolons before any sequence of comments
...
that introduce the newline (important for correct placement
of comments with gofmt when parsing new syntax)
R=rsc
https://golang.org/cl/179055
2009-12-15 08:41:50 -08:00
Arvindh Rajesh Tamilmani
dec5bb7882
xml: handle unexpected EOF while parsing and fix a bug in name
...
mustgetc reports unexpected EOF as SyntaxError. using
mustgetc seems to be a better approach than letting the
caller handle unexpected EOF every time.
name: the second if statement should explicitly return
ok==false.
R=rsc
https://golang.org/cl/174083
2009-12-14 19:28:36 -08:00
Russ Cox
19c18358ca
runtime: in exitsyscall, avoid confusing garbage collector
...
R=r
CC=golang-dev
https://golang.org/cl/178046
2009-12-14 19:06:20 -08:00
Robert Griesemer
31de4d4c5d
improved formatting of import declarations and
...
multi-line expressions with comments
Fixes #414 .
R=rsc
https://golang.org/cl/179047
2009-12-14 17:35:12 -08:00
Andy Davis
2a52782f5c
crypto/sha256: new package
...
R=rsc
CC=golang-dev
https://golang.org/cl/176062
2009-12-14 15:09:49 -08:00
Rob Pike
0d3f5a84b8
simpler fix for the negative rune problem, spotted seconds after submitting the previous fix.
...
R=rsc
https://golang.org/cl/178044
2009-12-15 09:31:24 +11:00
Rob Pike
a9e8befb49
generate replacement rune when asked to encode a negative rune value.
...
Fixes #425 .
R=rsc
https://golang.org/cl/178043
2009-12-15 09:19:54 +11:00
Christopher Wedgwood
fe0eb17fad
archive/tar: bug fixes.
...
1. If all data is exhausted using Read then a following Next will
fail as if it saw EOF. (Test case added.)
2. Seeking isn't always possible (i.e. sockets and pipes). Fallback
to read. (Test case added.)
3. Fix to readHeader (cleaner fix pointed out by rsc).
(TestReader modified.)
4. When Read has consumed all the data, don't try to read 0 bytes from reader.
In cases where tr.nb is zero we attempt to read zero bytes and thus
never see an EOF (this is most easily seen when the 'tar source' is
something like bytes.Buffer{} as opposed to os.File).
5. If write is used to the point of ErrWriteTooLong, allow additional file entries.
6. Make close work as expected. That is any further Write or
WriteHeader attempts will result in ErrWriteAfterClose.
Fixes #419 .
R=rsc, dsymonds1
https://golang.org/cl/162062
2009-12-14 11:35:02 -08:00
Robert Griesemer
8793f622e6
don't show semicolons anymore with godoc
...
R=rsc
https://golang.org/cl/174078
2009-12-14 09:14:00 -08:00
Russ Cox
6112e809d2
A+C: two more names
...
Andy Davis (individual CLA)
Arvindh Rajesh Tamilmani (individual CLA)
R=r
https://golang.org/cl/176067
2009-12-13 18:39:04 -08:00
Rob Pike
bbd4cb382a
fix naked < as reported by pwil3058@gmail.com
...
R=rsc
CC=pwil3058
https://golang.org/cl/174087
2009-12-14 13:30:11 +11:00
Rob Pike
d14c813377
When the buffer is empty, reset b.off to the beginning of the buffer
...
to avoid growing unnecessarily.
R=rsc
CC=golang-dev
https://golang.org/cl/176071
2009-12-14 13:13:01 +11:00
Christopher Wedgwood
58578905ba
syscall: fix error return bug for 64-bit return on 32-bit platform
...
R=dho, rsc
CC=r
https://golang.org/cl/176058
2009-12-13 13:05:49 -08:00
Hector Chu
977e19d69f
8l: add support for PE output.
...
R=rsc
https://golang.org/cl/166080
2009-12-13 12:39:20 -08:00
Christopher Wedgwood
2ef330ebd9
clean.bash: stop if $GOROOT is not set
...
Doing rm -rf /pkg/.. blindly isn't nice. It could have
unintended consequences.
Secondly set bash to abort on (unexpected) errors.
R=dho, rsc
CC=golang-dev
https://golang.org/cl/176056
2009-12-13 12:27:19 -08:00
Hector Chu
31645cc0bb
Ported godefs to Windows.
...
R=rsc
https://golang.org/cl/164049
2009-12-13 12:21:44 -08:00
Russ Cox
978c3e96d1
gc: fix comment
...
R=gri
CC=golang-dev
https://golang.org/cl/174077
2009-12-13 12:11:56 -08:00
Rob Pike
f646296185
Update goyacc to new syntax, still with semicolons.
...
Update units.y too.
Fixes #417 .
R=rsc
CC=golang-dev
https://golang.org/cl/176063
2009-12-14 06:34:51 +11:00
Ken Thompson
bedfc2c2f1
more on the optimizer
...
trying to get alizses
to optimize
R=rsc
https://golang.org/cl/176061
2009-12-12 14:36:52 -08:00
Rob Pike
687777710b
fix bug for large counts: used a one-byte buffer.
...
R=rsc
CC=golang-dev
https://golang.org/cl/174082
2009-12-13 07:27:43 +11:00
Robert Griesemer
222462ed4f
Various cleanups:
...
- no need to replace comments for stand-alone blocks
- always print string concatenations with interspersed "+"
(remove option)
- minor cleanups
R=rsc
https://golang.org/cl/174076
2009-12-11 16:42:14 -08:00
Russ Cox
3997495dc3
gc: semicolons
...
Fixes #89 .
Fixes #92 .
Fixes #118 .
Fixes #182 .
Fixes #328 .
Fixes #340 .
R=ken2, ken3
CC=golang-dev
https://golang.org/cl/172049
2009-12-11 15:59:41 -08:00
Ken Thompson
cd00bc78da
bug in 6g optimizer
...
8g still needs fixing
R=rsc
https://golang.org/cl/176057
2009-12-11 15:55:09 -08:00
Robert Griesemer
97a08f7a81
parser changed to reflect new semicolon rules
...
R=rsc
https://golang.org/cl/175046
2009-12-11 15:31:24 -08:00
Robert Griesemer
b9b89f56ad
fix printer test for new syntax
...
R=rsc
https://golang.org/cl/175048
2009-12-11 15:31:06 -08:00
Devon H. O'Dell
857d4cf1a9
Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/src
...
This change removes the necessity to have GOBIN in $PATH,
and also doesn't assume that the build is being run from
$GOROOT/src. This is a minimal set of necessary changes
to get Go to build happily from the FreeBSD ports
collection.
R=rsc
CC=golang-dev
https://golang.org/cl/171044
2009-12-11 15:14:09 -08:00
Russ Cox
0714fbb6ae
misc/bash: completion file for bash
...
suggested by Alex Ray <ajray@ncsu.edu>
R=gri
CC=golang-dev
https://golang.org/cl/174063
2009-12-11 13:54:00 -08:00
Maxim Ushakov
349095885e
encoding/binary: Add support for slices of arrays of fixed-size values.
...
R=rsc
CC=krasin
https://golang.org/cl/167050
2009-12-11 13:04:03 -08:00
Devon H. O'Dell
ddde7f6625
Add a Makefile in place of all.bash. Update docs to reflect
...
this change.
R=rsc
CC=golang-dev
https://golang.org/cl/171048
2009-12-11 12:48:55 -08:00
Yves Junqueira
7835b7994e
syslog: new package
...
R=golang-dev, rsc
https://golang.org/cl/157168
2009-12-11 12:41:51 -08:00
Yongjian Xu
8b3b1edc04
mkbuiltin: generate builtin.c directly
...
R=golang-dev, rsc
https://golang.org/cl/173041
2009-12-11 12:41:33 -08:00
Russ Cox
d5b7d776b5
A+C:
...
Andrey Mirtchovski (individual CLA),
Maxim Ushakov (Google),
Yongjian Xu (individual CLA)
R=gri
https://golang.org/cl/174064
2009-12-11 12:41:04 -08:00
Kei Son
128974adfd
bytes, strings: allow -1 in Map to mean "drop this character".
...
xml: drop invalid characters in attribute names
when constructing struct field names.
R=rsc
CC=r
https://golang.org/cl/157104
2009-12-11 10:37:48 -08:00
Robert Griesemer
67aa1399d6
- make make test working again
...
- some factoring for easier experimentation
R=rsc
https://golang.org/cl/174048
2009-12-10 19:07:10 -08:00
Robert Griesemer
bda2074193
New flags for gofmt:
...
- oldparser parse old syntax (required semicolons)
- oldprinter print old syntax (required semicolons)
By default, these flags are enabled for now.
Setting -oldparser=false has no effect until go/parser is changed
to accept the new syntax.
Enabled exp/parser in Makefile; update dependent exp/eval.
R=rsc
https://golang.org/cl/174051
2009-12-10 19:03:28 -08:00
Robert Griesemer
02d41ec7df
rename exp/parser package to oldParser
...
to allow simultaneous import with the
current go/parser
R=rsc
https://golang.org/cl/174053
2009-12-10 18:27:48 -08:00
Robert Griesemer
130ac74010
Spec modified to reflect new semicolon rules.
...
R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/166066
2009-12-10 16:43:01 -08:00
Robert Griesemer
57909b54e9
implement NoSemis and NoStringConcat mode for go/printer
...
R=rsc
https://golang.org/cl/174050
2009-12-10 15:45:57 -08:00
Robert Griesemer
a70caf4463
implemented InsertSemis mode for go/scanner
...
R=rsc
https://golang.org/cl/175047
2009-12-10 15:31:02 -08:00
Robert Griesemer
2b3813d0e2
- unmodified copy of existing go/parser, not yet hooked up
...
R=rsc
CC=r
https://golang.org/cl/175045
2009-12-10 14:26:25 -08:00
Robert Griesemer
9bf0aab938
trailing comma's are not accepted with current syntax
...
R=rsc, ken2
https://golang.org/cl/174047
2009-12-10 13:14:44 -08:00
Russ Cox
b301351df9
test/fixedbug: drop obsolete bug125, bug166
...
R=gri
CC=golang-dev
https://golang.org/cl/173044
2009-12-10 12:54:30 -08:00
Robert Griesemer
581530e441
make test/ken safe for optional semis
...
R=rsc, ken2, ken3
https://golang.org/cl/174042
2009-12-10 12:53:23 -08:00
Kai Backman
d08d33f389
fix calling convention and make memmove restore the g and m
...
registers.
R=rsc
https://golang.org/cl/166049
2009-12-10 11:42:01 -08:00
Kai Backman
76f7803a2a
added SHUT_RD, SHOT_WR and xSHUT_RDWR to fix net compilation error
...
R=rsc
https://golang.org/cl/165044
2009-12-10 11:40:11 -08:00
Robert Griesemer
60d4e30dbb
make test/fixedbugs save for optional semis
...
R=rsc
https://golang.org/cl/173045
2009-12-10 11:25:54 -08:00
Robert Griesemer
4d44d6a3d6
missed a couple of files in test
...
R=rsc, r
https://golang.org/cl/172045
2009-12-09 21:39:20 -08:00
Robert Griesemer
542099d78f
making some more non-gofmt'ed files save for new semicolon rule
...
R=rsc, r
https://golang.org/cl/171051
2009-12-09 19:27:08 -08:00