Russ Cox
b1f44a120f
gc: improve error message for x \= 0
...
was
x.go:2: syntax error: unexpected $undefined
now
x.go:2: syntax error: unexpected \
R=ken2
CC=golang-dev
https://golang.org/cl/2267044
2010-09-24 17:09:31 -04:00
Robert Griesemer
ac771a8a47
go spec: ... changes
...
Also: Fixed a bug in the BuiltinCall production.
R=iant, r, rsc
CC=golang-dev
https://golang.org/cl/2278041
2010-09-24 14:08:28 -07:00
Rob Pike
6f32c82953
utf8: Add new type String to automate string indexing by code point.
...
R=rsc, rog
CC=golang-dev
https://golang.org/cl/2275041
2010-09-25 06:58:34 +10:00
Russ Cox
d47266558d
net: enable v4-over-v6 on ip sockets
...
Not all OS make that the default.
Can finally do this now that the syscall package
has the right definitions.
Fixes #679 .
R=r
CC=golang-dev
https://golang.org/cl/2204048
2010-09-24 16:52:06 -04:00
Russ Cox
b031b5cfde
net: fix crash in DialIP
...
Reported by jan.newmarch.
Fixes #1130 .
R=r
CC=golang-dev
https://golang.org/cl/2212043
2010-09-24 16:50:50 -04:00
Robert Griesemer
daf64bf567
gofmt: don't substitute invalid positions with valid ones in rewrites
...
Fixes rewrite bug: 'f(x) -> f(0)' where functions "picked up" ... arguments.
R=rsc
CC=golang-dev
https://golang.org/cl/2279041
2010-09-24 12:58:08 -07:00
Russ Cox
5c4917ce33
syscall: rebuild z files
...
darwin/386
darwin/amd64
freebsd/386
freebsd/amd64
linux/386
linux/amd64
nacl/386
TBR=adg
CC=golang-dev
https://golang.org/cl/2198047
2010-09-24 15:17:20 -04:00
Russ Cox
f33ef07f38
syscall: fix socketpair in syscall_bsd
...
THIS WILL BREAK THE BUILD.
The z files have socketpair code in them that was
written by hand; breaking the build with this is the first
step in getting rid of that hand-written code.
R=adg
TBR=adg
CC=golang-dev
https://golang.org/cl/2197050
2010-09-24 14:59:34 -04:00
Russ Cox
dabd9fe920
syscall: work harder to avoid doing this ever again
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2218044
2010-09-24 14:52:10 -04:00
Russ Cox
5bd0bea7d2
syscall: fix mkall.sh for nacl
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2208050
2010-09-24 14:38:17 -04:00
Russ Cox
908b0683e1
syscall: fix permissions on mksysnum_nacl.sh
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2208049
2010-09-24 11:03:54 -07:00
Russ Cox
9a96fb3a29
mkall.sh, mkerrors.sh: work more broadly
...
work on FreeBSD even without /usr/src/sys.
work on systems where gcc -static is broken.
TBR so I can test my semi-automated z builder.
TBR=adg
CC=golang-dev
https://golang.org/cl/2215046
2010-09-24 13:37:02 -04:00
Russ Cox
fb7e175d1f
debug/proc: ... changes (fix build)
...
TBR=gri
CC=golang-dev
https://golang.org/cl/2229047
2010-09-24 13:12:50 -04:00
Russ Cox
d8fc38c7b8
crypto/ocsp: update for asn1 change (fix build)
...
TBR=gri
CC=golang-dev
https://golang.org/cl/2221044
2010-09-24 13:08:35 -04:00
Russ Cox
8206bafb22
asn1: make interface consistent with json
...
Replace Marshal with MarshalToMemory
(no one was using old Marshal anyway).
Swap arguments to Unmarshal.
Fixes #1133 .
R=agl1
CC=golang-dev
https://golang.org/cl/2249045
2010-09-24 12:34:18 -04:00
Russ Cox
1d315a8abd
gc: printing of ...
...
R=ken2
CC=golang-dev
https://golang.org/cl/2218043
2010-09-24 12:29:20 -04:00
Dan Sinclair
8d87ccad0b
xml: Allow entities inside CDATA tags
...
Fixes #1112 .
R=rsc
CC=golang-dev
https://golang.org/cl/2255042
2010-09-24 12:23:01 -04:00
Russ Cox
2ee420fa5e
... changes
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/2273042
2010-09-24 11:55:48 -04:00
Russ Cox
75dd8fdb34
gc: ... changes
...
R=ken2, ken3
CC=golang-dev
https://golang.org/cl/2208047
2010-09-24 11:55:30 -04:00
Russ Cox
6cf1a34402
build: use full path when compiling libraries
...
Makes gdb display full paths in backtrace.
Dropped during the most recent reorg.
R=r
CC=golang-dev
https://golang.org/cl/2216047
2010-09-24 11:55:16 -04:00
Russ Cox
34d413f562
runtime: fix unwindstack crash
...
Bug and fix identified by Alexey Gokhberg.
Fixes #1135 .
R=r, brainman
CC=golang-dev
https://golang.org/cl/2198046
2010-09-23 23:04:32 -04:00
Rob Pike
e439345dfd
bufio.UnreadRune: fix bug at EOF
...
Fixes #1132 .
R=rsc
CC=golang-dev
https://golang.org/cl/2215045
2010-09-24 12:28:14 +10:00
Nigel Tao
099d7b4d1d
exp/draw: remove "this isn't ready yet" comments.
...
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2248046
2010-09-24 12:15:49 +10:00
Peter Mundy
bfb127612a
os: check for valid arguments in windows Readdir
...
Fixes #1129 .
R=rsc, brainman
CC=Joe Poirier, golang-dev
https://golang.org/cl/2211045
2010-09-23 22:06:59 -04:00
Russ Cox
7c9f0f0109
html: disable print
...
Everything is incomplete.
Let's not make noise like this a habit.
R=nigeltao_gnome
CC=golang-dev
https://golang.org/cl/2272041
2010-09-23 22:05:42 -04:00
Russ Cox
052cd29dd6
nacl: update instructions for new SDK
...
R=nigeltao_gnome, nigeltao
CC=golang-dev
https://golang.org/cl/2253042
2010-09-23 22:05:20 -04:00
Rob Pike
344600f689
fmt/Printf: document and tweak error messages produced for bad formats
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2198044
2010-09-24 11:53:26 +10:00
Nigel Tao
d181625b9c
exp/spacewar: fix build.
...
R=rsc
CC=golang-dev
https://golang.org/cl/2265042
2010-09-24 11:07:52 +10:00
Robert Griesemer
44b3b20524
gofmt: preserve syntactically relevant blanks between ints and tokens that start with a '.' (2nd attempt)
...
R=rsc
CC=golang-dev
https://golang.org/cl/2270042
2010-09-23 14:56:44 -07:00
Robert Griesemer
0716d95092
gofmt: don't remove syntactically relevant blank in f(42 ...)
...
R=rsc
CC=golang-dev
https://golang.org/cl/2246046
2010-09-23 14:20:13 -07:00
Russ Cox
f3549d8323
io/ioutil: use _test not _obj in test
...
Fixes: make clean; make test
R=gri
CC=golang-dev
https://golang.org/cl/2234044
2010-09-23 14:31:44 -04:00
Roger Peppe
81ba399a6a
bytes, strings: change lastIndexFunc to use DecodeLastRune
...
R=r
CC=golang-dev, rsc
https://golang.org/cl/2271041
2010-09-23 20:40:11 +10:00
Roger Peppe
f11271b82e
utf8: add DecodeLastRune and DecodeLastRuneInString to
...
enable traversing rune-by-rune backwards in strings
R=r, rsc
CC=golang-dev
https://golang.org/cl/2192050
2010-09-23 20:33:52 +10:00
Rob Pike
1959c3ac5b
tests: fix prints
...
- delete unnecessary newlines
- make sure formatted prints call the formatting routines
R=adg
CC=golang-dev
https://golang.org/cl/2225046
2010-09-23 13:48:56 +10:00
Alex Brainman
c10865ce53
syscall: implement windows version of Utimes()
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/2215044
2010-09-23 12:36:52 +10:00
Andrew Gerrand
105c9136b8
tag release.2010-09-22
...
R=r
CC=golang-dev
https://golang.org/cl/2244044
2010-09-23 11:56:02 +10:00
Andrew Gerrand
71ee385ddf
release.2010-09-22
...
R=r
CC=golang-dev
https://golang.org/cl/2208046
2010-09-23 11:49:47 +10:00
Nigel Tao
43527e9dbb
netchan: fix comment typo.
...
R=adg
CC=golang-dev
https://golang.org/cl/2204047
2010-09-23 11:32:11 +10:00
Roger Peppe
0f17173f79
exp/draw: add Point.Eq, Point.Mul, Point.Div, Rectangle.Size methods
...
R=nigeltao, nigeltao_golang, rsc
CC=golang-dev, r
https://golang.org/cl/2192048
2010-09-23 10:58:59 +10:00
Andrew Gerrand
1a8bd6715d
http: fix redirect test for international users
...
R=r
CC=golang-dev
https://golang.org/cl/2197047
2010-09-23 10:40:07 +10:00
Russ Cox
855f08358b
build: add missing files for arm changes
...
R=adg
TBR=adg
CC=golang-dev
https://golang.org/cl/2226046
2010-09-22 17:21:02 -04:00
Ian Lance Taylor
7b175236cb
http: Change redirect test URL, as the old one now fails.
...
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2267042
2010-09-22 14:20:15 -07:00
Robert Griesemer
a6b6142f30
gofmt: support for ... after actual arguments
...
Pending acceptance of the proposed language change.
R=rsc
CC=golang-dev
https://golang.org/cl/2193048
2010-09-22 14:05:14 -07:00
Robert Griesemer
3487495eb0
suffixarray: cleanup per suggestion from Roger Peppe
...
R=rsc
CC=golang-dev
https://golang.org/cl/2213045
2010-09-22 11:03:57 -07:00
Andrew Gerrand
ad9042bdfa
http: don't always escape all reserved chars (fix build)
...
R=nigeltao, nigeltao_golang
CC=golang-dev
https://golang.org/cl/2206044
2010-09-22 16:59:35 +10:00
Andrew Gerrand
d093bdbe7e
http: escape _all_ reserved characters as per the RFC
...
R=r
CC=golang-dev
https://golang.org/cl/2199043
2010-09-22 16:25:26 +10:00
Robert Griesemer
22974fbe8e
suffixarray: a package for creating suffixarray-based indexes
...
This is a replacement for pending CL 2219042. It only contains
the raw suffixarray functionality with two methods:
- New create a new index from some data
- Lookup lookup occurences of a bytes slice in the data
Any other functionality (dealing with multiple data sets and
the corresponding position lists) is generic and doesn't have
to be part of this package.
Known performance bug: This implementation works fine for data sets
up to several megabytes as long as it doesn't contain very long
contiguous sequences of equal bytes. For instance, index creation for
all .go files under GOROOT (250KLOCs, approx. 9MB) takes ~50s on
2.66 GHz Intel Xeon as long as test/fixedbugs/257.go is excluded.
With that file, index creation times takes several days. 257.go contains
a string of 1M smiley faces.
There are more sophisticated suffixarray creation algorithms which
can handle very long common prefixes. The implementation can be
updated w/o the need to change the interface.
R=rsc, r, PeterGo
CC=golang-dev
https://golang.org/cl/2265041
2010-09-21 23:12:57 -07:00
Anthony Martin
176364900e
fmt: support '*' for width or precision
...
R=r
CC=golang-dev
https://golang.org/cl/2237044
2010-09-22 16:10:38 +10:00
Russ Cox
b7cb844ac8
build: make all.bash run on Ubuntu ARM
...
Sent from my phone.
R=adg
CC=golang-dev
https://golang.org/cl/2192049
2010-09-22 15:30:42 +10:00
Andrew Gerrand
96d6f9dea4
misc/dashboard/builder: -cmd for user-specified build command
...
R=rsc
CC=golang-dev
https://golang.org/cl/2248043
2010-09-22 15:18:41 +10:00