aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-13release.2011-01-12weekly.2011-01-12Andrew Gerrand
R=r CC=golang-dev https://golang.org/cl/3972041
2011-01-12disable arm registifier for the momentRob Pike
R=ken2, ken3 CC=golang-dev https://golang.org/cl/3970041
2011-01-12rpc: export names in debug service so it works with template changesRob Pike
R=dsymonds CC=golang-dev https://golang.org/cl/3760049
2011-01-12goinstall: Fix template to use exported fieldsGustavo Niemeyer
It's currently broken due to f6d5bac536c5. R=r, r2 CC=golang-dev https://golang.org/cl/3967041
2011-01-12encoding/line: fix error call (missing argument)Rob Pike
R=agl1, rsc CC=golang-dev https://golang.org/cl/3861044
2011-01-12template: give "unexported" error when accessing an unexported field.Rob Pike
R=adg, rsc CC=golang-dev https://golang.org/cl/3903043
2011-01-11suffixarray: faster creation algorithmEric Eisner
This implements the algorithm qsufsort using the sort package as a sorting primitive. Its worst-case performance is O(N*log(N)), and it uses only an additional slice of N ints of memory during creation. Benchmarks (seconds): old new 10k nulls 149 0.044 1M English corpus 32.0 3.6 R=gri, gri1 CC=golang-dev https://golang.org/cl/3752044
2011-01-11C&A for Eric EisnerRob Pike
there is something funny in the database; trying to recreate the change. R=gri CC=golang-dev https://golang.org/cl/3900044
2011-01-11godoc: remove TODO (bug257.go can now be indexed)Robert Griesemer
Pending CL 3752044. R=r, r2 CC=golang-dev https://golang.org/cl/3949042
2011-01-12hg: add cgo/_cgo_* to .hgignore.Nigel Tao
R=rsc, nigeltao_gnome CC=golang-dev https://golang.org/cl/3956042
2011-01-12net: use closesocket api instead of CloseHandle on WindowsAlex Brainman
thanks to piotrnar for the original CL. Fixes #1371. R=rsc CC=golang-dev https://golang.org/cl/3834042
2011-01-11gob: make (en|dec)code(Ui|I)nt methods rather than functions.Rob Pike
No functional (ha!) change. R=rsc CC=golang-dev https://golang.org/cl/3959041
2011-01-11crypto/openpgp: add error and armorAdam Langley
error is needed by all the OpenPGP packages as they return a shared family of error types. armor implements OpenPGP armoring. It's very like PEM except: a) it includes a CRC24 checksum b) PEM values are small (a few KB) and so encoding/pem assumes that they fit in memory. Armored data can be very large and so this package presents a streaming interface. R=r, nsz, rsc CC=golang-dev https://golang.org/cl/3786043
2011-01-11crypto: add twofish packageBerengar Lehr
The code was (as annotated in the source code) adopted from Tom's LibCrypt (public domain code, [1]). It was neither optimised for speed nor were any security features added. [1] http://libtom.org/?page=features&newsitems=5&whatfile=crypt R=rsc, berengarlehr, albert.strasheim, agl1 CC=golang-dev, schulze https://golang.org/cl/2687042
2011-01-11turn off peep half of optimizer for releaseKen Thompson
R=r CC=golang-dev https://golang.org/cl/3919043
2011-01-12json: do not Marshal unexported struct fieldsAndrew Gerrand
R=r, cw, niemeyer, rsc CC=golang-dev https://golang.org/cl/3952041
2011-01-12runtime: revert 6974:1f3c3696babbAlex Brainman
I missed that environment is used during runtime setup, well before go init() functions run. Implemented os-dependent runtime.goenvs functions to allow for different unix, plan9 and windows versions of environment discovery. R=rsc, paulzhol CC=golang-dev https://golang.org/cl/3787046
2011-01-12os: add Sync to *File, wraps syscall.FsyncAndrew Gerrand
R=rsc, brainman, r, r2 CC=golang-dev https://golang.org/cl/3887042
2011-01-11template: allow accesses only to exported fields and methodsRob Pike
R=rsc, gri CC=golang-dev https://golang.org/cl/3890042
2011-01-11ld: Fix exported dynamic symbols on 386 Mach-O.Ian Lance Taylor
R=rsc CC=golang-dev https://golang.org/cl/3948043
2011-01-11http: fix text displayed in RedirectRuss Cox
In the case where r.Method == "POST", was calling Printf with an argument but "" format string, causing a spurious %!EXTRA(...) message. Also escape string properly in HTML generation. R=r CC=golang-dev https://golang.org/cl/3923043
2011-01-11ld: Fix exported dynamic symbols on Mach-O.Ian Lance Taylor
* Avoid confusion between imported and exported symbols. * Record number of imported and exported symbols correctly. * Explictly relocate SMACHOSYM section, since it is not in datap. R=rsc CC=golang-dev https://golang.org/cl/3920042
2011-01-11gob: do not encode or decode unexported fieldsRob Pike
Such fields are simply ignored. R=rsc, r2 CC=golang-dev https://golang.org/cl/3889043
2011-01-11netchan: make fields public for pending gob changeRob Pike
R=rsc CC=golang-dev https://golang.org/cl/3882042
2011-01-11syscall: fix mksysnum_linux.shAnthony Martin
A few system call numbers on x86 Linux are defined in terms of a previous definition, e.g., #define __NR_timer_create 259 #define __NR_timer_settime (__NR_timer_create+1) ... #define __NR_mq_open 277 #define __NR_mq_unlink (__NR_mq_open+1) This change assumes the numbers are sorted sequentially in the input file. R=rsc, bradfitzwork CC=golang-dev https://golang.org/cl/3946041
2011-01-11ld: Permit an Mach-O symbol to be exported in the dynamic symbol table.Ian Lance Taylor
Submitting TBR to fix Darwin build. R=rsc TBR=rsc CC=golang-dev https://golang.org/cl/3912043
2011-01-11goinstall: preliminary support for cgo packagesGustavo Niemeyer
Can handle cgo packages now but only if they do not need to set CGO_LDFLAGS and CGO_CFLAGS. R=adg, rsc CC=golang-dev https://golang.org/cl/3891042
2011-01-11log: add methods for exit and panicRob Pike
There were already functions for the standard logger; this just completes the set. R=rsc, adg CC=golang-dev https://golang.org/cl/3901043
2011-01-11runtime/cgo: Add callbacks to support SWIG.Ian Lance Taylor
R=rsc, iant2, r CC=golang-dev https://golang.org/cl/3886041
2011-01-11godefs: better handling of enumsRuss Cox
Fixes #432. R=r, r2 CC=golang-dev https://golang.org/cl/3869043
2011-01-11cgo: export unsafe.Pointer as void*Gustavo Niemeyer
This will enable functions which use unsafe.Pointer as an argument to be correctly exported by cgo. R=rsc CC=golang-dev https://golang.org/cl/3849043
2011-01-11cgo: output alignment fixGustavo Niemeyer
R=rsc CC=golang-dev https://golang.org/cl/3902044
2011-01-11cgo: fix enum const conflictGustavo Niemeyer
This change prevents enum consts from conflicting with themselves when loaded twice in different go files. Fixes #1400. R=rsc CC=golang-dev https://golang.org/cl/3849044
2011-01-10godoc: support for regular expression full text searchRobert Griesemer
Regular expressions may now be used in conjuction with full text search. Godoc will show the first 10000 occurences in the source code and highlight the respective text segments. - added new flag -testDir to specify a small directory for testing (fast index creation; default = "") - use new FormatText function to format text and Go source code in HTML, supporting multiple kinds of text selections simulatenously); this replaces the uses of go/printer Stylers - for now removed currently unused mechanism for identifier- specific JS popups (will come back in some form once we have type or other useful information) - various typo fixes and minor cleanups throughout Missing: - indexing of non-.go files R=r, r2 CC=golang-dev, rsc https://golang.org/cl/3699041
2011-01-10go spec: remove Maxalign from specRobert Griesemer
Fixes #1285. R=r, rsc, iant, ken2, r2 CC=golang-dev https://golang.org/cl/3918041
2011-01-10arm optimizer bug fixesKen Thompson
R=rsc CC=golang-dev https://golang.org/cl/3913043
2011-01-10time: add AfterFunc to call a function after a given duration.Roger Peppe
The After code is trivially generalisable to provide support for this, and it is possible to use AfterFunc to do things that After cannot, such as waiting for many events at varied times without an overhead of one goroutine per event. R=rsc, r CC=golang-dev https://golang.org/cl/3905041
2011-01-10go/ast: correct end position for Index and TypeAssert expressionsRobert Griesemer
- added position information for [ and ] brackets of Index and Slice expression nodes - removed a TODO in go/printer R=r, rsc CC=golang-dev https://golang.org/cl/3867045
2011-01-09bytes: fix TrimSpace typoPeter Mundy
Fixes #1401. R=golang-dev, agl1 CC=golang-dev https://golang.org/cl/3937041
2011-01-08time: fix tick accuracy when using multiple TickersEoghan Sherry
* correctly ignore obsolete ticks * fix update of next alarm time * tighten alarm channel buffers Fixes #1379. R=r, adg, r2 CC=golang-dev, soul9 https://golang.org/cl/3789045
2011-01-08doc: contribution copyright year 2011Peter Mundy
R=r CC=golang-dev https://golang.org/cl/3907042
2011-01-08runtime: Restore scheduler stack position if cgo callback panics.Ian Lance Taylor
If we don't do this, then when C code calls back to Go code which panics, we lose space on the scheduler stack. If that happens a lot, eventually there is no space left on the scheduler stack. R=rsc CC=golang-dev https://golang.org/cl/3898042
2011-01-08encoding/line: addAdam Langley
I needed a way to read lines without worrying about \n and \r\n. R=r, rsc CC=golang-dev https://golang.org/cl/2859041
2011-01-07add peepKen Thompson
R=rsc CC=golang-dev https://golang.org/cl/3902042
2011-01-07initial cut at arm optimizerKen Thompson
R=rsc CC=golang-dev https://golang.org/cl/3921041
2011-01-07arm: fix buildRob Pike
previous version was built with -l32; should be -b32 R=ken CC=golang-dev https://golang.org/cl/3867044
2011-01-07gofmt: don't attempt certain illegal rewritesRobert Griesemer
(e.g.: echo 'package main' | gofmt -r 'x->7' cannot change the package name to 7) R=rsc CC=golang-dev https://golang.org/cl/3913041
2011-01-07time.NewTicker: panic for intervals <= 0.Rob Pike
Not absolutely certain it's right to do this, but since there's no error value coming back, it seems reasonable. Fixes #1392. R=rsc, adg CC=golang-dev https://golang.org/cl/3896042
2011-01-07bytes.Buffer: Fix bug in UnreadByte.Rob Pike
Error check was inverted. Fixes #1396. R=rsc, adg CC=golang-dev https://golang.org/cl/3851042
2011-01-07gofmt: rewriter matches apply to expressions onlyRobert Griesemer
Fixes #1384. R=rsc CC=golang-dev https://golang.org/cl/3912041