Mikio Hara
7ec69c179d
gofmt -s -w src
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3592041
2010-12-11 13:49:45 -08:00
Robert Griesemer
055650daa4
godoc: first cut at textual search
...
To enable use -fulltext flag; e.g.: godoc -v -fulltext -http=:7777
Enabling the fulltext index will use significantly more memory as
the text of all source code, the respective suffixarray, and the
file set data structure is kept in memory. At the moment there is
about 6Mb of source code (~1400 files) indexed under GOROOT.
Source code + suffix array together consume 5*(size of source) or
about 30Mb. The file set data structure consumes about 4b/src line.
By default only up to 5000 results are shown for now.
The presentation of the results needs tuning. In particular,
if a string is found, clicking on the respective file does not
highlight them, yet.
At the moment, only Go source files are indexed. Eventually,
the full text index should encompass other files as well.
R=rsc, adg
CC=golang-dev
https://golang.org/cl/3182043
2010-12-10 14:40:22 -08:00
Russ Cox
9282a768cf
math: s/MinFloat/SmallestNonzeroFloat/
...
R=r, gri
CC=golang-dev
https://golang.org/cl/3547042
2010-12-10 11:39:09 -08:00
Russ Cox
e454af4d64
cgo: avoid self-interference of global names
...
Fixes #1332 .
R=iant, iant2
CC=golang-dev
https://golang.org/cl/3555041
2010-12-10 11:32:58 -08:00
Russ Cox
4324a31376
nm: silently ignore .o files in .a files
...
Update #1334 .
R=r
CC=golang-dev
https://golang.org/cl/3553041
2010-12-10 11:32:48 -08:00
Nigel Tao
71bd053ada
html: parse <table><tr><td> tags.
...
Also, shorten fooInsertionMode to fooIM.
R=gri
CC=golang-dev
https://golang.org/cl/3504042
2010-12-10 12:20:14 +11:00
Ryan Hitchman
8959851a96
os: make MkdirAll work with symlinks
...
Fixes #1149 .
R=adg
CC=golang-dev
https://golang.org/cl/3564041
2010-12-10 10:43:45 +11:00
Ken Thompson
ae60526848
arm floating point simulation
...
R=rsc
CC=golang-dev
https://golang.org/cl/3565041
2010-12-09 14:45:27 -08:00
Andrew Gerrand
aa9c213e56
http: ServeFile to handle Range header for partial requests
...
and send Content-Length.
Also includes some testing of the server code.
R=rsc
CC=golang-dev
https://golang.org/cl/2831041
2010-12-10 08:51:13 +11:00
Andrew Gerrand
8984fa8fce
dashboard: fix project tag filter
...
R=rsc
CC=golang-dev
https://golang.org/cl/3439043
2010-12-10 08:29:34 +11:00
Rob Pike
e3b6188ca2
tutorial: a couple of minor fixes.
...
Fixes #1333 .
R=rsc, gri
CC=golang-dev
https://golang.org/cl/3556041
2010-12-09 16:18:31 -05:00
Nigel Kerr
27f2d5ce8c
xml: disallow invalid Unicode code points
...
Fixes #1259 .
R=rsc
CC=golang-dev
https://golang.org/cl/2967041
2010-12-09 14:51:01 -05:00
Russ Cox
3e2231e41f
A+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)
...
R=r
CC=golang-dev, lstoakes, nk
https://golang.org/cl/3549041
2010-12-09 14:49:21 -05:00
Russ Cox
92b4506f73
os: fix test of RemoveAll
...
Fixes #22 . (again)
R=r
CC=golang-dev
https://golang.org/cl/3547041
2010-12-09 14:49:13 -05:00
Mikio Hara
6555cfc6c6
syscall: add network interface constants for linux/386, linux/amd64
...
R=rsc
CC=golang-dev
https://golang.org/cl/3266042
2010-12-09 13:55:59 -05:00
Ryan Hitchman
f980577064
gc: syntax error for incomplete chan type
...
Fixes #932 .
R=rsc
CC=golang-dev
https://golang.org/cl/3515041
2010-12-09 13:41:24 -05:00
Robert Griesemer
e1d6b3c98d
go/ast: fix ast.Walk
...
- change Walk signature to use an ast.Node instead of interface{}
- add Pos functions to a couple of ast types to make them proper nodes
- explicit nil checks where a node can be nil; incorrect ASTs cause Walk to crash
For now ast.Walk is exercised extensively as part of godoc's indexer;
so we have some confidence in its correctness. But this needs a test,
eventually.
Fixes #1326 .
R=rsc, r
CC=golang-dev
https://golang.org/cl/3481043
2010-12-09 10:22:01 -08:00
Robert Griesemer
e2da3b6498
gofmt: simplify "x, _ = range y" to "x = range y"
...
(inspired by CL 3529041 by hitchmanr@gmail.com )
R=rsc
CC=golang-dev
https://golang.org/cl/3527042
2010-12-09 10:11:57 -08:00
Balazs Lecz
2bdb2e78fe
os/inotify: new package
...
This patch adds a new package: os/inotify, which
provides a Go wrapper to the Linux inotify system.
R=rsc, albert.strasheim, rog, jacek.masiulaniec
CC=golang-dev
https://golang.org/cl/2049043
2010-12-09 13:11:39 -05:00
Robert Griesemer
b98fffe39e
go/token,scanner: fix comments so godoc aligns properly
...
R=iant, r2
CC=golang-dev
https://golang.org/cl/3532042
2010-12-09 10:11:00 -08:00
Rob Pike
8e609cddef
govet: a new static checker for Go programs.
...
At the moment, and for the forseeable future, it only checks arguments to print calls.
R=rsc, gri, niemeyer, iant2, rog, lstoakes, jacek.masiulaniec, cw
CC=golang-dev
https://golang.org/cl/3522041
2010-12-09 12:37:18 -05:00
Rob Pike
b7c73110b1
gob: fix bug sending zero-length top-level slices and maps
...
Fixes #1278 .
R=rsc
CC=golang-dev
https://golang.org/cl/3434046
2010-12-09 11:01:32 -05:00
Ryan Hitchman
062406bc64
throughout: simplify two-variable ranges with unused second variable
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3529041
2010-12-08 21:36:56 -08:00
Rob Pike
14804a412b
event.go: another print glitch from gocheck.
...
R=rsc
CC=golang-dev
https://golang.org/cl/3524041
2010-12-08 17:12:25 -05:00
Andrew Gerrand
affd1ba94e
doc: fix invalid id attribute in faq
...
R=r
CC=golang-dev
https://golang.org/cl/3516042
2010-12-09 08:59:29 +11:00
Russ Cox
85d9ab61d2
arm: more fixes
...
R=ken2
CC=golang-dev
https://golang.org/cl/3523041
2010-12-08 16:49:49 -05:00
Russ Cox
7eeebf49be
runtime/cgo: adapt files copied from libcgo
...
Necessary but not sufficient step toward
making those builds work.
R=r
CC=golang-dev
https://golang.org/cl/3411043
2010-12-08 16:35:05 -05:00
Rob Pike
70113b436e
a few more errors caught by the print checker
...
R=rsc
CC=golang-dev
https://golang.org/cl/3431046
2010-12-08 16:25:14 -05:00
Russ Cox
839abc2ea7
5l (and 6l, 8l, ld): more arm build fixes
...
R=ken2
CC=golang-dev
https://golang.org/cl/3521041
2010-12-08 15:44:59 -05:00
Russ Cox
b8562ff488
5l: fix build
...
Makes 5l build with recent changes, but not yet tested on ARM hardware.
R=ken2
CC=golang-dev
https://golang.org/cl/3449044
2010-12-08 15:37:51 -05:00
Adam Langley
3a5efdf230
crypto/elliptic: remove mistakenly commited code
...
One of my own experiments ended up getting mistakenly commited when
switching to Jacobian transformations.
R=rsc
CC=golang-dev
https://golang.org/cl/3473044
2010-12-08 15:01:53 -05:00
Russ Cox
5a8f2ba727
fix build: more libcgo references
...
R=r
CC=golang-dev
https://golang.org/cl/3448043
2010-12-08 14:36:45 -05:00
Russ Cox
98b2d7062e
libcgo: delete (replaced by runtime/cgo)
...
Move unported files (freebsd*, windows*, nacl*) to runtime/cgo.
Step toward fixing FreeBSD build.
R=r
TBR=r
CC=golang-dev
https://golang.org/cl/3497042
2010-12-08 14:33:17 -05:00
Russ Cox
66f7463e80
syscall: fix linux/arm build
...
bug introduced at
https://golang.org/cl/2331044
R=ken2
CC=golang-dev
https://golang.org/cl/3440046
2010-12-08 14:31:46 -05:00
Russ Cox
b07b04d35f
runtime/cgo: take 2
...
This is a second attempt at submitting
https://golang.org/cl/3420043
A Mercurial problem lost the new files
in that submit.
TBR=r
CC=golang-dev
https://golang.org/cl/3511043
2010-12-08 14:10:00 -05:00
Russ Cox
14d677ecba
cgo: new cgo
...
Very few changes here: the subtle ones are in Make.pkg.
Note that incredibly (and importantly) there are
no changes necessary to the test programs in misc/cgo.
R=iant
CC=golang-dev
https://golang.org/cl/3504041
2010-12-08 13:56:51 -05:00
Russ Cox
f5690004c2
6l, 8l: support for linking ELF and Mach-O .o files
...
More support for references to dynamic symbols,
including full GOT and PLT for ELF objects.
For Mach-O everything ends up in the GOT: dealing
with the real lazy PLT is too hard for now so we punt.
R=iant, iant2
CC=golang-dev
https://golang.org/cl/3491042
2010-12-08 13:56:43 -05:00
Russ Cox
9042c2ce68
runtime/cgo: runtime changes for new cgo
...
Formerly known as libcgo.
Almost no code here is changing; the diffs
are shown relative to the originals in libcgo.
R=r
CC=golang-dev
https://golang.org/cl/3420043
2010-12-08 13:53:30 -05:00
Russ Cox
cf42a45587
ld: reading of Mach-O object files
...
R=iant
CC=golang-dev
https://golang.org/cl/3431045
2010-12-08 13:53:24 -05:00
Russ Cox
37499ebcfd
debug/elf, debug/macho: add ImportedLibraries, ImportedSymbols
...
R=r, iant
CC=golang-dev
https://golang.org/cl/3470044
2010-12-08 13:53:19 -05:00
Russ Cox
f16c280fe5
gopack: allow ELF/Mach-O objects in .a files without clearing allobj
...
R=iant
CC=golang-dev
https://golang.org/cl/3503041
2010-12-08 13:53:13 -05:00
Russ Cox
8132f1d016
6l, 8l: minor changes & cleanup
...
R=ken2, ken3
CC=golang-dev
https://golang.org/cl/3505041
2010-12-08 13:53:07 -05:00
Russ Cox
4d8d6d5cda
ld: reading of ELF object files
...
R=iant
CC=golang-dev
https://golang.org/cl/3507041
2010-12-08 13:52:59 -05:00
Russ Cox
7431a3165e
ld: re-add ELF symbol tables
...
R=iant
CC=golang-dev
https://golang.org/cl/3506041
2010-12-08 13:52:50 -05:00
Rob Pike
0313ea80ab
path: fix printf glitch in test
...
R=rh, gri
CC=golang-dev
https://golang.org/cl/3514041
2010-12-08 09:58:46 -05:00
Peter Mundy
c17394df31
doc: fix installation $GOOS choices
...
The $GOOS choices text and combinations list should match.
R=adg
CC=golang-dev
https://golang.org/cl/3485046
2010-12-08 20:27:45 +11:00
Robert Griesemer
4ba27e27f3
godoc: use file instead of file set for computing line info
...
Reduces indexing time by ~10%; from ~44s to ~39s, best of 3 runs.
R=rsc
CC=golang-dev
https://golang.org/cl/3510041
2010-12-07 21:55:32 -08:00
Robert Griesemer
1612b8734a
token/position.go: provide FileSet.File(), minor optimizations
...
R=rsc
CC=golang-dev
https://golang.org/cl/3399042
2010-12-07 21:50:08 -08:00
Alex Brainman
1e2876469b
syscall: restrict access rights param of OpenProcess() to the minimum needed
...
Fixes #1270 .
R=vcc, rsc
CC=golang-dev
https://golang.org/cl/3299041
2010-12-08 16:20:30 +11:00
Andrew Gerrand
95c7adb050
tag release.2010-12-08
...
R=rsc
CC=golang-dev
https://golang.org/cl/3426042
2010-12-08 14:30:44 +11:00