Russ Cox
dee5ad5c24
godocs.js: fix bad variable name
...
Thanks to anno.langen.
Fixes #103 .
R=r
https://golang.org/cl/155050
2009-11-15 12:57:33 -08:00
Russ Cox
cc3524fb06
makefiles: use correct gcc order in case --as-needed is in use.
...
Suggested by eostapets.
Fixes #141 .
R=r
https://golang.org/cl/155049
2009-11-15 12:57:28 -08:00
Russ Cox
0238fd836f
cgo: arrange for English error messages
...
Fixes #21 .
R=r
https://golang.org/cl/155048
2009-11-15 12:57:21 -08:00
Russ Cox
091191336a
runtime: avoid crash in Caller
...
Fixes #176 .
R=r
https://golang.org/cl/154146
2009-11-15 12:57:15 -08:00
Russ Cox
a338231526
gc: five bug fixes, one better error.
...
* check for struct literal assignment to private fields.
* record, fix crash involving parallel map assignment.
* avoid infinite recursion in exportassignok.
* make floating point bounds check precise.
* avoid crash on invalid receiver.
* add context to error about implicit assignment.
Fixes #86 .
Fixes #88 .
Fixes #158 .
Fixes #174 .
Fixes #201 .
Fixes #204 .
R=ken2
https://golang.org/cl/154144
2009-11-15 12:57:09 -08:00
Russ Cox
a967f57d19
http.URLEscape: escape all bytes required by RFC 2396
...
Fixes #125 .
R=r
https://golang.org/cl/154143
2009-11-15 12:56:50 -08:00
Russ Cox
2a6bb2c63e
gotest: show the test file pattern in "no test files" error
...
Fixes #190 .
R=r
https://golang.org/cl/154142
2009-11-15 12:56:39 -08:00
Rob Pike
029c39f45a
fix some typos in the documentation
...
Fixes #196 .
R=rsc
https://golang.org/cl/154152
2009-11-15 12:09:59 -08:00
Rob Pike
27779dd6cb
fix bug in bytes.Map and add test cases for Map in both strings and bytes packages.
...
thanks to ulrik.sverdrup for the test case.
Fixes #191 .
R=rsc
CC=golang-dev
https://golang.org/cl/155056
2009-11-15 12:07:27 -08:00
Robert Griesemer
13ad5d40c4
Use // to start comment instead of #.
...
Fixes #189 .
R=r
CC=rsc
https://golang.org/cl/155055
2009-11-15 11:33:20 -08:00
Russ Cox
b18bee948e
cc: drop redundant strcpy
...
Fixes #192 .
R=ken2
https://golang.org/cl/155047
2009-11-15 00:00:05 -08:00
Russ Cox
139a053733
cc: eliminate two fixed-size buffers
...
Fixes bug 168.
Alternative to https://golang.org/cl/152143 .
R=ken2
https://golang.org/cl/155042
2009-11-14 23:25:55 -08:00
Kai Backman
529216fa83
complain if GOARCH != arm. fix build break caused by gomake
...
introduction.
R=rsc
https://golang.org/cl/152109
2009-11-14 23:08:22 -08:00
Adam Langley
ad05d29103
crypto/rsa: handle the case of non-coprime blinds.
...
We are dealing with the multiplicative group ℤ/pqℤ. Multiples of
either p or q are not members of the group since they cannot have an
inverse. (Such numbers are 0 in the subgroup ℤ/pℤ.)
With p and q of typical size (> 512 bits), the probability of a random
blind [1..pq-1] being a multiple of p or q is negligible. However, in
the unit tests, much smaller sizes are used and the event could occur.
This change checks the result of the ext GCD and deals with this case.
It also increases the size of p and q in the unit test as a large
number of the keys selected were p, q = 227,169.
R=rsc
CC=golang-dev
https://golang.org/cl/154141
2009-11-14 20:38:00 -08:00
Kai Backman
8e5854ae17
make arm pass match what's working on real hardware
...
R=rsc
https://golang.org/cl/154097
2009-11-14 20:08:22 -08:00
Russ Cox
98811f41b8
test/interface/receiver.go: expand to do dynamic
...
versions of static checks in receiver1.go
R=r
https://golang.org/cl/155045
2009-11-14 19:28:13 -08:00
Devon H. O'Dell
553be8427e
Build changes to support work on the BSDs.
...
This does still contain some FreeBSD-specific bits, but
it's a pain to do partial diffs.
R=rsc
https://golang.org/cl/152138
2009-11-14 15:29:09 -08:00
Devon H. O'Dell
96bcdff662
Adding myself to AUTHORS/CONTRIBUTORS for Go.
...
R=rsc
https://golang.org/cl/155041
2009-11-14 15:28:47 -08:00
Môshe van der Sterre
a54684f8da
encoding/binary: implemented the Write function
...
The ByteOrder.Put* methods are already available, this change uses
them to implement the Write function.
R=golang-dev, agl1, rsc, r
https://golang.org/cl/152141
2009-11-14 14:42:22 -08:00
Môshe van der Sterre
a09997c3aa
Adding my name to CONTRIBUTORS and AUTHORS
...
As Adam Langley mentioned, this should go in with
https://golang.org/cl/152141
R=rsc
CC=agl1
https://golang.org/cl/154138
2009-11-14 14:42:15 -08:00
Russ Cox
4b13d1b9b5
gc: do not try to constant-evaluate (interface{})("bar")
...
Fixes #183 .
R=ken
https://golang.org/cl/154139
2009-11-14 14:14:27 -08:00
Rob Pike
0263103a05
move evaluation of null-matching instructions one iteration earlier.
...
performance hit of about 20% but more intuitive results for submatches.
we need a good regexp package at some point.
Fixes #110 .
R=rsc
CC=golang-dev
https://golang.org/cl/152131
2009-11-14 12:23:24 -08:00
Abhinav Gupta
bad9738be6
xml: Fixed CDATA parsing.
...
Fixes #128 .
R=r, rsc
https://golang.org/cl/154126
2009-11-14 11:46:09 -08:00
Abhinav Gupta
14a4ece979
Added self to AUTHORS and CONTRIBUTORS.
...
R=rsc
https://golang.org/cl/154128
2009-11-14 11:45:32 -08:00
Russ Cox
933d1850ce
typos
...
Fixes #171 .
Fixes #172 .
R=agl1
https://golang.org/cl/154136
2009-11-14 10:28:53 -08:00
David Titarenco
aebae2577a
Created new Conn.Flush() public method so the fd pipeline can be drained arbitrarily by the user.
...
Commented both flush methods so people know what they are looking at.
This is a necessary fix for streaming and long polling HTTP services.
Fixes #93 .
R=r, rsc, david.titarenco
https://golang.org/cl/154099
2009-11-13 18:06:47 -08:00
David Titarenco
1eef6b0dd4
Added self to AUTHORS and CONTRIBUTORS prior to first submission.
...
R=rsc
https://golang.org/cl/153057
2009-11-13 18:06:27 -08:00
Nigel Tao
75829b3c51
Remove unnecessary int(h) casts in image.go.
...
R=rsc
https://golang.org/cl/154125
2009-11-13 17:40:20 -08:00
Rob Pike
8f47890135
fix typo
...
R=rsc
https://golang.org/cl/152128
2009-11-13 16:00:55 -08:00
James Aguilar
95be81da4d
Correct indentation for go-mode where a close brace following a semi-
...
colon-less statement would be indented one stop too many.
R=rsc, aclements
CC=aclements
https://golang.org/cl/154096
2009-11-13 15:52:30 -08:00
James Aguilar
a01839fb82
Add myself to the contributors file.
...
R=rsc
https://golang.org/cl/152101
2009-11-13 15:52:24 -08:00
Adam Langley
a070722340
json: minor comment fix.
...
I screwed up and didn't write one of the code review changes to disk
before submitting.
TBR=rsc
R=rsc
https://golang.org/cl/154122
2009-11-13 14:59:04 -08:00
Rob Pike
f9919ba323
Explain why
...
-flag true
does not work although
-flag=true
does.
Fixes #139 .
R=iant
CC=golang-dev
https://golang.org/cl/154118
2009-11-13 13:15:18 -08:00
Russ Cox
662ee8704c
test/run: use bash, not sh.
...
use bash builtin time instead of
assuming /usr/bin/time exists.
R=r
https://golang.org/cl/152124
2009-11-13 13:10:53 -08:00
Adam Langley
bccc337084
json: allow one to unmarshal a top-level JSON array.
...
Fixies issue 114.
R=rsc
CC=golang-dev
https://golang.org/cl/154121
2009-11-13 13:00:45 -08:00
Russ Cox
e7b8f5faca
path.TestWalk: disable error case if root
...
(chmod 0 doesn't cause errors for root)
Fixes #22 .
R=gri
https://golang.org/cl/152120
2009-11-13 11:34:33 -08:00
Adam Langley
87bc9b53fd
json: fix addressing of slice indexes that are multiples of 8.
...
Fixes #147 .
R=rsc
CC=golang-dev
https://golang.org/cl/152123
2009-11-13 11:29:13 -08:00
Adam Langley
3f7a32405d
runtime: warn about SELinux based mmap failures on Linux.
...
SELinux will cause mmap to fail when we request w+x memory unless the
user has configured their policies. We have a warning in make.bash,
but it's quite likely that the policy will be reset at some point and
then all their binaries start failing.
This patch prints a warning on Linux when mmap fails with EACCES.
R=rsc
CC=golang-dev
https://golang.org/cl/152086
2009-11-13 10:08:51 -08:00
Russ Cox
593ccd1d44
yet another attempt to avoid conflicts with
...
<stdio.h>, which we weren't even #including
R=r
https://golang.org/cl/154108
2009-11-12 23:38:48 -08:00
Rob Pike
845276ae68
remove dead code from test
...
R=rsc
CC=golang-dev
https://golang.org/cl/152118
2009-11-12 23:35:45 -08:00
Rob Pike
00093011e6
sudo.bash tries to install acid and db, which don't exist any more
...
R=rsc
CC=golang-dev
https://golang.org/cl/152117
2009-11-12 23:19:12 -08:00
Kevin Ballard
6c2ae1a625
Teach emacs M-x gofmt to save region/restrictions
...
R=agl, agl1
https://golang.org/cl/152078
2009-11-12 18:40:42 -08:00
Russ Cox
780dbdc024
codereview: clpatch tweaks
...
R=agl1
https://golang.org/cl/152114
2009-11-12 18:37:39 -08:00
Robert Griesemer
511772c888
Remove -align flag from gofmt.
...
(Making it work correctly with -spaces is a bit of work and the output
won't make much sense as it is intended as input to tabwriter.)
Fixes #100 .
R=rsc
https://golang.org/cl/154102
2009-11-12 18:26:45 -08:00
Kai Backman
a23746ea65
fix style nit ignored in previous cl
...
R=rsc
https://golang.org/cl/152110
2009-11-12 16:12:28 -08:00
Kai Backman
6a48aab747
add support for pre arm v6 cas. set GOARM=5 to enable.
...
R=rsc
https://golang.org/cl/154101
2009-11-12 15:23:23 -08:00
Russ Cox
c403422525
tag new release at 4015/cb140bac9ab0
...
R=r
https://golang.org/cl/154100
2009-11-12 15:12:52 -08:00
Russ Cox
f3a97293b1
test/run: unset GREP_OPTIONS
...
Fixes #116 .
R=r
https://golang.org/cl/152106
2009-11-12 14:55:26 -08:00
Russ Cox
b0c7d68052
os.TestSeek: use a smaller but still 64-bit seek offset.
...
Might fix issue 91.
R=r
https://golang.org/cl/152108
2009-11-12 14:55:04 -08:00
Rob Pike
ce0a4bae41
produce helpful error when gotest doesn't find a Makefile
...
Fixes #117 .
R=rsc, agl1
CC=golang-dev
https://golang.org/cl/152107
2009-11-12 14:28:45 -08:00