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
Robert Griesemer
5f5dcfbc15
- gofmt these files
...
- remove use of implicit string concatenation
- these appear to be the only files correctly compiling under test
that used implicit string concatenation
R=rsc
https://golang.org/cl/172043
2009-12-09 16:55:03 -08:00
Robert Griesemer
2e4334eb3a
minor manual format corrections
...
R=rsc
https://golang.org/cl/172042
2009-12-09 16:54:24 -08:00
Robert Griesemer
295ceb4526
remove uses of string concatenation from src and misc directory
...
R=rsc
https://golang.org/cl/172041
2009-12-09 16:54:07 -08:00
Russ Cox
09cec0e146
hgtags: add release tag, again.
...
R=r
https://golang.org/cl/170049
2009-12-09 14:55:31 -08:00
Russ Cox
76bd476de1
hgtags: looks like they have to be full hashes
...
R=r
https://golang.org/cl/170048
2009-12-09 14:54:58 -08:00
Russ Cox
daf1676cab
hgtags: add release pointing at 2009-12-09's checkin.
...
R=r
https://golang.org/cl/170047
2009-12-09 14:48:56 -08:00
Russ Cox
c02e4ae41a
hgtags: tag release.2009-12-07 (where gccgo is)
...
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
https://golang.org/cl/171047
2009-12-09 14:47:29 -08:00
Russ Cox
5facb84770
doc/contribute: try to make it clearer that you send a review with hg mail, not hg submit.
...
R=r
https://golang.org/cl/171046
2009-12-09 14:39:41 -08:00
Roger Peppe
a8ed75d27c
added benchmarks to rand_test.go;
...
removed superfluous field name in lockedSource.
R=r, rsc
https://golang.org/cl/170043
2009-12-09 14:23:43 -08:00
Rob Pike
51f2932082
syscalls can return negative i/o counts. fix bugs in ReadAt and WriteAt not to include
...
negative counts in return values.
R=rsc
CC=golang-dev
https://golang.org/cl/170044
2009-12-09 14:18:32 -08:00
Russ Cox
d55abfd2c9
doc: split contribute.html into code.html and contribute.html
...
R=r
https://golang.org/cl/170042
2009-12-09 14:05:12 -08:00
Roger Peppe
916533119e
Make the operations on the global rng thread safe.
...
R=r, rsc
CC=golang-dev
https://golang.org/cl/168041
2009-12-09 12:55:19 -08:00
Charles L. Dorian
3ca1b1d27f
Continuation of issue 221 fix. When 8g or 6g or 5g are called with a
...
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
https://golang.org/cl/168045
2009-12-09 11:56:45 -08:00
Ross Light
8a5b76ce5c
json package: Fixed handling of nil values
...
Fixes #400 .
R=golang-dev, rsc
https://golang.org/cl/167058
2009-12-09 10:36:03 -08:00
Ross Light
7d7d95a160
Added my name to the AUTHORS and CONTRIBUTORS list
...
R=rsc
https://golang.org/cl/165101
2009-12-09 10:35:48 -08:00
Adrian O'Grady
6ebfd1eff2
Added XTEA block cipher package to src/pkg/crypto
...
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
https://golang.org/cl/157152
2009-12-09 00:06:20 -08:00
Russ Cox
0400a7f8b1
runtime: start new darwin/amd64 threads on correct stack,
...
then enable stack check.
R=r
https://golang.org/cl/165100
2009-12-08 23:34:45 -08:00
Russ Cox
aacb515668
A+C: two more names
...
Kei Son has completed the CLA.
Yves Junqueira is a Google employee.
R=r
https://golang.org/cl/167057
2009-12-08 18:20:06 -08:00
Russ Cox
132c42ff73
bufio: use copy - significant speedup for writers
...
R=r
https://golang.org/cl/167047
2009-12-08 18:19:48 -08:00
Devon H. O'Dell
5a4a08fab8
Fix stack on FreeBSD / add stack check across the board
...
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
https://golang.org/cl/167055
2009-12-08 18:19:30 -08:00
Devon H. O'Dell
cdce7325c8
When SA_SIGINFO is set, we should use __sa_sigaction on FreeBSD
...
R=rsc
CC=golang-dev
https://golang.org/cl/165097
2009-12-08 18:18:04 -08:00
Russ Cox
b73b43ea31
6l, 8l: make string buffer big enough for 8 chars (and then some)
...
Fixes #221 .
R=ken2
https://golang.org/cl/165086
2009-12-07 22:01:59 -08:00
Russ Cox
86c0c54d27
test/bench: faster fasta (mostly due to bufio fix)
...
R=r
https://golang.org/cl/165083
2009-12-07 19:39:09 -08:00
Russ Cox
0d3301a557
runtime: don't touch pages of memory unnecessarily.
...
cuts working size for hello world from 6 MB to 1.2 MB.
still some work to be done, but diminishing returns.
R=r
https://golang.org/cl/165080
2009-12-07 15:52:14 -08:00
Russ Cox
33649bd278
runtime: introduce unsafe.New and unsafe.NewArray
...
to provide functionality previously hacked in to
reflect and gob.
R=r
https://golang.org/cl/165076
2009-12-07 15:51:58 -08:00
Robert Griesemer
a4a8224152
use a bootstrap array to avoid allocation for short vectors
...
R=r
https://golang.org/cl/165078
2009-12-07 12:46:20 -08:00
Christopher Wedgwood
8c22dd24e0
Remove copyBytes completely in favor of copy.
...
R=r, rsc
https://golang.org/cl/165068
2009-12-07 11:31:56 -08:00
Rob Pike
20c1ec263a
pick off special one-byte case in copy. worth 2x in benchmarks (38ns->16ns).
...
the one-item case could be generalized easily with no cost. worth considering.
R=rsc
CC=golang-dev, cw
https://golang.org/cl/167044
2009-12-07 11:28:02 -08:00
Roger Peppe
80e17d6797
the AST walker currently provides no way to find out how the
...
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
https://golang.org/cl/166047
2009-12-07 10:33:45 -08:00
Roger Peppe
ea98e4b5e9
changes necessary to get the new chameneosredux onto 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
https://golang.org/cl/167043
2009-12-07 10:06:51 -08:00