- 07 Apr, 2009 6 commits
-
-
Rob Pike authored
6g says: bug138.go:8: constant -1 overflows uint gccgo says: bug138.go:8:16: error: integer constant overflow R=rsc DELTA=19 (0 added, 19 deleted, 0 changed) OCL=27099 CL=27149
-
Russ Cox authored
R=ken OCL=27145 CL=27145
-
Rob Pike authored
R=rsc DELTA=63 (59 added, 0 deleted, 4 changed) OCL=27143 CL=27143
-
Russ Cox authored
use Value() in print to print underlying value from interface. before: package main import "fmt" func main() { x := []interface{} {1, "hello", 2.5}; fmt.Println(x[0], x[1], x[2], x); } 1 hello 2.5 [<non-nil interface> <non-nil interface> <non-nil interface>] after: 1 hello 2.5 [1 hello 2.5] R=r DELTA=44 (22 added, 16 deleted, 6 changed) OCL=27139 CL=27141
-
Russ Cox authored
string(b)[0:n] instead of the more direct string(b[0:n]). convert to the more direct form. R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=27082 CL=27140
-
Peter McKenzie authored
R=r APPROVED=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27123 CL=27130
-
- 06 Apr, 2009 1 commit
-
-
David Symonds authored
Add a Data method to vector.Vector. R=r,rsc APPROVED=rsc DELTA=173 (170 added, 0 deleted, 3 changed) OCL=26980 CL=27098
-
- 04 Apr, 2009 1 commit
-
-
Russ Cox authored
* make([100]int) was being compiled to make([]int), kind of. * []this = [100]that was working for any this, that. turned up a typo in pipe_test.go R=ken OCL=27081 CL=27081
-
- 03 Apr, 2009 14 commits
-
-
Robert Griesemer authored
- godoc now supports the following url prefixes: /doc/ for package documentation /file/ for files (directories, html, and .go files) /spec for the spec /mem for the memory model - formatting of comments has been fixed - tons of minor cleanups (still more to do) Still missing: - pretty printing of source is not as pretty as it used to be (still a relict from the massive AST cleanup which has't quite made it's way everywhere) - documentation entries should be sorted - comments in code is not printed or not properly printed TBR=r DELTA=416 (182 added, 100 deleted, 134 changed) OCL=27078 CL=27078
-
Robert Griesemer authored
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27061 CL=27061
-
Rob Pike authored
(i'd be happy to drop the paren one as well, reducing it to one case) DELTA=4 (0 added, 3 deleted, 1 changed) OCL=27058 CL=27060
-
Robert Griesemer authored
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=27057 CL=27059
-
Robert Griesemer authored
(even if the methods are exported) R=rsc OCL=27056 CL=27056
-
Robert Griesemer authored
- fixed printing of function literals (require separating ";") R=rsc OCL=27055 CL=27055
-
Robert Griesemer authored
- use /src and /doc prefix in URL to distinguish output type (per rsc) - fixed a bug in an internal string function - ignore files ending in _test.go (consider them test files) R=rsc OCL=27054 CL=27054
-
Russ Cox authored
; cat >http.go package main import "http" // intended the library, not this file ^D ; 6g http.go ; 6g http.go http.go:4: export/package mismatch: init ; new error: http.6:7 http.go:3: cannot import package main R=ken OCL=27053 CL=27053
-
Russ Cox authored
was copying a bit too much about t into n, like whether the signature was queued to be printed. (bug reported by anton) was also editing t, meaning you could do type T int; func (p int) Meth() { } both fixed. R=ken OCL=27052 CL=27052
-
Russ Cox authored
this avoids problems people have run into with multiple closures in the same package. when preparing filename, only cut off .go, not .anything. this fixes a bug tgs ran into with foo.pb.go and foo.go in the same package. also turn bad identifier chars from filename into underscores: a-b.pb.go => a_b_pb R=ken OCL=27050 CL=27050
-
Robert Griesemer authored
first round of cleanups: - removed extra .html templates (reduced to one) - removed dependencies on various local files - minor fixes throughout Basic docserver is now operational: Automatically finds all (multi-file) packages under a root and serves either file or package documentation. R=r OCL=27049 CL=27049
-
Ken Thompson authored
the assignment on a type switch R=r OCL=27048 CL=27048
-
Russ Cox authored
package main func main() { func(){}() + + } x.go:2: syntax error near _f001 becomes x.go:2: syntax error near func R=ken OCL=27047 CL=27047
-
Russ Cox authored
turned it off while debugging 8 runtime problem, checked in the change accidentally. R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=27040 CL=27046
-
- 02 Apr, 2009 8 commits
-
-
Russ Cox authored
package main func main() { println("hello,", 123); } R=ken OCL=27043 CL=27043
-
Russ Cox authored
R=r DELTA=4 (4 added, 0 deleted, 0 changed) OCL=26983 CL=27041
-
Robert Griesemer authored
- renamed gds -> godoc - functionality to find and serve packages (to get a list of packages provide dir path + "?p") Next steps: cleanups, better formatting, fine-tuning of output R=r OCL=27037 CL=27039
-
Robert Griesemer authored
(this removes a lot of string() conversions down the road) - a few minor adjustments R=rsc DELTA=11 (0 added, 0 deleted, 11 changed) OCL=27029 CL=27038
-
Robert Griesemer authored
R=r OCL=27026 CL=27028
-
Robert Griesemer authored
- have explicit XSpec nodes for declarations - have a general GenDecl node instead of DeclList R=rsc DELTA=164 (52 added, 52 deleted, 60 changed) OCL=27005 CL=27027
-
Daniel Nadasi authored
R=r,rsc APPROVED=rsc DELTA=167 (166 added, 0 deleted, 1 changed) OCL=26982 CL=27017
-
Ken Thompson authored
twice instead of once. R=r OCL=27015 CL=27015
-
- 01 Apr, 2009 7 commits
-
-
Rob Pike authored
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27003 CL=27003
-
Robert Griesemer authored
- package headers - constants - variables - formatted comments Next steps: - sorted output - collection of all files belonging to a package - fine-tuning of output R=r OCL=26997 CL=26997
-
Russ Cox authored
the largest remaining source file in this directory. TBR=gri OCL=26984 CL=26984
-
Russ Cox authored
160 - 75 was just barely not enough for deferproc + morestack. added enum names and bumped to 256 - 128. added explanation. changed a few mal() (garbage-collected) to malloc()/free() (manually collected). R=ken OCL=26981 CL=26981
-
David Symonds authored
R=rsc APPROVED=rsc DELTA=4 (2 added, 2 deleted, 0 changed) OCL=26978 CL=26978
-
Robert Griesemer authored
R=r OCL=26974 CL=26976
-
Russ Cox authored
R=r DELTA=156 (149 added, 2 deleted, 5 changed) OCL=26973 CL=26973
-
- 31 Mar, 2009 3 commits
-
-
Robert Griesemer authored
- adjustments to match new ast/parser interface - removed printer.go; functionality now in astprinter.go and docprinter.go (more cleanups pending) - enabled new doc printing in gds (lots of fine tuning missing, but pieces falling into place; e.g. methods associated with types. Consts, Vars, to come. Collection of all files belonging to a package to come) R=r OCL=26970 CL=26972
-
Robert Griesemer authored
- minor adjustments as suggested by rsc 2) Added parser_test fragment 3) Renamed some types in AST.go per rsc request R=rsc DELTA=2053 (2027 added, 0 deleted, 26 changed) OCL=26963 CL=26971
-
Russ Cox authored
remove use of _subv in vlrt.c darwin/386/signal.c darwin/386/* linux/386/* (forgotten before) can run empty program on darwin/386 now. R=r DELTA=1140 (1021 added, 114 deleted, 5 changed) OCL=26942 CL=26968
-