summaryrefslogtreecommitdiff
path: root/src/pkg
AgeCommit message (Collapse)AuthorFilesLines
2010-06-29gob: a couple of tiny simplifications using Kind()Rob Pike3-12/+26
R=rsc CC=golang-dev http://codereview.appspot.com/1695046
2010-06-29runtime: fix windows buildAlex Brainman1-0/+2
R=golang-dev, iant CC=golang-dev http://codereview.appspot.com/1747041 Committer: Ian Lance Taylor <iant@golang.org>
2010-06-29exp/draw/x11: implement the mapping from keycodes to keysyms.Nigel Tao1-31/+78
R=rsc CC=golang-dev, rog http://codereview.appspot.com/1739042
2010-06-28Only catch all signals if os/signal package imported.Ian Lance Taylor13-12/+27
Fixes issue 776. R=rsc CC=golang-dev http://codereview.appspot.com/1745041
2010-06-28netchan: use gob DecodeValue to eliminate the need for a pointer valueRob Pike4-40/+28
in Import and Export. R=rsc CC=golang-dev http://codereview.appspot.com/1707047
2010-06-28gob: add DecodeValue and EncodeValueRob Pike5-18/+30
R=rsc CC=golang-dev http://codereview.appspot.com/1698045
2010-06-29syscall: Add syscall_bsd.go to zsycall_freebsd_386.goPeter Mundy1-1/+13
Revision: 5885c9d10f created syscall_bsd.go for code used by Darwin and other *BSDs, which should have included FreeBSD. mksyscall.sh to generate new zsyscall_freebsd_386.go. Fixes issue 862. R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1701048 Committer: Andrew Gerrand <adg@golang.org>
2010-06-28rpc: allow non-struct args and reply (they must still be pointers)Rob Pike2-41/+75
R=rsc CC=golang-dev http://codereview.appspot.com/1722046
2010-06-28netchan: allow chan of basic types now that gob can handle suchRob Pike3-24/+16
R=rsc CC=golang-dev http://codereview.appspot.com/1741041
2010-06-28fmt.Printf: fix bug in handling of %#v.Rob Pike3-63/+68
nice side effect: slices now obey their format verb. example: fmt.Printf("%q\n", []string{"a"}) R=rsc CC=golang-dev http://codereview.appspot.com/1729045
2010-06-28gob: allow transmission of things other than structs at the top level.Rob Pike6-113/+234
also fix a bug handling nil maps: before, would needlessly send empty map R=rsc CC=golang-dev http://codereview.appspot.com/1739043
2010-06-28Move the functions, newPollServer and Run, from fd.goVinu Rajashekhar3-75/+88
to a new source file. R=iant, rsc CC=golang-dev http://codereview.appspot.com/1670046 Committer: Ian Lance Taylor <iant@golang.org>
2010-06-24fmt.Scan: fix handling of EOFs.Rob Pike2-2/+53
Fixes issue 876. R=rsc CC=golang-dev http://codereview.appspot.com/1675048
2010-06-24gob: add support for complex numbersRob Pike4-69/+224
R=rsc CC=golang-dev http://codereview.appspot.com/1708048
2010-06-23Build draw/x11. Skip for test.Christopher Wedgwood1-0/+2
R=nigeltao_golang CC=golang-dev, r, rsc http://codereview.appspot.com/1690043 Committer: Nigel Tao <nigeltao@golang.org>
2010-06-22regexp: restore accidentally deleted test item.Rob Pike1-0/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1714044
2010-06-22regexp: bug fix: need to track whether match begins with fixed prefix.Rob Pike2-17/+20
Fixes issue 872. R=rsc CC=golang-dev http://codereview.appspot.com/1731043
2010-06-22debug/dwarf: update PDF link.Rob Pike1-1/+1
Fixes issue 881. R=iant CC=golang-dev http://codereview.appspot.com/1696044
2010-06-21runtime: split extern.go into debug.go, extern.go, sig.go.Russ Cox6-152/+164
move mal next to the other malloc functions. R=r CC=golang-dev http://codereview.appspot.com/1701045
2010-06-21big, bytes: move assembly externs to separate fileRuss Cox6-14/+28
to make it easier to build package without assembly. R=r, r2 CC=golang-dev http://codereview.appspot.com/1680045
2010-06-21net: move Dial, Listen out of net.go.Russ Cox3-172/+180
now net.go is only type definitions, not active code. R=r CC=golang-dev http://codereview.appspot.com/1708046
2010-06-21runtime: delete old typesRuss Cox1-36/+0
R=r CC=golang-dev http://codereview.appspot.com/1715043
2010-06-21net: Fix ICMP test.Christopher Wedgwood1-2/+2
Ping IDs should be limited to 16-bits. Fix failure printing. R=rsc CC=golang-dev, jean-christophe smith <jeanchristophe.smith http://codereview.appspot.com/1682043 Committer: Russ Cox <rsc@golang.org>
2010-06-21syslog: use local network for testsRuss Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/1724042
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox8-141/+112
gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
2010-06-21pkg/Makefile: allow DISABLE_NET_TESTS=1 to disable network testsRuss Cox4-11/+16
netchan, rpc, websocket: run test servers on 127.0.0.1, to avoid conflict with OS X firewall. TBR=r CC=golang-dev http://codereview.appspot.com/1689046
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox5-35/+16
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox24-924/+604
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox5-16/+48
x.go:13: cannot use t (type T) as type Reader in assignment: T does not implement Reader (Read method requires pointer receiver) x.go:19: cannot use q (type Q) as type Reader in assignment: Q does not implement Reader (missing Read method) have read() want Read() x.go:22: cannot use z (type int) as type Reader in assignment: int does not implement Reader (missing Read method) x.go:24: too many arguments to conversion to complex: complex(1, 3) R=ken2 CC=golang-dev http://codereview.appspot.com/1736041
2010-06-18nacl: fix buildRuss Cox2-2/+2
TBR=r CC=golang-dev http://codereview.appspot.com/1706044
2010-06-18strconv: add AtofN, FtoaNRuss Cox4-0/+47
R=r CC=golang-dev http://codereview.appspot.com/1700043
2010-06-18fmt.Scanf: improve error message when input does not match formatRob Pike2-4/+7
R=rsc CC=golang-dev http://codereview.appspot.com/1693043 Committer: Rob Pike <r@golang.org>
2010-06-18complex divide: match C99 implementationRuss Cox1-23/+47
R=iant, ken2, r, r2, ken3 CC=golang-dev http://codereview.appspot.com/1686044
2010-06-16http: reply to Expect 100-continue requests automaticallyBrad Fitzpatrick2-0/+35
This CL replaces my earlier http://codereview.appspot.com/1640044/show in which Continue handling was explicit. Instead, this CL makes it automatic. Reading from Body() is an implicit acknowledgement that the request headers were fine and the body is wanted. In that case, the 100 Continue response is written automatically when the request continues the "Expect: 100-continue" header. R=rsc, adg CC=golang-dev http://codereview.appspot.com/1610042 Committer: Russ Cox <rsc@golang.org>
2010-06-16image: add an Alpha16 type, for completeness.Nigel Tao2-0/+69
R=rsc CC=golang-dev, rog http://codereview.appspot.com/1707042
2010-06-15fmt.Scan: fix %c in the case where the input does not implement ReadRune itself.Rob Pike2-29/+100
While we're at it, clean up and test the code to guarantee we see every byte when the text is erroneous UTF-8. Fixes issue 866. R=rsc CC=golang-dev http://codereview.appspot.com/1712042
2010-06-15bytes.Buffer.ReadFrom: fix bug.Rob Pike1-1/+1
Fixes issue 852. R=rsc CC=golang-dev http://codereview.appspot.com/1680042
2010-06-14runtime: correct fault for 16-bit divide on LeopardRuss Cox2-2/+6
R=r CC=golang-dev http://codereview.appspot.com/1703041
2010-06-14fmt.Printf: write tests for %T.Rob Pike2-1/+7
Fix a bug that caused it to ignore field widths. R=rsc CC=golang-dev http://codereview.appspot.com/1704041
2010-06-14fmt.Print*: reimplement to switch on type first.Rob Pike5-625/+456
This shortens, simplifies and regularizes the code significantly. (Improvements to reflect could make another step.) Passes all.bash. One semantic change occurs: The String() method changes behavior. It used to run only for string formats such as %s and %q. Instead, it now runs whenever the item has the method and the result is then processed by the format as a string. Besides the regularization, this has three effects: 1) width is honored for String() items 2) %x works for String() items 3) implementations of String that merely recur will recur forever Regarding point 3, example from the updated documentation: type X int func (x X) String() string { return Sprintf("%d", x) } should cast the value before recurring: func (x X) String() string { return Sprintf("%d", int(x)) } R=rsc CC=golang-dev http://codereview.appspot.com/1613045
2010-06-15html: sync testdata/webkit to match WebKit tip.Nigel Tao1-0/+44
R=rsc CC=golang-dev http://codereview.appspot.com/1701041
2010-06-14Add IndexFunc and LastIndexFunc.Roger Peppe2-36/+187
Change TrimRight and TrimLeft to use these functions. Incidentally fix minor bug in TrimRight. Add some test cases for this. YMMV whether it's worth saving the closure allocation. R=r, r2 CC=golang-dev, hoisie, rsc http://codereview.appspot.com/1198044 Committer: Rob Pike <r@golang.org>
2010-06-14remove uses of ... from tree, add one testRuss Cox5-26/+47
R=r CC=golang-dev http://codereview.appspot.com/1662041
2010-06-14exp/draw: small draw.drawGlyphOver optimization.Nigel Tao1-10/+11
Make dpix variable names consistent. R=rsc CC=golang-dev http://codereview.appspot.com/1563041
2010-06-12runtime: fix 386 signal handler bugRuss Cox2-15/+35
Cannot assume that g == m->curg at time of signal. Must save actual g and restore. Fixes flaky crashes with messages like throw: malloc mlookup throw: malloc/free - deadlock throw: unwindstack on self throw: free mlookup (and probably others) when running cgo. R=iant CC=golang-dev http://codereview.appspot.com/1648043
2010-06-11runtime: switch to OS stack during Windows syscallAlex Brainman5-56/+163
R=rsc CC=golang-dev http://codereview.appspot.com/1381041 Committer: Russ Cox <rsc@golang.org>
2010-06-11runtime: free lock handles on WindowsAlex Brainman1-0/+2
R=rsc CC=golang-dev http://codereview.appspot.com/1652041 Committer: Russ Cox <rsc@golang.org>
2010-06-09add path.Base, analogous to Unix basenameRob Pike2-0/+45
R=rsc CC=golang-dev http://codereview.appspot.com/1633042
2010-06-09asn1: allow '*' in PrintableString.Adam Langley2-1/+6
Although technically incorrect, we want this in order to parse X.509 certificates where a wildcard hostname ("*.example.com") has been put into a PrintableString. Fixes issue 850. R=rsc CC=golang-dev http://codereview.appspot.com/1615043
2010-06-09exp/eval test: fix buildRobert Griesemer1-3/+3
R=r CC=golang-dev http://codereview.appspot.com/1599043