summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-12-11Add a Makefile in place of all.bash. Update docs to reflectDevon H. O'Dell5-13/+19
this change. R=rsc CC=golang-dev http://codereview.appspot.com/171048 Committer: Russ Cox <rsc@golang.org>
2009-12-11syslog: new packageYves Junqueira5-3/+258
R=golang-dev, rsc http://codereview.appspot.com/157168 Committer: Russ Cox <rsc@golang.org>
2009-12-11mkbuiltin: generate builtin.c directlyYongjian Xu2-4/+2
R=golang-dev, rsc http://codereview.appspot.com/173041 Committer: Russ Cox <rsc@golang.org>
2009-12-11A+C:Russ Cox2-0/+5
Andrey Mirtchovski (individual CLA), Maxim Ushakov (Google), Yongjian Xu (individual CLA) R=gri http://codereview.appspot.com/174064
2009-12-11bytes, strings: allow -1 in Map to mean "drop this character".Kei Son6-26/+91
xml: drop invalid characters in attribute names when constructing struct field names. R=rsc CC=r http://codereview.appspot.com/157104 Committer: Russ Cox <rsc@golang.org>
2009-12-10- make make test working againRobert Griesemer1-15/+15
- some factoring for easier experimentation R=rsc http://codereview.appspot.com/174048
2009-12-10New flags for gofmt:Robert Griesemer4-11/+33
- 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 http://codereview.appspot.com/174051
2009-12-10rename exp/parser package to oldParserRobert Griesemer3-8/+13
to allow simultaneous import with the current go/parser R=rsc http://codereview.appspot.com/174053
2009-12-10Spec modified to reflect new semicolon rules.Robert Griesemer1-242/+273
R=rsc, r, iant, ken2 CC=golang-dev http://codereview.appspot.com/166066 Committer: Robert Griesemer <gri@golang.org>
2009-12-10implement NoSemis and NoStringConcat mode for go/printerRobert Griesemer2-5/+22
R=rsc http://codereview.appspot.com/174050
2009-12-10implemented InsertSemis mode for go/scannerRobert Griesemer2-20/+236
R=rsc http://codereview.appspot.com/175047
2009-12-10- unmodified copy of existing go/parser, not yet hooked upRobert Griesemer4-0/+2326
R=rsc CC=r http://codereview.appspot.com/175045
2009-12-10trailing comma's are not accepted with current syntaxRobert Griesemer1-2/+1
R=rsc, ken2 http://codereview.appspot.com/174047
2009-12-10test/fixedbug: drop obsolete bug125, bug166Russ Cox2-28/+0
R=gri CC=golang-dev http://codereview.appspot.com/173044
2009-12-10make test/ken safe for optional semisRobert Griesemer32-394/+188
R=rsc, ken2, ken3 http://codereview.appspot.com/174042
2009-12-10fix calling convention and make memmove restore the g and mKai Backman1-2/+10
registers. R=rsc http://codereview.appspot.com/166049
2009-12-10added SHUT_RD, SHOT_WR and xSHUT_RDWR to fix net compilation errorKai Backman1-0/+3
R=rsc http://codereview.appspot.com/165044
2009-12-10make test/fixedbugs save for optional semisRobert Griesemer8-17/+13
R=rsc http://codereview.appspot.com/173045
2009-12-09missed a couple of files in testRobert Griesemer2-18/+27
R=rsc, r http://codereview.appspot.com/172045
2009-12-09making some more non-gofmt'ed files save for new semicolon ruleRobert Griesemer12-42/+39
R=rsc, r http://codereview.appspot.com/171051
2009-12-09- gofmt these filesRobert Griesemer3-270/+243
- remove use of implicit string concatenation - these appear to be the only files correctly compiling under test that used implicit string concatenation R=rsc http://codereview.appspot.com/172043
2009-12-09minor manual format correctionsRobert Griesemer2-3/+1
R=rsc http://codereview.appspot.com/172042
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer20-621/+620
R=rsc http://codereview.appspot.com/172041
2009-12-09hgtags: add release tag, again.Russ Cox0-0/+0
R=r http://codereview.appspot.com/170049
2009-12-09hgtags: looks like they have to be full hashesRuss Cox0-0/+0
R=r http://codereview.appspot.com/170048
2009-12-09hgtags: add release pointing at 2009-12-09's checkin.Russ Cox0-0/+0
R=r http://codereview.appspot.com/170047
2009-12-09hgtags: tag release.2009-12-07 (where gccgo is)Russ Cox0-0/+0
and release.2009-12-09 (where we are) shorten tags because it is too hard to look up the full size hash and overkill anyway. R=r http://codereview.appspot.com/171047
2009-12-09doc/contribute: try to make it clearer that you send a review with hg mail, ↵Russ Cox1-2/+2
not hg submit. R=r http://codereview.appspot.com/171046
2009-12-09added benchmarks to rand_test.go;Roger Peppe1-0/+15
removed superfluous field name in lockedSource. R=r, rsc http://codereview.appspot.com/170043 Committer: Russ Cox <rsc@golang.org>
2009-12-09syscalls can return negative i/o counts. fix bugs in ReadAt and WriteAt not ↵Rob Pike1-2/+2
to include negative counts in return values. R=rsc CC=golang-dev http://codereview.appspot.com/170044
2009-12-09doc: split contribute.html into code.html and contribute.htmlRuss Cox3-216/+264
R=r http://codereview.appspot.com/170042
2009-12-09Make the operations on the global rng thread safe.Roger Peppe1-1/+21
R=r, rsc CC=golang-dev http://codereview.appspot.com/168041 Committer: Russ Cox <rsc@golang.org>
2009-12-09Continuation of issue 221 fix. When 8g or 6g or 5g are called with aCharles L. Dorian5-5/+5
UTF-8 string, Yconv() converts it into an octal sequence. If the string converted to more than 30 bytes, the str buffer would overflow. For example, 4 Greek runes became 32 bytes, 3 Hiragana runes became 36 bytes, and 2 Gothic runes became 32 bytes. In 8l, 6l and 5l the function is Sconv(). For some reason, only 5l uses the constant STRINGSZ (defined as 200) for the buffer size. R=rsc http://codereview.appspot.com/168045 Committer: Russ Cox <rsc@golang.org>
2009-12-09json package: Fixed handling of nil valuesRoss Light2-1/+15
Fixes issue 400. R=golang-dev, rsc http://codereview.appspot.com/167058 Committer: Russ Cox <rsc@golang.org>
2009-12-09Added my name to the AUTHORS and CONTRIBUTORS listRoss Light2-0/+2
R=rsc http://codereview.appspot.com/165101 Committer: Russ Cox <rsc@golang.org>
2009-12-09Added XTEA block cipher package to src/pkg/cryptoAdrian O'Grady5-0/+417
This is an adaption of the code from http://en.wikipedia.org/wiki/XTEA. The package also implements the block.Cipher interface so that it can be used with the various block modes. R=rsc http://codereview.appspot.com/157152 Committer: Russ Cox <rsc@golang.org>
2009-12-08runtime: start new darwin/amd64 threads on correct stack,Russ Cox1-11/+13
then enable stack check. R=r http://codereview.appspot.com/165100
2009-12-08A+C: two more namesRuss Cox2-0/+3
Kei Son has completed the CLA. Yves Junqueira is a Google employee. R=r http://codereview.appspot.com/167057
2009-12-08bufio: use copy - significant speedup for writersRuss Cox1-12/+6
R=r http://codereview.appspot.com/167047
2009-12-08Fix stack on FreeBSD / add stack check across the boardDevon H. O'Dell8-10/+36
FreeBSD was passing stk as the new thread's stack base, while stk is the top of the stack in go. The added check should cause a trap if this ever comes up in any new ports, or regresses in current ones. R=rsc CC=golang-dev http://codereview.appspot.com/167055 Committer: Russ Cox <rsc@golang.org>
2009-12-08When SA_SIGINFO is set, we should use __sa_sigaction on FreeBSDDevon H. O'Dell2-4/+4
R=rsc CC=golang-dev http://codereview.appspot.com/165097 Committer: Russ Cox <rsc@golang.org>
2009-12-076l, 8l: make string buffer big enough for 8 chars (and then some)Russ Cox2-2/+2
Fixes issue 221. R=ken2 http://codereview.appspot.com/165086
2009-12-07test/bench: faster fasta (mostly due to bufio fix)Russ Cox1-18/+16
R=r http://codereview.appspot.com/165083 Committer: Russ Cox <rsc@golang.org>
2009-12-07runtime: don't touch pages of memory unnecessarily.Russ Cox8-45/+15
cuts working size for hello world from 6 MB to 1.2 MB. still some work to be done, but diminishing returns. R=r http://codereview.appspot.com/165080
2009-12-07runtime: introduce unsafe.New and unsafe.NewArrayRuss Cox7-38/+79
to provide functionality previously hacked in to reflect and gob. R=r http://codereview.appspot.com/165076
2009-12-07use a bootstrap array to avoid allocation for short vectorsRobert Griesemer2-16/+30
R=r http://codereview.appspot.com/165078
2009-12-07Remove copyBytes completely in favor of copy.Christopher Wedgwood1-11/+2
R=r, rsc http://codereview.appspot.com/165068 Committer: Rob Pike <r@golang.org>
2009-12-07pick off special one-byte case in copy. worth 2x in benchmarks (38ns->16ns).Rob Pike1-1/+5
the one-item case could be generalized easily with no cost. worth considering. R=rsc CC=golang-dev, cw http://codereview.appspot.com/167044
2009-12-07the AST walker currently provides no way to find out how theRoger Peppe2-57/+61
nodes in the tree are nested with respect to one another. a simple change to the Visitor interface makes it possible to do this (for example to maintain a current node-depth, or a knowledge of the name of the current function). Visit(nil) is called at the end of a node's children; this make possible the channel-based interface below, amongst other possibilities. It is still just as simple to get the original behaviour - just return the same Visitor from Visit. Here are a couple of possible Visitor types. // closure-based type FVisitor func(n interface{}) FVisitor func (f FVisitor) Visit(n interface{}) Visitor { return f(n); } // channel-based type CVisitor chan Visit; type Visit struct { node interface{}; reply chan CVisitor; }; func (v CVisitor) Visit(n interface{}) Visitor { if n == nil { close(v); } else { reply := make(chan CVisitor); v <- Visit{n, reply}; r := <-reply; if r == nil { return nil; } return r; } return nil; } R=gri CC=rsc http://codereview.appspot.com/166047 Committer: Robert Griesemer <gri@golang.org>
2009-12-07changes necessary to get the new chameneosredux onto ↵Roger Peppe2-3/+4
shootout.alioth.debian.org . it's now there: http://shootout.alioth.debian.org/u32q/benchmark.php?test=chameneosredux&lang=all&box=1! R=r, rsc CC=golang-dev http://codereview.appspot.com/167043 Committer: Russ Cox <rsc@golang.org>