]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
14 years agorelease.2010-03-15 weekly.2010-03-15
Andrew Gerrand [Mon, 15 Mar 2010 23:44:13 +0000 (10:44 +1100)]
release.2010-03-15

R=rsc
CC=golang-dev
https://golang.org/cl/579041

14 years agoinstall.html: elaborate on shell profile instructions
Andrew Gerrand [Mon, 15 Mar 2010 22:42:34 +0000 (09:42 +1100)]
install.html: elaborate on shell profile instructions

R=r, rsc
CC=golang-dev
https://golang.org/cl/556041

14 years agogofmt: fix for gofmt rewrite feature
Robert Griesemer [Mon, 15 Mar 2010 22:42:09 +0000 (15:42 -0700)]
gofmt: fix for gofmt rewrite feature

Fixes #643.

R=rsc
CC=golang-dev
https://golang.org/cl/576041

14 years ago dashboard: include package.html
Andrew Gerrand [Mon, 15 Mar 2010 22:05:09 +0000 (09:05 +1100)]
dashboard: include package.html

    This was omitted from the original commit.

R=rsc
CC=golang-dev
https://golang.org/cl/554043

14 years agogodoc: support for multiple packages in a directory
Robert Griesemer [Sat, 13 Mar 2010 02:16:21 +0000 (18:16 -0800)]
godoc: support for multiple packages in a directory
- smartly select the "right" package
- provide a list of other packages

R=rsc
CC=golang-dev
https://golang.org/cl/466042

14 years agohash/crc64: new package implementing 64-bit CRC
Russ Cox [Sat, 13 Mar 2010 01:38:18 +0000 (17:38 -0800)]
hash/crc64: new package implementing 64-bit CRC
hash/crc32: add Update function
hash: add Sum64 interface

R=r
CC=golang-dev
https://golang.org/cl/445042

