aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-11-24release.2010-11-23weekly.2010-11-23Andrew Gerrand
R=nigeltao CC=golang-dev https://golang.org/cl/3293041
2010-11-23doc: add link to codewalks.Yves Junqueira
Fixes #1281. R=adg CC=golang-dev https://golang.org/cl/3150041
2010-11-23Documentation: how to write Makefiles for commands.Yves Junqueira
Fixes #1282. R=adg CC=golang-dev https://golang.org/cl/3152041
2010-11-22net: add ReadFrom and WriteTo windows version.Wei Guangjing
Fixes #1275. R=rsc, brainman CC=golang-dev https://golang.org/cl/3136042
2010-11-22gc: better error message for bad type in channel sendAnthony Martin
# test program 1 package main 2 3 type C chan int 4 5 func F(c C) { 6 c <- true 7 } # old error test.go:6: cannot use true (type bool) as type int in function argument # new error test.go:6: cannot use true (type bool) as type int in channel send R=rsc, ejsherry CC=golang-dev https://golang.org/cl/3231042
2010-11-20position.go: more flexible AddFile methodRobert Griesemer
This will make it easier to use Pos values together with suffix arrays by slightly de- coupling the mapping of Pos values to global offsets. R=rsc CC=golang-dev https://golang.org/cl/3231041
2010-11-20more on dynamic hash in compound literals.Ken Thompson
thanks to vskrap, andrey mirtchovski, and Eoghan Sherry. R=rsc CC=golang-dev https://golang.org/cl/3245041
2010-11-19godoc: use correct time stamp to indicate accuracy of search resultRobert Griesemer
- compare against fsModified to check if index is out of date - don't change fsModified if there are no user-mapped file systems R=rsc, iant CC=golang-dev https://golang.org/cl/3213041
2010-11-19 crypto/cipher: add CFB and OCFB mode.Adam Langley
(Files which I left out of the initial commit to keep it small.) R=rsc CC=golang-dev https://golang.org/cl/3183043
2010-11-19index/suffixarray: use sort.SearchRuss Cox
R=gri CC=golang-dev https://golang.org/cl/3200041
2010-11-19crypto/cipher: add packageAdam Langley
cipher is intended to replace crypto/block over time. This change only adds basic parts: CBC and CTR mode and doesn't add the package to the top-level Makefile. R=r, rsc CC=golang-dev https://golang.org/cl/3069041
2010-11-18godoc: compute search index for all file systems under godoc's observationRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/3209041
2010-11-18adjustable hash code inKen Thompson
typecheck of composit literals to get rid of n^2 behavior. R=rsc CC=golang-dev https://golang.org/cl/3208041
2010-11-18Makefiles: Don't define _64BIT now that 6c does it by default.Ian Lance Taylor
R=rsc CC=golang-dev https://golang.org/cl/3207041
2010-11-18cgo: Print required space after parameter name in wrapper function.Ian Lance Taylor
R=rsc, gri CC=golang-dev https://golang.org/cl/3206041
2010-11-186c: automatically #define _64BIT.Ian Lance Taylor
This makes it much easier to use a tool like Swig which needs to run either 8c or 6c on generated code which #include's "runtime.h". R=ken2, rsc CC=golang-dev https://golang.org/cl/3205041
2010-11-18sort: invert meaning of f in SearchRuss Cox
Backwards incompatible change, but makes it easier to reason about non-idiomatic searches: now f specifies what is sought. R=gri CC=golang-dev https://golang.org/cl/3195042
2010-11-18sort: edit doc comment for SearchRuss Cox
Change comment to be more generic, with indexed data structure search as one common use case. Fix typo []data. R=gri, rog CC=golang-dev https://golang.org/cl/3159041
2010-11-18rpc: add RegisterName to allow override of default type nameAndrew Gerrand
R=r, r2 CC=golang-dev https://golang.org/cl/2890041
2010-11-17go/token position: code improvements per rsc's suggestionRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/3183041
2010-11-17position.go: test cases for token.PosRobert Griesemer
- adjustments to position.go due to changed sort.Search semantics - various minor fixes R=rsc CC=golang-dev, r https://golang.org/cl/3079041
2010-11-17godoc: bug fix in relativePathRobert Griesemer
This fixes a problem with relativePath, where a prefix was not recognized because it ended in "//" as opposed to just "/". Also: Minor unrelated cleanup of a declaration. R=rsc CC=golang-dev https://golang.org/cl/3146041
2010-11-12token/position: implemented PosRobert Griesemer
A pos value represents a file-set specific, accurate source position value. It is 8x smaller in size than the corresponding Position value (4 bytes vs 32 bytes). Using Pos values instead of Position values in AST saves approx. 25MBytes of memory when running godoc on the current repository. This CL introduces the Pos, File, and FileSet data types; it does not affect existing code. Another (pending CL) will make the change to all dependent source files. Missing: tests R=r CC=golang-dev, rsc https://golang.org/cl/2936041
2010-11-13exec: enable tests on windowsAlex Brainman
Fixes #1104. R=golang-dev, mattn, r CC=Joe Poirier, golang-dev https://golang.org/cl/3051041
2010-11-12sort.Search: slightly more precise wording in commentRobert Griesemer
(+ some cosmetic changes) R=iant, iant2 CC=golang-dev https://golang.org/cl/3076041
2010-11-12sort: simplify semantics of Search.Roger Peppe
As discussed earlier. R=gri CC=golang-dev https://golang.org/cl/3025042
2010-11-12 Remove unnecessary casts in Get() methods.Kyle Consalus
Cleaner, but also results in a 25%+ performance improvement for Get()/SetValue() on my machine. R=golang-dev, r CC=golang-dev https://golang.org/cl/3072041
2010-11-12arm is not little-endianKen Thompson
R=rob CC=golang-dev https://golang.org/cl/3075041
2010-11-12strings: add LastIndexAnyBenny Siegert
The need for a LastIndexAny function has come up in the discussion for https://golang.org/cl/3008041/. This function is implemented analogously to lastIndexFunc, using functions from the utf8 package. R=r, rsc, PeterGo CC=golang-dev https://golang.org/cl/3057041
2010-11-12gc: fix arm buildRob Pike
R=ken2 CC=golang-dev https://golang.org/cl/3074041
2010-11-12crypto/elliptic: add packageAdam Langley
elliptic implements several standard elliptic curves over prime fields. R=r, r2 CC=golang-dev https://golang.org/cl/3065041
2010-11-12Fixed recover() documentation.Anschel Schaffer-Cohen
Added a "return" to the end of an example which previously threw a compile error if used. R=golang-dev, gri CC=golang-dev https://golang.org/cl/3052041
2010-11-11last of the arm conversionsKen Thompson
R=rsc CC=golang-dev https://golang.org/cl/3053041
2010-11-11sort.Search: added extra test to verify efficiencyRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/3048041
2010-11-11sort.Search: more typosRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/3042041
2010-11-11 crypto/x509: policy OID support and fixes.Adam Langley
* Add support for certificate policy identifiers * Fix the version number of generated certificates * Fix the parsing of version numbers * Fix the case of multiple name entries (it should have been a list of tagged values, not a tagged list of values). R=r CC=golang-dev https://golang.org/cl/3044041
2010-11-11sort.Search: fix typo in documentationRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/3016043
2010-11-11runtime: free memory allocated by windows CommandLineToArgvAlex Brainman
R=golang-dev, r2 CC=golang-dev https://golang.org/cl/3003043
2010-11-10runtime: omit runtimeĀ· prefix from static functions (in ARM code).Ian Lance Taylor
R=r CC=golang-dev https://golang.org/cl/3026041
2010-11-10runtime: Add some missing runtimeĀ· prefixes to ARM asm code.Ian Lance Taylor
R=r, r2 CC=golang-dev https://golang.org/cl/3024041
2010-11-10release part 2Rob Pike
R=gri CC=golang-dev https://golang.org/cl/2986042
2010-11-10release step 1weekly.2010-11-10Rob Pike
R=gri CC=golang-dev https://golang.org/cl/3022041
2010-11-10path: Fix Glob when it finds a file in directory position.Ian Lance Taylor
When searching a list of directories, the files which match the pattern are accumulated in a slice. If the glob has a wildcard for the directory, and the wildcard matches a file rather than a directory, then the files found so far are discarded. E.g., path.Glob("*/x") in a directory which contains both files and subdirectories. This patch avoids discarding matches found so far when a file is found. R=r CC=bsiegert, golang-dev https://golang.org/cl/3015042
2010-11-10sort: binary search for sorted slicesRobert Griesemer
R=r, r2 CC=golang-dev https://golang.org/cl/2997041
2010-11-10testing: delete redundant name argument to Benchmark().Roger Peppe
[it was a carry over from the previous iteration] R=r CC=golang-dev https://golang.org/cl/3016041
2010-11-09fix error converting result of complexKen Thompson
division. resolves issue 1261. R=rsc CC=golang-dev https://golang.org/cl/2985043
2010-11-09go/ast: change embedded token.Position fields to named fieldsRobert Griesemer
This is in preparation for a different position representation. It also resolves situations where a node would be printed as it's node position simply because the embedded token.Position has a String method. R=r CC=golang-dev https://golang.org/cl/2991041
2010-11-09doc: fix go_spec spelling errorsPeter Mundy
R=gri CC=golang-dev https://golang.org/cl/2970042
2010-11-09container/list: make Remove return Value of removed element.Roger Peppe
When it is known that there is already at least one element in the list, it is awkwardly verbose to use three lines and an extra variable declaration to remove the first or last item (a common case), rather than use a simple expression. a stack: stk.PushFront(x) x = stk.Front().Remove().(T) vs. stk.PushFront(x) e := stk.Front() e.Remove() x = e.Value.(T) [An alternative CL might be to add PopFront and PopBack methods]. R=gri CC=golang-dev https://golang.org/cl/3000041
2010-11-09doc: fix go_spec spelling errorPeter Mundy
R=rsc, gri CC=golang-dev https://golang.org/cl/2985041