Russ Cox
1ee83f851d
gc: change "can we const evaluate this" from blacklist to whitelist
...
R=ken2
https://golang.org/cl/155074
2009-11-16 17:40:47 -08:00
Russ Cox
44e51fad28
6l: fix divide by zero in glibc linker.
...
repeats 8l change http://code.google.com/p/go/source/detail?r=7594e16b5cf9
Fixes #179 .
R=iant
https://golang.org/cl/154145
2009-11-16 17:40:03 -08:00
Adam Langley
1cdfe9fa28
unsafe: documentation typo.
...
Fixes #236 .
R=r
CC=golang-dev
https://golang.org/cl/155072
2009-11-16 15:39:04 -08:00
Robert Griesemer
af872b2ba4
Add id attribute to h2 and h3 tags so that they exist when referring
...
to generated pages even if Javascript has not introduced them yet.
R=rsc
https://golang.org/cl/154167
2009-11-16 15:25:16 -08:00
Robert Griesemer
e86afaf456
Don't emit line tags when source code is printed as part of
...
package documentation using templates. The line tag interferes
with the anchor tag introduces by the template.
This fixes an an issue where some headers lost their ability
to link to the respective source code.
R=rsc
https://golang.org/cl/154166
2009-11-16 14:26:29 -08:00
David Symonds
affcfe5a75
Add some primitive type aliases to exp/iterable and define Iter on them.
...
R=rsc
https://golang.org/cl/155065
2009-11-16 13:39:59 -08:00
David G. Andersen
37f71e8ad6
An asked-for-in #go-nuts extension to quickly create a repeated
...
copy of a string or a byte array.
strings.Repeat("-", 50)
bytes.Repeat(b, 99)
R=rsc
https://golang.org/cl/155063
2009-11-16 12:40:01 -08:00
David G. Andersen
11c1aa9f6d
Adding my name to authors/contributors. I'm waiting to hear
...
back from Carnegie Mellon about whether they're interested in
signing the agreement (do you know if they have already?).
In the meantime, I'm submitting these changes on my own time.
If CMU has already signed the corporate contributor agreement,
please remove my name from the AUTHORS list.
R=rsc
https://golang.org/cl/154161
2009-11-16 12:39:37 -08:00
Kai Backman
c3cf8d663a
s/AJMP/AB/ to fix build breakage.
...
R=rsc
https://golang.org/cl/155069
2009-11-16 11:58:28 -08:00
Adam Langley
4085364a20
doc: fix typo.
...
Fixes #218
R=r
CC=golang-dev
https://golang.org/cl/155067
2009-11-16 11:56:18 -08:00
Robert Griesemer
d3b1565716
- Clarify that struct composite literal keys are field names not selectors.
...
- Slight re-phrasing of struct type section since "field name" was not
properly introduced.
Fixes #164 .
R=r, rsc, iant
https://golang.org/cl/155061
2009-11-16 08:58:55 -08:00
Robert Griesemer
0660d243b1
Use ElementType consistently.
...
Fixes #173 .
R=r, rsc, r1
https://golang.org/cl/154156
2009-11-15 17:42:27 -08:00
Russ Cox
ef46a9ddac
gc: fix up floating point NaN comparisons
...
Fixes #167 .
R=ken2
https://golang.org/cl/155062
2009-11-15 17:24:14 -08:00
Adam Langley
391e082ca9
crypto/md5: fix comment typo.
...
Fixes #210 .
R=rsc
CC=golang-dev
https://golang.org/cl/155057
2009-11-15 14:00:46 -08:00
Rob Pike
dc3b4932d8
add a paragraph about GOMAXPROCS
...
R=rsc
CC=golang-dev
https://golang.org/cl/154153
2009-11-15 13:09:43 -08:00
Russ Cox
39f64bed52
godefs: avoid gcc 4'isms in command line.
...
Fixes #97 .
R=r
https://golang.org/cl/155054
2009-11-15 12:57:39 -08:00
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