14 years agogofmt: make sure there is a newline after
Robert Griesemer [Fri, 12 Mar 2010 22:54:06 +0000 (14:54 -0800)]
gofmt: make sure there is a newline after
a /*-style comment at the end of a file

Some minor cleanups/typo fixes along the way.

Fixes an issue where that newline was removed
after applying gofmt.

R=r
CC=golang-dev
https://golang.org/cl/476043

14 years agogo/printer: fix a couple of hidden crashes that become
Robert Griesemer [Fri, 12 Mar 2010 22:01:52 +0000 (14:01 -0800)]
go/printer: fix a couple of hidden crashes that become
visible only when enabling internal debug mode:
- in rare cases expression depth can underflow
- when printing a single labeled statement, indentation
  may underflow if not setup correctly

R=rsc
CC=golang-dev
https://golang.org/cl/484041

14 years agoast/filter.go: missing nil-check causes crash
Robert Griesemer [Fri, 12 Mar 2010 01:39:55 +0000 (17:39 -0800)]
ast/filter.go: missing nil-check causes crash

R=rsc
CC=golang-dev
https://golang.org/cl/461041

14 years agogodoc: fix formatting of -src output
Robert Griesemer [Fri, 12 Mar 2010 00:44:56 +0000 (16:44 -0800)]
godoc: fix formatting of -src output
- go/filter.go: make MergePackageFiles smarter
- go/printer.go: handle positions from multiple files

R=rsc
CC=golang-dev
https://golang.org/cl/460042

14 years agomath, path: minor comment fixes
Robert Griesemer [Fri, 12 Mar 2010 00:40:32 +0000 (16:40 -0800)]
math, path: minor comment fixes

R=r
CC=golang-dev
https://golang.org/cl/444043

14 years agosyslog: increase test timeout from 10ms to 100ms
Christopher Wedgwood [Thu, 11 Mar 2010 17:46:16 +0000 (09:46 -0800)]
syslog: increase test timeout from 10ms to 100ms

Problem pointed out by rsc.

R=rsc
CC=golang-dev
https://golang.org/cl/444041

14 years agoRevert previous change: complexN only converts to complexN.
Ian Lance Taylor [Thu, 11 Mar 2010 04:38:38 +0000 (20:38 -0800)]
Revert previous change: complexN only converts to complexN.

This was discussed with Ken and Russ.  6g has been changed,
and both compilers now work this way.  This avoids a double
type conversion--first to the float type, then to the complex
type.

R=r
CC=golang-dev, ken2, rsc
https://golang.org/cl/419042

14 years agomath package: minor documentation fix
Robert Griesemer [Thu, 11 Mar 2010 01:04:43 +0000 (17:04 -0800)]
math package: minor documentation fix

R=rsc
CC=golang-dev
https://golang.org/cl/424041

14 years agoinstall.html: add section on C tools
Robert Griesemer [Thu, 11 Mar 2010 00:31:09 +0000 (16:31 -0800)]
install.html: add section on C tools

R=rsc
CC=golang-dev
https://golang.org/cl/238042

14 years agogodoc: change -x to -src, update doc.go (missed in previous CL)
Robert Griesemer [Wed, 10 Mar 2010 23:41:36 +0000 (15:41 -0800)]
godoc: change -x to -src, update doc.go (missed in previous CL)

R=rsc
CC=golang-dev
https://golang.org/cl/384044

14 years agogo_spec.html: fix typo and link
Robert Griesemer [Wed, 10 Mar 2010 23:29:36 +0000 (15:29 -0800)]
go_spec.html: fix typo and link

R=r
CC=golang-dev
https://golang.org/cl/382045

14 years agogodoc: provide mode which shows exported interface in "source form"
Robert Griesemer [Wed, 10 Mar 2010 23:22:22 +0000 (15:22 -0800)]
godoc: provide mode which shows exported interface in "source form"
- on the commandline: godoc -x big
- in a webpage: provide form parameter ?m=src

Known issues:
- Positioning of comments incorrect in several cases. Separate CL.
- Need a link/menu to switch between different modes of presentation
  in the web view.

R=rsc
CC=golang-dev
https://golang.org/cl/376041

14 years agofix 386 a[i] = cmplx(r, j)
Russ Cox [Wed, 10 Mar 2010 21:06:35 +0000 (13:06 -0800)]
fix 386 a[i] = cmplx(r, j)

R=ken2
CC=golang-dev
https://golang.org/cl/384043

14 years agofix amd64 build (golden.out)
Russ Cox [Wed, 10 Mar 2010 20:42:53 +0000 (12:42 -0800)]
fix amd64 build (golden.out)

R=ken2
CC=golang-dev
https://golang.org/cl/417042

14 years agotemplate: add ParseFile, MustParseFile, and associated tests
Andrew Gerrand [Wed, 10 Mar 2010 09:19:20 +0000 (20:19 +1100)]
template: add ParseFile, MustParseFile, and associated tests

R=r
CC=golang-dev
https://golang.org/cl/391041

14 years ago1. decommit complex(float) conversion
Ken Thompson [Wed, 10 Mar 2010 01:51:30 +0000 (17:51 -0800)]
1. decommit complex(float) conversion
2. add complex algorithm for map/chan
3. test for use of complex in
   array, slice, field, chan, map,
   field, pointer.

R=rsc
CC=golang-dev
https://golang.org/cl/384041

14 years agogc: remove duplicate errors, give better error for I.(T)
Russ Cox [Tue, 9 Mar 2010 23:09:37 +0000 (15:09 -0800)]
gc: remove duplicate errors, give better error for I.(T)

R=ken2
CC=golang-dev
https://golang.org/cl/370041

14 years agosyscall: minimal mingw version of syscall to call windows dlls
Alex Brainman [Tue, 9 Mar 2010 23:09:09 +0000 (15:09 -0800)]
syscall: minimal mingw version of syscall to call windows dlls

lots of missing parts, but builds and can call dlls, see a sample code in syscall_mingw.go

R=rsc
CC=golang-dev
https://golang.org/cl/218042

14 years agoreflect: typo in comment
Dean Prichard [Tue, 9 Mar 2010 23:00:10 +0000 (10:00 +1100)]
reflect: typo in comment

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/369041

14 years agomissing ';' renders the code snippet incorrectly on website
Andrey Mirtchovski [Tue, 9 Mar 2010 22:21:34 +0000 (14:21 -0800)]
missing ';' renders the code snippet incorrectly on website

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/367041

14 years agofmt: enable the complex tests now that 8g supports complex
Rob Pike [Tue, 9 Mar 2010 22:17:14 +0000 (14:17 -0800)]
fmt: enable the complex tests now that 8g supports complex

R=rsc
CC=golang-dev
https://golang.org/cl/357043

14 years agofix bugs compiling things like
Ken Thompson [Tue, 9 Mar 2010 21:39:45 +0000 (13:39 -0800)]
fix bugs compiling things like
c = cmplx(imag(c), real(c))
without a temporary

R=rsc
CC=golang-dev
https://golang.org/cl/360043

14 years agoidentical complex implementation
Ken Thompson [Tue, 9 Mar 2010 20:49:24 +0000 (12:49 -0800)]
identical complex implementation
for 6g and 8g. can also be used
for 5g. 5g is still a stub.

R=rsc
CC=golang-dev
https://golang.org/cl/362041

14 years agoarm: cleanup build warnings
Dean Prichard [Tue, 9 Mar 2010 02:13:19 +0000 (18:13 -0800)]
arm: cleanup build warnings

trivial stuff
lex.c: these prototypes are in a.h
asm.c: unused variables
arm-pass.txt deal w/ sieve.go rename and addition of sieve2.go

R=kaib, rsc
CC=golang-dev
https://golang.org/cl/244041

14 years agocrypto/ripemd160: new package
Raif S. Naffah [Tue, 9 Mar 2010 02:12:36 +0000 (18:12 -0800)]
crypto/ripemd160: new package

R=rsc
CC=golang-dev
https://golang.org/cl/224081

14 years agocrypto/sha256: add SHA-224
Conrad Meyer [Tue, 9 Mar 2010 02:12:30 +0000 (18:12 -0800)]
crypto/sha256: add SHA-224

R=agl1, rsc
CC=golang-dev
https://golang.org/cl/253045

14 years agoencoding/base64: fix typo in comment
Giles Lean [Tue, 9 Mar 2010 02:12:25 +0000 (18:12 -0800)]
encoding/base64: fix typo in comment

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/258041

14 years agogc: avoid fixed length buffer cleanbuf
Dean Prichard [Tue, 9 Mar 2010 01:00:14 +0000 (17:00 -0800)]
gc: avoid fixed length buffer cleanbuf

R=rsc
CC=golang-dev
https://golang.org/cl/302042

14 years agocrypto/sha512: new package
Conrad Meyer [Tue, 9 Mar 2010 01:00:04 +0000 (17:00 -0800)]
crypto/sha512: new package

R=rsc
CC=golang-dev
https://golang.org/cl/240043

14 years agoA+C: add Conrad Meyer (individual CLA)
Russ Cox [Tue, 9 Mar 2010 00:52:55 +0000 (16:52 -0800)]
A+C: add Conrad Meyer (individual CLA)

R=r
CC=cemeyer, golang-dev
https://golang.org/cl/313041

14 years agogc: simplify complex typecheck
Russ Cox [Mon, 8 Mar 2010 23:44:18 +0000 (15:44 -0800)]
gc: simplify complex typecheck
do not convert to float prematurely.

R=ken2
CC=golang-dev
https://golang.org/cl/311041

14 years ago5g/6g/8g: fix double function call in slice
Russ Cox [Mon, 8 Mar 2010 22:19:28 +0000 (14:19 -0800)]
5g/6g/8g: fix double function call in slice

Fixes #654.

R=ken2
CC=golang-dev
https://golang.org/cl/310041

14 years agoruntime: clock garbage collection on bytes allocated, not pages in use
Russ Cox [Mon, 8 Mar 2010 22:15:44 +0000 (14:15 -0800)]
runtime: clock garbage collection on bytes allocated, not pages in use
This keeps fragmentation from delaying
garbage collections (and causing more fragmentation).

Cuts fresh godoc (with indexes) from 261M to 166M (120M live).
Cuts toy wc program from 50M to 8M.

Fixes #647.

R=r, cw
CC=golang-dev
https://golang.org/cl/257041

14 years agoComplex values may only be compared for equality or inequality.
Ian Lance Taylor [Mon, 8 Mar 2010 22:05:46 +0000 (14:05 -0800)]
Complex values may only be compared for equality or inequality.

R=gri, r
CC=golang-dev
https://golang.org/cl/294042

14 years agoClarify that conversions to complex are OK.
Ian Lance Taylor [Mon, 8 Mar 2010 21:45:03 +0000 (13:45 -0800)]
Clarify that conversions to complex are OK.

R=r
CC=golang-dev
https://golang.org/cl/296042

14 years agocrypto/rsa: don't use safe primes.
Adam Langley [Mon, 8 Mar 2010 14:25:24 +0000 (09:25 -0500)]
crypto/rsa: don't use safe primes.

Previously we would require safe primes for our RSA key generation.
Since this took rather a long time, this removes the requirement that
the primes be safe.

OpenSSL doesn't use safe primes for RSA key generation either
(openssl-0.9.8l/crypto/rsa/rsa_gen.c:122)

Fixes #649.

R=rsc
CC=golang-dev
https://golang.org/cl/253041

14 years agoregex: Remove unneeded imports from test.
Christopher Wedgwood [Sun, 7 Mar 2010 19:17:36 +0000 (11:17 -0800)]
regex: Remove unneeded imports from test.

R=rsc, adg, r
CC=golang-dev
https://golang.org/cl/264041

14 years agoregexp: add ReplaceAllFunc and ReplaceAllStringFunc
Andrew Gerrand [Sun, 7 Mar 2010 01:41:49 +0000 (12:41 +1100)]
regexp: add ReplaceAllFunc and ReplaceAllStringFunc

R=r
CC=golang-dev
https://golang.org/cl/247041

14 years agofix bug in complex printing: imaginary didn't have same format as real.
Rob Pike [Sat, 6 Mar 2010 21:38:14 +0000 (13:38 -0800)]
fix bug in complex printing: imaginary didn't have same format as real.
add tests.

R=rsc, ken2, ken3
CC=golang-dev
https://golang.org/cl/261041

14 years agoPTAL
Ken Thompson [Sat, 6 Mar 2010 19:26:33 +0000 (11:26 -0800)]
PTAL

R=r
CC=golang-dev
https://golang.org/cl/254043

14 years ago6g complex type usable
Ken Thompson [Sat, 6 Mar 2010 04:16:04 +0000 (20:16 -0800)]
6g complex type usable
8g and 5g have stubs to ignore complex

R=rsc
CC=golang-dev
https://golang.org/cl/257042

14 years agogc: fix crash on complicated arg to make slice.
Russ Cox [Sat, 6 Mar 2010 03:29:14 +0000 (19:29 -0800)]
gc: fix crash on complicated arg to make slice.

Fixes #615.

R=ken2
CC=golang-dev
https://golang.org/cl/255043

14 years agomath: faster hypot
Charles L. Dorian [Sat, 6 Mar 2010 00:45:39 +0000 (16:45 -0800)]
math: faster hypot

Use hardware sqrt for faster hypot; preserve software-only
hypot as hypotGo (like sqrtGo); enable benchmarking of
hypotGo.

R=rsc
CC=golang-dev
https://golang.org/cl/229049

14 years agogc: better compilation of floating point +=
Russ Cox [Fri, 5 Mar 2010 23:35:09 +0000 (15:35 -0800)]
gc: better compilation of floating point +=

R=ken2
CC=golang-dev
https://golang.org/cl/255042

14 years agobufio: WriteRune
Rob Pike [Fri, 5 Mar 2010 22:03:17 +0000 (14:03 -0800)]
bufio: WriteRune
also fix a printing error in the test for bytes.Buffer

R=golang-dev
CC=golang-dev
https://golang.org/cl/240042

14 years agobig: fix mistakes with probablyPrime
Adam Langley [Fri, 5 Mar 2010 20:55:26 +0000 (15:55 -0500)]
big: fix mistakes with probablyPrime

probablyPrime would return false negatives in some cases.

This code has now been tested against GMP for several million iterations without issues.

Fixes #638.

R=rsc
CC=golang-dev
https://golang.org/cl/252041

14 years agoAdd ReadRune and WriteRune to bytes.Buffer
Rob Pike [Fri, 5 Mar 2010 19:34:53 +0000 (11:34 -0800)]
Add ReadRune and WriteRune to bytes.Buffer

The comments mention bufio's WriteRune, which should come next.

R=rsc
CC=golang-dev
https://golang.org/cl/245041

14 years agoGenerate same output on all architectures.
Ian Lance Taylor [Fri, 5 Mar 2010 18:43:33 +0000 (10:43 -0800)]
Generate same output on all architectures.

Passing an argument to bug260 will indicate which alignments
are wrong.

R=r
CC=golang-dev
https://golang.org/cl/231042

14 years agofrexp.go: remove html from comment
Robert Griesemer [Fri, 5 Mar 2010 18:30:50 +0000 (10:30 -0800)]
frexp.go: remove html from comment

R=r
CC=golang-dev
https://golang.org/cl/250041

14 years agogodoc: don't throw away function documentation
Robert Griesemer [Fri, 5 Mar 2010 18:13:58 +0000 (10:13 -0800)]
godoc: don't throw away function documentation
if there are multiple functions (for a package, type)
with the same name

Fixes #642.

R=rsc
CC=golang-dev
https://golang.org/cl/243041

14 years agogofmt: modified algorithm for alignment of multi-line composite/list entries
Robert Griesemer [Fri, 5 Mar 2010 01:37:15 +0000 (17:37 -0800)]
gofmt: modified algorithm for alignment of multi-line composite/list entries
- only manual changes are in src/pkg/go/printer/nodes.go
- use a heuristic to determine "outliers" such that not entire composites are
  forced to align with them
- improves several places that were not unligned before due too simple heuristic
- unalignes some cases that contain "outliers"
- gofmt -w src misc

Fixes #644.

R=rsc, r
CC=golang-dev
https://golang.org/cl/241041

14 years agogoinstall: an experiment in (external) package installation
Russ Cox [Fri, 5 Mar 2010 01:04:50 +0000 (17:04 -0800)]
goinstall: an experiment in (external) package installation

R=adg, r
CC=cw, golang-dev
https://golang.org/cl/224043

14 years agoA+C: add Spring Mc (individual CLA)
Russ Cox [Fri, 5 Mar 2010 00:16:56 +0000 (16:16 -0800)]
A+C: add Spring Mc (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/240041

14 years agostrings: make Split(s, "", n) faster
Spring Mc [Fri, 5 Mar 2010 00:15:51 +0000 (16:15 -0800)]
strings: make Split(s, "", n) faster

R=rsc
CC=golang-dev
https://golang.org/cl/223096

14 years agocc: disallow ... argument unless NOSPLIT is set.
Russ Cox [Thu, 4 Mar 2010 23:34:25 +0000 (15:34 -0800)]
cc: disallow ... argument unless NOSPLIT is set.
check that NOSPLIT functions don't use too much stack.
correct some missing NOSPLITs in the runtime library.

Fixes bug reported in
https://groups.google.com/group/golang-nuts/t/efff68b73941eccf

R=ken2
CC=golang-dev
https://golang.org/cl/236041

14 years agoadd a test that structures pack. 6g fails.
Rob Pike [Thu, 4 Mar 2010 23:26:15 +0000 (15:26 -0800)]
add a test that structures pack.  6g fails.

R=rsc
CC=golang-dev
https://golang.org/cl/237041

14 years agoSpec for complex numbers
Rob Pike [Thu, 4 Mar 2010 20:35:16 +0000 (12:35 -0800)]
Spec for complex numbers

R=rsc, ken2, gri, iant
CC=cw, golang-dev
https://golang.org/cl/227041

14 years agorelease.2010-03-04 part two
Andrew Gerrand [Thu, 4 Mar 2010 04:00:45 +0000 (15:00 +1100)]
release.2010-03-04 part two

R=rsc
CC=golang-dev
https://golang.org/cl/229050

14 years agomath: added ilogb, logb, remainder, tests and special conditions
Charles L. Dorian [Thu, 4 Mar 2010 02:17:13 +0000 (18:17 -0800)]
math: added ilogb, logb, remainder, tests and special conditions

Also added expm1_386 and remainder_386; shortened exp_386

R=rsc
CC=golang-dev
https://golang.org/cl/217109

14 years agorelease.2010-03-04 weekly.2010-03-04
Andrew Gerrand [Thu, 4 Mar 2010 02:00:29 +0000 (13:00 +1100)]
release.2010-03-04

R=rsc
CC=golang-dev
https://golang.org/cl/229048

14 years agoFirst run at a Programming FAQ
Andrew Gerrand [Thu, 4 Mar 2010 01:56:08 +0000 (12:56 +1100)]
First run at a Programming FAQ

Moved a couple of FAQs from the main FAQ, and added some others

R=r, rsc, iant, gri
CC=golang-dev
https://golang.org/cl/218070

14 years agonet: put [ ] around IPv6 addresses for Dial
Russ Cox [Thu, 4 Mar 2010 01:30:39 +0000 (17:30 -0800)]
net: put [ ] around IPv6 addresses for Dial

Update #538.

R=r
CC=golang-dev
https://golang.org/cl/229045

14 years agonet: fix nil deref in testTimeout when Dial fails
Russ Cox [Thu, 4 Mar 2010 01:30:29 +0000 (17:30 -0800)]
net: fix nil deref in testTimeout when Dial fails
Pointed out by Scott Schwartz.

Fixes #637.

R=scotts
CC=golang-dev
https://golang.org/cl/225042

14 years agogc: fix imported and not used message - show path
Russ Cox [Thu, 4 Mar 2010 01:23:47 +0000 (17:23 -0800)]
gc: fix imported and not used message - show path

R=ken2
CC=golang-dev
https://golang.org/cl/229046

14 years agoencoding/binary: fix error reporting bug
Rob Pike [Wed, 3 Mar 2010 20:35:16 +0000 (12:35 -0800)]
encoding/binary: fix error reporting bug

R=rsc
CC=golang-dev
https://golang.org/cl/224096

14 years agonet: fix network timeout boundary condition.
Stephen Ma [Wed, 3 Mar 2010 07:43:36 +0000 (18:43 +1100)]
net: fix network timeout boundary condition.
Fixes #472.

R=golang-dev
CC=golang-dev
https://golang.org/cl/223108

14 years agonet: correct DNS configuration
Stephen Ma [Wed, 3 Mar 2010 04:25:26 +0000 (15:25 +1100)]
net: correct DNS configuration

Set defaults to the same values as various C DNS resolver libraries.
Use the timeout value from the configuration.
Fixes #632.

R=rsc
CC=golang-dev
https://golang.org/cl/223094

14 years agotest: fix 386 build (missing complex)
Russ Cox [Wed, 3 Mar 2010 02:53:25 +0000 (18:53 -0800)]
test: fix 386 build (missing complex)

R=ken2
CC=golang-dev
https://golang.org/cl/223106

14 years agomore on type complex.
Ken Thompson [Wed, 3 Mar 2010 02:32:11 +0000 (18:32 -0800)]
more on type complex.
getting close.

R=rsc
CC=golang-dev
https://golang.org/cl/224105

14 years agogofmt: fix alignment of multi-line var declarations
Robert Griesemer [Wed, 3 Mar 2010 01:23:07 +0000 (17:23 -0800)]
gofmt: fix alignment of multi-line var declarations
- gofmt -w src misc

R=rsc, r
CC=golang-dev
https://golang.org/cl/223101

14 years agocodereview.py: fix for compatibility with hg >=1.4.3
Andrew Gerrand [Tue, 2 Mar 2010 22:03:31 +0000 (09:03 +1100)]
codereview.py: fix for compatibility with hg >=1.4.3

hg.parseurl now returns a two-value tuple; codereview.py expected 3.
Changed to merely take the first return value.

R=rsc, iant
CC=golang-dev
https://golang.org/cl/223087

14 years agohttp: corrected comment for Response.GetHeader.
Andrew Gerrand [Tue, 2 Mar 2010 21:53:22 +0000 (08:53 +1100)]
http: corrected comment for Response.GetHeader.

Fixes #622.

R=rsc
CC=golang-dev
https://golang.org/cl/224084

14 years agogofmt: experiment: align values in map composites where possible
Robert Griesemer [Tue, 2 Mar 2010 21:46:51 +0000 (13:46 -0800)]
gofmt: experiment: align values in map composites where possible
- gofmt -w src misc
- looking for feedback

R=rsc, r
CC=golang-dev
https://golang.org/cl/223076

14 years agoMinor mistake in docs.
Robert Griesemer [Tue, 2 Mar 2010 00:22:22 +0000 (16:22 -0800)]
Minor mistake in docs.
Fixes #633.

R=adg
CC=golang-dev
https://golang.org/cl/224090

14 years agostrings.Bytes -> []byte for documentation example, src/pkg/* comments, and htmlgen.go
Andrey Mirtchovski [Tue, 2 Mar 2010 00:18:22 +0000 (11:18 +1100)]
strings.Bytes -> []byte for documentation example, src/pkg/* comments, and htmlgen.go

R=rsc, adg
CC=golang-dev
https://golang.org/cl/224087

14 years agogotest: set $AS to $GOBIN/$AS
Andrew Gerrand [Mon, 1 Mar 2010 05:49:06 +0000 (21:49 -0800)]
gotest: set $AS to $GOBIN/$AS

May address issue 624.

R=rsc
CC=golang-dev
https://golang.org/cl/223083

14 years agoCount utf8 runes, not bytes when determining string width. Note
Stephen Ma [Sun, 28 Feb 2010 10:15:56 +0000 (21:15 +1100)]
Count utf8 runes, not bytes when determining string width. Note
that pad() still counts bytes, but it's currently only used for
1 byte runes.

Fixes #612.

R=r
CC=golang-dev
https://golang.org/cl/217064

14 years agotesting/benchmark: paranoia - make sure n always grows
Russ Cox [Sat, 27 Feb 2010 01:18:43 +0000 (17:18 -0800)]
testing/benchmark: paranoia - make sure n always grows

R=wcn
CC=golang-dev
https://golang.org/cl/223075

14 years agocrypto/blowfish: new package
Raif S. Naffah [Fri, 26 Feb 2010 23:24:46 +0000 (15:24 -0800)]
crypto/blowfish: new package

R=rsc
CC=golang-dev
https://golang.org/cl/217116

14 years agoA+C: add Raif S. Naffah (individual CLA)
Russ Cox [Fri, 26 Feb 2010 22:54:28 +0000 (14:54 -0800)]
A+C: add Raif S. Naffah (individual CLA)

R=gri
CC=golang-dev
https://golang.org/cl/223073

14 years agogo/parser cleanup: remove some state by writing more functional code
Robert Griesemer [Fri, 26 Feb 2010 22:50:12 +0000 (14:50 -0800)]
go/parser cleanup: remove some state by writing more functional code

R=rsc
CC=golang-dev
https://golang.org/cl/223071

14 years ago8g: fix out of register bug in byte(x) code
Russ Cox [Fri, 26 Feb 2010 22:21:52 +0000 (14:21 -0800)]
8g: fix out of register bug in byte(x) code

R=ken2
CC=golang-dev
https://golang.org/cl/223070

14 years agoAdd -r option to 6l/8l/5l.
Ian Lance Taylor [Fri, 26 Feb 2010 22:03:52 +0000 (14:03 -0800)]
Add -r option to 6l/8l/5l.

This permits more flexibility with cgo and swig in cases where
the program is run on a machine other than the one on which it
is built.  Rather than storing the absolute path to the shared
library in the DT_NEEDED entry, we can store just the name,
and let the dynamic linker find it using DT_RUNPATH or the
LD_LIBRARY_PATH environment variable.

R=rsc
CC=golang-dev
https://golang.org/cl/223068

14 years ago8g: make a[byte(x)] truncate x
Russ Cox [Fri, 26 Feb 2010 21:15:29 +0000 (13:15 -0800)]
8g: make a[byte(x)] truncate x

R=ken2
CC=golang-dev
https://golang.org/cl/223069

14 years agogo/scanner: the position of '\n's chars must be the last position of the current...
Robert Griesemer [Fri, 26 Feb 2010 19:23:12 +0000 (11:23 -0800)]
go/scanner: the position of '\n's chars must be the last position of the current line

Background: This didn't matter until recently, because '\n' don't appear as token starts
in source code and thus the exact position was irrelevant (and set as was easiest in the
code). With auto semicolon insertion, a virtual semicolon may be inserted when a '\n' is
seen. The position of the semicolon is the position of the '\n'. Without this fix, these
semicolons appeared on the next line instead of the line where they were inserted.  This
affected the association of comments to declarations in the parser. As a result, some
lead comments where considered line comments, not collected in the ast, and not shown in
godoc pages. (This affected only godoc pages, not gofmt-formatted programs).

Fixes #592.

R=rsc
CC=golang-dev
https://golang.org/cl/224068

14 years agoFix a couple of bugs referencing data values in template.
Micah Stetson [Fri, 26 Feb 2010 07:39:43 +0000 (18:39 +1100)]
Fix a couple of bugs referencing data values in template.

Adds tests and fixes for two cases that fail with the current release.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/217115

14 years agoadd micah.stetson to C&A
Rob Pike [Fri, 26 Feb 2010 05:32:45 +0000 (16:32 +1100)]
add micah.stetson to C&A

R=rsc
CC=golang-dev
https://golang.org/cl/223061

14 years agodoc: Use byte("...") over byte{...}
Christopher Wedgwood [Fri, 26 Feb 2010 04:06:41 +0000 (20:06 -0800)]
doc: Use byte("...") over byte{...}

R=rsc, r
CC=golang-dev
https://golang.org/cl/224069

14 years agouse []byte("abc") in place of []byte{'a', 'b', 'c'}
Russ Cox [Fri, 26 Feb 2010 00:43:43 +0000 (16:43 -0800)]
use []byte("abc") in place of []byte{'a', 'b', 'c'}

R=gri
CC=golang-dev
https://golang.org/cl/223059

14 years agogo/printer, gofmt: align comments in multi-line expression lists
Robert Griesemer [Fri, 26 Feb 2010 00:07:55 +0000 (16:07 -0800)]
go/printer, gofmt: align comments in multi-line expression lists
- gofmt -w src misc
- improves several lists and fixes minor degradation introduced
  with the fix for issue 628
- removed some dead code (stringList)

R=rsc
CC=golang-dev
https://golang.org/cl/223058

14 years agostrings: delete Runes, Bytes
Russ Cox [Fri, 26 Feb 2010 00:01:29 +0000 (16:01 -0800)]
strings: delete Runes, Bytes

gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench
gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench
delete unused imports

R=r
CC=golang-dev
https://golang.org/cl/224062

14 years agotabwriter: make use of new []byte() conversion
Robert Griesemer [Thu, 25 Feb 2010 23:54:12 +0000 (15:54 -0800)]
tabwriter: make use of new []byte() conversion

R=rsc
CC=golang-dev
https://golang.org/cl/224063

14 years agogc: implement []int(string) and []byte(string)
Russ Cox [Thu, 25 Feb 2010 23:11:07 +0000 (15:11 -0800)]
gc: implement []int(string) and []byte(string)

R=ken2
CC=golang-dev
https://golang.org/cl/224060

14 years agoFix small typo in net package.
Stephen Weinberg [Thu, 25 Feb 2010 22:49:14 +0000 (14:49 -0800)]
Fix small typo in net package.

R=rsc
CC=golang-dev
https://golang.org/cl/224061