Russ Cox
8fbd5f8a82
use []byte("abc") in place of []byte{'a', 'b', 'c'}
...
R=gri
CC=golang-dev
https://golang.org/cl/223059
2010-02-25 16:43:43 -08:00
Robert Griesemer
d177539877
go/printer, gofmt: align comments in multi-line expression lists
...
- gofmt -w src misc
- improves several lists and fixes minor degradation introduced
with the fix for issue 628
- removed some dead code (stringList)
R=rsc
CC=golang-dev
https://golang.org/cl/223058
2010-02-25 16:07:55 -08:00
Russ Cox
9750adbbad
strings: delete Runes, Bytes
...
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench
gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench
delete unused imports
R=r
CC=golang-dev
https://golang.org/cl/224062
2010-02-25 16:01:29 -08:00
Robert Griesemer
dfaa6eaa76
tabwriter: make use of new []byte() conversion
...
R=rsc
CC=golang-dev
https://golang.org/cl/224063
2010-02-25 15:54:12 -08:00
Russ Cox
3910161307
gc: implement []int(string) and []byte(string)
...
R=ken2
CC=golang-dev
https://golang.org/cl/224060
2010-02-25 15:11:07 -08:00
Stephen Weinberg
b86c0b0c4a
Fix small typo in net package.
...
R=rsc
CC=golang-dev
https://golang.org/cl/224061
2010-02-25 14:49:14 -08:00
Robert Griesemer
dbe0b57012
go/printer, gofmt: correct indentation after certain /*-style comments
...
- applied gofmt to src and misc
Note: This fix improved formatting of src/pkg/math/all_test.go but leads
to a degradation in src/pkg/exp/4s/xs.go. The latter happened to "work"
before accidentally. Fixing the alignment in that case in general will
be a separate CL.
Fixes #628 .
R=rsc
CC=golang-dev
https://golang.org/cl/223054
2010-02-25 13:47:16 -08:00
Robert Griesemer
e0d5177dd7
tabwriter: indicate section breaks if Debug flag is set
...
R=rsc
CC=golang-dev
https://golang.org/cl/224057
2010-02-25 13:26:55 -08:00
Ian Lance Taylor
bada653f4d
Use consistent types in .h file and .c file.
...
R=rsc
CC=golang-dev
https://golang.org/cl/224053
2010-02-25 10:13:09 -08:00
Robert Griesemer
859e4d51c3
strings: remove a couple of redundant tests
...
(per suggestion from Heresy.Mc@gmail.com )
R=rsc
CC=golang-dev
https://golang.org/cl/223052
2010-02-25 10:02:39 -08:00
Kevin Ballard
20834d644f
path: Fix bug in Match with non-greedy stars
...
path.Match() errors out when testing "*x" against "xxx"
because it matches the star non-greedily. Ensure that
the last chunk consumes the rest of the name.
R=r, rsc
CC=golang-dev
https://golang.org/cl/223050
2010-02-25 09:15:52 -08:00
Rob Pike
24ee7f799c
%q in fmt: if the object is a Stringer, use String() to get the value to quote.
...
R=rsc
CC=golang-dev
https://golang.org/cl/224051
2010-02-25 17:29:37 +11:00
Robert Griesemer
d5248c4a96
go/scanner: support for complex (imaginary) constants
...
R=rsc
CC=golang-dev
https://golang.org/cl/223044
2010-02-24 17:06:40 -08:00
Ian Lance Taylor
7c99dcbdf9
Install runtime.h and cgocall.h.
...
This permits cgo generated code to use these header files even
if the Go sources are not around.
R=rsc
CC=golang-dev
https://golang.org/cl/224045
2010-02-24 17:00:25 -08:00
Robert Griesemer
ef0be41e20
go/ast: streamline representation of field lists
...
- always include position information about opening/closing parens/braces
- replace uses of []*ast.Field with *ast.FieldList
Fixes #473 .
R=rsc
CC=golang-dev
https://golang.org/cl/223043
2010-02-24 16:17:11 -08:00
Russ Cox
78961ed961
path: add Match
...
R=eridius, r, rog
CC=golang-dev
https://golang.org/cl/217088
2010-02-24 16:11:14 -08:00
Russ Cox
37666561b2
http: fix handling of Close, use Close in http.Post
...
default to HTTP/1.1
R=petar-m
CC=golang-dev
https://golang.org/cl/224041
2010-02-24 15:13:39 -08:00
Robert Griesemer
1be05bbe1e
gofmt: don't print ()'s around function-typed results (not needed anymore)
...
- add extra test cases to go/printer tests
- apply gofmt to src and misc
R=rsc
CC=golang-dev
https://golang.org/cl/223041
2010-02-24 13:24:37 -08:00
Robert Griesemer
228903c5da
go/printer: use general comment intersperse mechanism everywhere
...
- remove several TODOs
- as a side-effect, comment stylers are now used always and comments
will be properly colored in godoc pkg documentation pages (and not
only when looking at source text)
R=rsc
CC=golang-dev
https://golang.org/cl/222041
2010-02-24 11:06:46 -08:00
Mark Zavislak
6a0af8e118
crypto package documentation fix
...
Replaces stale references to modes.go.
R=golang-dev, agl, rsc
CC=golang-dev
https://golang.org/cl/218071
2010-02-23 12:01:09 -08:00
Rob Pike
38202de114
goyacc: fix handling of / and comments in goyacc
...
Fixes #618 .
R=rsc
CC=golang-dev
https://golang.org/cl/217094
2010-02-23 16:00:14 +11:00
Russ Cox
8ba5c5593f
runtime: work around Linux kernel bug in futex
...
Fixes #420 .
R=r
CC=golang-dev
https://golang.org/cl/218065
2010-02-22 20:45:36 -08:00
Russ Cox
5c2197ac8f
net: disable UDP server test
...
has been flaking on various architectures.
not sure why, but doesn't seem to be Go's fault.
Fixes #617 .
R=r
CC=golang-dev
https://golang.org/cl/217093
2010-02-22 20:38:56 -08:00
Charles L. Dorian
78e918ccba
math: add lgamma; in-line special cases of acosh, nextafter
...
Added lgamma.go, tests and special cases.
R=rsc
CC=golang-dev
https://golang.org/cl/217060
2010-02-22 17:12:48 -08:00
Nigel Tao
2ac3df210b
Fix xgb/example.go typo.
...
R=adg
CC=golang-dev
https://golang.org/cl/210047
2010-02-23 11:54:57 +11:00
Robert Griesemer
b0fba898ef
go/printer (gofmt): remove more residue from semicolon transition
...
minor unrelated cleanups
R=rsc
CC=golang-dev
https://golang.org/cl/217086
2010-02-22 15:41:59 -08:00
Petar Maymounkov
39e91f8858
http: use RawURL in Request.Write
...
R=rsc
CC=golang-dev
https://golang.org/cl/217066
2010-02-22 15:39:30 -08:00
Michael Hoisie
1a37656b7a
xml: treat bool as value in Unmarshal
...
R=rsc
CC=golang-dev
https://golang.org/cl/218050
2010-02-22 15:21:13 -08:00
Petar Maymounkov
e465ad3cbd
http: fix bug in Post
...
R=rsc
CC=golang-dev
https://golang.org/cl/217059
2010-02-22 14:46:59 -08:00
Sergei Skorobogatov
7870672c7f
json: fix quoted strings in Marshal
...
R=rsc
CC=golang-dev
https://golang.org/cl/217047
2010-02-22 14:32:40 -08:00
Robert Griesemer
22e960547f
scanner: match go/scanner and disallow NUL character;
...
also check for illegal UTF-8 sequences
R=rsc
CC=golang-dev
https://golang.org/cl/218061
2010-02-22 14:21:59 -08:00
Michael Hoisie
0485a999ff
http request URI should never be empty
...
R=rsc, adg
CC=golang-dev
https://golang.org/cl/217071
2010-02-21 19:49:43 -08:00
Ken Thompson
458b53ea7d
all done except -
...
complex divide
float(complex) conversion
8g 5g etc
tests
R=rsc
CC=golang-dev
https://golang.org/cl/218044
2010-02-21 17:51:39 -08:00
Russ Cox
ed13d39972
gc: minor const simplifications
...
R=ken2
CC=golang-dev
https://golang.org/cl/217069
2010-02-21 11:18:09 -08:00
Ken Thompson
f59cb49a5a
fixed bug in mpconst float multiply by 0.
...
more complex -- constants, variables and print.
R=rsc
CC=golang-dev
https://golang.org/cl/217061
2010-02-19 20:42:50 -08:00
Timo Savola
4f8a000e17
websocket: fix binary frame size decoding
...
R=ukai, rsc
CC=golang-dev
https://golang.org/cl/166074
2010-02-19 18:40:09 -08:00
Robert Griesemer
989ef60509
go/ast: use a slice instead of a linked list for the list of comments
...
(this will simplify some further changes)
removed several TODOs
R=rsc
CC=golang-dev
https://golang.org/cl/216059
2010-02-19 17:03:09 -08:00
Robert Griesemer
aaec61555a
godoc: fix path resolution for command-line one more time (sigh...)
...
R=rsc
CC=golang-dev
https://golang.org/cl/217058
2010-02-19 16:23:19 -08:00
Robert Griesemer
8e714aab2b
- removed exp/parser (support for old semicolon syntax)
...
- go/ast: removed StringList (not needed anymore)
- go/ast: changed import path and field list tag to a single string
- updated all dependencies
R=rsc
CC=golang-dev
https://golang.org/cl/217056
2010-02-19 16:01:31 -08:00
Robert Griesemer
cf743c1be6
godoc: make commandline use work again
...
R=rsc
CC=golang-dev
https://golang.org/cl/216054
2010-02-19 11:41:48 -08:00
Petar Maymounkov
1480ce373e
http: unified body transfer (read & write) logic in http.Request/Response.
...
Compliance issue addressed here: POST requests carrying form data are required
to use "identity" transfer encoding by common nginx and apache server configurations,
e.g. wordpress.com (and many others). So, Request needed to be able to send
non-chunked encodings.
Thus, Request is extended to support identity and chunked encodings, like
Response. Since the Read() and Write() logic are shared by both (and are
quite long), it is exported in a separate file transfer.go.
R=rsc
CC=golang-dev
https://golang.org/cl/217048
2010-02-19 08:38:40 -08:00
Petar Maymounkov
8d9c2b2eab
http: add Pending method to ServerConn, ClientConn
...
R=rsc
CC=golang-dev
https://golang.org/cl/216052
2010-02-19 08:21:21 -08:00
Adam Langley
32c3c95339
crypto/x509: support certificate creation.
...
R=rsc
CC=golang-dev
https://golang.org/cl/212041
2010-02-19 10:55:41 -05:00
Petar Maymounkov
55828cee94
http: add DumpRequest, DumpResponse, for debugging
...
R=rsc
CC=golang-dev
https://golang.org/cl/206050
2010-02-19 07:51:51 -08:00
Petar Maymounkov
d26e204514
http: persistent connection objects
...
R=rsc
CC=golang-dev
https://golang.org/cl/203051
2010-02-18 23:38:21 -08:00
Petar Maymounkov
e3b94edc03
http: do not edit Response.ContentLength in Response.Write
...
R=rsc
CC=golang-dev
https://golang.org/cl/207061
2010-02-18 23:38:17 -08:00
Russ Cox
80a14df122
gc: double-initialization
...
R=ken2
CC=golang-dev
https://golang.org/cl/217044
2010-02-18 23:33:57 -08:00
Kai Backman
c0aac20e20
combined pchw and embedded into tiny. added section on arm to README
...
R=rsc
CC=golang-dev
https://golang.org/cl/194151
2010-02-18 23:33:21 -08:00
Charles L. Dorian
c3fa32c747
math: add Cbrt and Sincos; x87 versions of Sincos, Frexp, Ldexp
...
Added special condition and benchmarks for Cbrt, Sincos. Took Frexp and Ldexp out of bits.go.
R=rsc
CC=golang-dev
https://golang.org/cl/206084
2010-02-18 23:33:15 -08:00
Evan Shaw
4af0a58ea9
8a/8l: Added FCMOVcc instructions
...
Thanks to Charles Dorian for the help.
R=rsc
CC=Charlie Dorian, golang-dev
https://golang.org/cl/207049
2010-02-18 23:33:06 -08:00