]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years agotls: fix argument mistake in Error call.
Rob Pike [Fri, 17 Dec 2010 21:47:52 +0000 (13:47 -0800)]
tls: fix argument mistake in Error call.

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

14 years agojson: fix Fatal call in test
Rob Pike [Fri, 17 Dec 2010 21:43:59 +0000 (13:43 -0800)]
json: fix Fatal call in test

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

14 years agofix cgo build
Russ Cox [Fri, 17 Dec 2010 21:22:20 +0000 (13:22 -0800)]
fix cgo build

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

14 years agocgo: handle references to symbols in shared libraries
Russ Cox [Fri, 17 Dec 2010 19:37:11 +0000 (11:37 -0800)]
cgo: handle references to symbols in shared libraries

Fixes #1334.

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

14 years agoregexp: change Expr() to String(); add HasOperator method to Regexp.
Rob Pike [Fri, 17 Dec 2010 18:23:46 +0000 (10:23 -0800)]
regexp: change Expr() to String(); add HasOperator method to Regexp.
It reports whether a regular expression has operators
as opposed to matching literal text.

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

14 years agold: ignore stab symbols
Russ Cox [Fri, 17 Dec 2010 18:03:43 +0000 (10:03 -0800)]
ld: ignore stab symbols

Makes 6l work better on OS X 10.5.

Fixes #1352.
Fixes #1353.

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

14 years agold: allow relocations pointing at ELF .bss symbols
Russ Cox [Fri, 17 Dec 2010 17:53:50 +0000 (09:53 -0800)]
ld: allow relocations pointing at ELF .bss symbols

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

14 years agomisc/cgo/life: fix, add to build
Russ Cox [Fri, 17 Dec 2010 17:51:55 +0000 (09:51 -0800)]
misc/cgo/life: fix, add to build

#pragma dynexport is no longer needed for
this use of cgo, since the gcc and gc code are
now linked together into the same binary.
It may still be necessary later.

On the Mac, you cannot use the GOT to resolve
symbols that exist in the current binary, so 6l and 8l
translate the GOT-loading mov instructions into lea
instructions.

On ELF systems, we could use the GOT for those
symbols, but for consistency 6l and 8l apply the
same translation.

The translation is sketchy in the extreme
(depending on the relocation being in a mov
instruction) but it verifies that the instruction
is a mov before rewriting it to lea.

Also makes typedefs global across files.

Fixes #1335.
Fixes #1345.

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

14 years agocrypto/hmac: add HMAC-SHA256
Anthony Martin [Fri, 17 Dec 2010 17:19:37 +0000 (12:19 -0500)]
crypto/hmac: add HMAC-SHA256

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

14 years agoregexp: add HasMeta and regexp.Expr().
Rob Pike [Fri, 17 Dec 2010 00:55:26 +0000 (16:55 -0800)]
regexp: add HasMeta and regexp.Expr().
The former is a boolean function to test whether a string
contains a regular expression metacharacter; the second
returns the string used to compile the regexp.

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

14 years agocrypto/tls: missed a file
Adam Langley [Thu, 16 Dec 2010 22:14:02 +0000 (17:14 -0500)]
crypto/tls: missed a file

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

14 years agocrypto/tls: add ECDHE support
Adam Langley [Thu, 16 Dec 2010 22:10:50 +0000 (17:10 -0500)]
crypto/tls: add ECDHE support

(ECDHE is "Elliptic Curve Diffie Hellman Ephemeral")

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

14 years agotime: explain the formats a little better.
Rob Pike [Thu, 16 Dec 2010 21:25:41 +0000 (13:25 -0800)]
time: explain the formats a little better.

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

14 years ago crypto/elliptic: add serialisation and key pair generation.
Adam Langley [Thu, 16 Dec 2010 21:04:01 +0000 (16:04 -0500)]
crypto/elliptic: add serialisation and key pair generation.

        This is a prerequisite to ECDHE support in crypto/tls.

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

14 years agodarwin, freebsd: ignore write failure (during print, panic)
Russ Cox [Thu, 16 Dec 2010 20:46:56 +0000 (12:46 -0800)]
darwin, freebsd: ignore write failure (during print, panic)

The other operating systems already ignore write failures.

Fixes #1279.

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

14 years agotest/bench: update numbers for regex-dna after speedup to regexp
Rob Pike [Thu, 16 Dec 2010 20:38:14 +0000 (12:38 -0800)]
test/bench: update numbers for regex-dna after speedup to regexp

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

14 years agogovet: fix comment
Christopher Wedgwood [Thu, 16 Dec 2010 20:35:38 +0000 (12:35 -0800)]
govet: fix comment

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

14 years agocrypto/tls: check in support code.
Adam Langley [Thu, 16 Dec 2010 15:39:53 +0000 (10:39 -0500)]
crypto/tls: check in support code.

This support code helps in generating the handshake scripts
which are used for testing.

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

14 years agoexp/draw: remove Border function.
Nigel Tao [Thu, 16 Dec 2010 04:11:10 +0000 (15:11 +1100)]
exp/draw: remove Border function.

It was only used by exp/4s, and even if it is general purpose, I think
it belongs in a graphics library atop exp/draw, not in exp/draw itself.

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

14 years agotag release.2010-12-15.1
Andrew Gerrand [Thu, 16 Dec 2010 03:47:08 +0000 (14:47 +1100)]
tag release.2010-12-15.1

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

14 years agorelease.2010-12-15.1 weekly.2010-12-15.1
Andrew Gerrand [Thu, 16 Dec 2010 03:46:19 +0000 (14:46 +1100)]
release.2010-12-15.1

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

14 years agold: text segment should not be writable
Russ Cox [Thu, 16 Dec 2010 03:29:53 +0000 (19:29 -0800)]
ld: text segment should not be writable

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

14 years agodoc/devel: release notes tweak
Andrew Gerrand [Thu, 16 Dec 2010 01:51:01 +0000 (12:51 +1100)]
doc/devel: release notes tweak

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

14 years agotag release.2010-12-15
Andrew Gerrand [Thu, 16 Dec 2010 01:46:08 +0000 (12:46 +1100)]
tag release.2010-12-15

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

14 years agorelease.2010-12-15 weekly.2010-12-15
Andrew Gerrand [Thu, 16 Dec 2010 01:29:10 +0000 (12:29 +1100)]
release.2010-12-15

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

14 years ago8l: remove unneeded windows check
Alex Brainman [Thu, 16 Dec 2010 01:19:59 +0000 (12:19 +1100)]
8l: remove unneeded windows check

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

14 years agoruntime: move windows goargs implementation from runtime and into os package
Alex Brainman [Thu, 16 Dec 2010 01:18:18 +0000 (12:18 +1100)]
runtime: move windows goargs implementation from runtime and into os package

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

14 years agobuild: add another --no-print-directory
Alex Brainman [Wed, 15 Dec 2010 23:46:25 +0000 (10:46 +1100)]
build: add another --no-print-directory

Fixes #1344.

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

14 years ago5l: fix arm build
Russ Cox [Wed, 15 Dec 2010 22:57:49 +0000 (14:57 -0800)]
5l: fix arm build

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

14 years agofix freebsd build
Russ Cox [Wed, 15 Dec 2010 22:20:26 +0000 (17:20 -0500)]
fix freebsd build

R=iant, r
CC=dho, golang-dev
https://golang.org/cl/3687041

14 years agocrypto/tls: commit fixes which I hadn't saved.
Adam Langley [Wed, 15 Dec 2010 18:58:57 +0000 (13:58 -0500)]
crypto/tls: commit fixes which I hadn't saved.

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

14 years agomath: change float64 bias constant from 1022 to 1023
Eoghan Sherry [Wed, 15 Dec 2010 18:20:52 +0000 (13:20 -0500)]
math: change float64 bias constant from 1022 to 1023

This makes some subtle code easier to understand.

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

14 years agocrypto/tls: support CBC ciphers
Adam Langley [Wed, 15 Dec 2010 16:49:55 +0000 (11:49 -0500)]
crypto/tls: support CBC ciphers

This is largely based on ality's CL 2747042.

crypto/rc4: API break in order to conform to crypto/cipher's
Stream interface

cipher/cipher: promote to the default build

Since CBC differs between TLS 1.0 and 1.1, we downgrade and
support only 1.0 at the current time. 1.0 is what most of the
world uses.

Given this CL, it would be trival to add support for AES 256,
SHA 256 etc, but I haven't in order to keep the change smaller.

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

14 years agocodereview: keep quiet when not in use
Eoghan Sherry [Wed, 15 Dec 2010 16:49:43 +0000 (11:49 -0500)]
codereview: keep quiet when not in use

This prevents status messages from filling the
screen when using a command like 'hg log | less'.

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

14 years agoremove nacl
Russ Cox [Wed, 15 Dec 2010 16:49:23 +0000 (11:49 -0500)]
remove nacl

The recent linker changes broke NaCl support
a month ago, and there are no known users of it.

The NaCl code can always be recovered from the
repository history.

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

14 years agotest/bench: a couple fixes to timing.sh
Anthony Martin [Wed, 15 Dec 2010 14:47:13 +0000 (09:47 -0500)]
test/bench: a couple fixes to timing.sh

- Skip the gccgo tests if we don't have it
- Add -lm so nbody.c will compile
- Pass 2098 to the meteor test (cf. the shootout site)

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

14 years ago[68]l and runtime: GDB support for interfaces and goroutines.
Luuk van Dijk [Wed, 15 Dec 2010 11:00:43 +0000 (12:00 +0100)]
[68]l and runtime: GDB support for interfaces and goroutines.

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

14 years agoreflect: remove unnecessary indirection in TestCopy.
Nigel Tao [Wed, 15 Dec 2010 09:54:11 +0000 (20:54 +1100)]
reflect: remove unnecessary indirection in TestCopy.

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

14 years agogovet: allow directories as arguments, process recursively.
Rob Pike [Wed, 15 Dec 2010 01:09:24 +0000 (17:09 -0800)]
govet: allow directories as arguments, process recursively.

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

14 years agogodashboard: support submitting projects with non-ascii names
Ryan Hitchman [Wed, 15 Dec 2010 01:07:30 +0000 (12:07 +1100)]
godashboard: support submitting projects with non-ascii names

Fixes #1314.

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

14 years agohtml: parse "<h1>foo<h2>bar".
Nigel Tao [Wed, 15 Dec 2010 00:39:56 +0000 (11:39 +1100)]
html: parse "<h1>foo<h2>bar".

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

14 years agogob: Register should use the original type, not the indirected one.
Rob Pike [Tue, 14 Dec 2010 23:04:52 +0000 (15:04 -0800)]
gob: Register should use the original type, not the indirected one.
Fixes a bug reported on golang-nuts.

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

14 years agogovet: on error continue to the next file
Christopher Wedgwood [Tue, 14 Dec 2010 22:12:22 +0000 (14:12 -0800)]
govet: on error continue to the next file

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

14 years agogob: document the byte count used in the encoding of values.
Rob Pike [Tue, 14 Dec 2010 22:04:52 +0000 (14:04 -0800)]
gob: document the byte count used in the encoding of values.

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

14 years agoreflect: add Append and AppendSlice functions.
Nigel Tao [Tue, 14 Dec 2010 21:50:08 +0000 (08:50 +1100)]
reflect: add Append and AppendSlice functions.

R=r, nigeltao_gnome, rog, niemeyer
CC=golang-dev
https://golang.org/cl/3529042

14 years agoregexp: simplify code for brackets, per rsc suggestion
Rob Pike [Tue, 14 Dec 2010 20:01:35 +0000 (12:01 -0800)]
regexp: simplify code for brackets, per rsc suggestion

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

14 years agocompress/flate: implement Flush
Russ Cox [Tue, 14 Dec 2010 19:57:12 +0000 (14:57 -0500)]
compress/flate: implement Flush

This Flush is equivalent to zlib's Z_SYNC_FLUSH.
The addition of the explicit Writer type opens the
door to adding a PartialFlush if needed for SSH
and maybe even FullFlush.  It also opens the door
for a SetDictionary method to be added.

http://www.bolet.org/~pornin/deflate-flush.html
documents the various intricacies of flushing a
DEFLATE stream.

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

14 years agoregexp: speed up by about 30%.
Rob Pike [Tue, 14 Dec 2010 19:15:32 +0000 (11:15 -0800)]
regexp: speed up by about 30%.
The code used interfaces in a pretty, pedagogical way but not efficiently.
Remove unnecessary interface code for significant speedups.
Before:

regexp.BenchmarkLiteral  1000000       2629 ns/op
regexp.BenchmarkNotLiteral   100000      18131 ns/op
regexp.BenchmarkMatchClass   100000      26647 ns/op
regexp.BenchmarkMatchClass_InRange   100000      27092 ns/op
regexp.BenchmarkReplaceAll   100000      27014 ns/op

After:

regexp.BenchmarkLiteral  1000000       2077 ns/op
regexp.BenchmarkNotLiteral   100000      13738 ns/op
regexp.BenchmarkMatchClass   100000      20418 ns/op
regexp.BenchmarkMatchClass_InRange   100000      20999 ns/op
regexp.BenchmarkReplaceAll   100000      21825 ns/op

There's likely more to do without major surgery, but this is a simple, significant step.

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

14 years agosuffixarray: rename Data() -> Bytes()
Robert Griesemer [Tue, 14 Dec 2010 18:22:00 +0000 (10:22 -0800)]
suffixarray: rename Data() -> Bytes()

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

14 years agohttp: include DEL in the test for unprintable chars
Anthony Martin [Tue, 14 Dec 2010 17:26:30 +0000 (12:26 -0500)]
http: include DEL in the test for unprintable chars

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

14 years agobuild: remove intermediate yacc files in Make.ccmd
Anthony Martin [Tue, 14 Dec 2010 17:22:40 +0000 (12:22 -0500)]
build: remove intermediate yacc files in Make.ccmd

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

14 years agocrypto/tls: use rand.Reader in cert generation example
Anthony Martin [Tue, 14 Dec 2010 17:22:28 +0000 (12:22 -0500)]
crypto/tls: use rand.Reader in cert generation example

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

14 years agosmtp: add *tls.Config argument to StartTLS
Anthony Martin [Tue, 14 Dec 2010 17:22:08 +0000 (12:22 -0500)]
smtp: add *tls.Config argument to StartTLS

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

14 years agoruntime: write only to standard error
Russ Cox [Tue, 14 Dec 2010 16:52:42 +0000 (11:52 -0500)]
runtime: write only to standard error

Will mail a warning to golang-nuts once this is submitted.

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

14 years agotypo
Russ Cox [Tue, 14 Dec 2010 16:33:17 +0000 (11:33 -0500)]
typo

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

14 years agogo spec: fix two grammar typos
Anthony Martin [Tue, 14 Dec 2010 06:19:41 +0000 (22:19 -0800)]
go spec: fix two grammar typos

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

14 years agotoken/position: provide files iterator
Robert Griesemer [Tue, 14 Dec 2010 01:08:40 +0000 (17:08 -0800)]
token/position: provide files iterator

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/3541044

14 years agosuffixarray: provide accessor to data
Robert Griesemer [Tue, 14 Dec 2010 01:08:01 +0000 (17:08 -0800)]
suffixarray: provide accessor to data

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

14 years agogo_mem: goroutine exit is not special
Russ Cox [Mon, 13 Dec 2010 22:08:27 +0000 (17:08 -0500)]
go_mem: goroutine exit is not special

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

14 years agoruntime: remove paranoid mapping at 0
Russ Cox [Mon, 13 Dec 2010 21:57:35 +0000 (16:57 -0500)]
runtime: remove paranoid mapping at 0

Too many programs complain that we even try.
This was a bit of security paranoia and not worth
the bother.

Fixes #1340.

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

14 years agotime: fix bug in Ticker: shutdown using channel rather than memory
Rob Pike [Mon, 13 Dec 2010 21:52:19 +0000 (13:52 -0800)]
time: fix bug in Ticker: shutdown using channel rather than memory

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

14 years agogc: issue 1231
Russ Cox [Mon, 13 Dec 2010 21:51:19 +0000 (16:51 -0500)]
gc: issue 1231

Fixes #1231.

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

14 years agogc: align structs according to max alignment of fields
Russ Cox [Mon, 13 Dec 2010 21:22:19 +0000 (16:22 -0500)]
gc: align structs according to max alignment of fields
cc: same
runtime: test cc alignment (required moving #define of offsetof to runtime.h)
fix bug260

Fixes #482.
Fixes #609.

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

14 years agojson: check for invalid UTF-8
Russ Cox [Mon, 13 Dec 2010 20:51:11 +0000 (15:51 -0500)]
json: check for invalid UTF-8

Fixes #1250.

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

14 years agobuild: add a few missing --no-print-directory
Russ Cox [Mon, 13 Dec 2010 20:50:57 +0000 (15:50 -0500)]
build: add a few missing --no-print-directory

Reported by W. Michael Petullo <mike@flyn.org>

Fixes #1269.

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

14 years agogodefs: guard against structs with pad fields
Russ Cox [Mon, 13 Dec 2010 20:50:47 +0000 (15:50 -0500)]
godefs: guard against structs with pad fields

Fixes #1162.

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

14 years agogc: complex(0)
Russ Cox [Mon, 13 Dec 2010 20:34:45 +0000 (15:34 -0500)]
gc: complex(0)

Fixes #1232.

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

14 years agold: missing prototype
Russ Cox [Mon, 13 Dec 2010 20:26:52 +0000 (15:26 -0500)]
ld: missing prototype

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

14 years agogc: another shift bug
Russ Cox [Mon, 13 Dec 2010 18:42:51 +0000 (13:42 -0500)]
gc: another shift bug

Fixes #1316.

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

14 years agocgo: do not reset tag generator between files
Russ Cox [Mon, 13 Dec 2010 18:20:04 +0000 (13:20 -0500)]
cgo: do not reset tag generator between files

Clean up an error message and error exit too.
Insert blank line after "DO NOT EDIT" comment
to keep it from being a doc comment.

Fixes #1213.
Fixes #1222.

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

14 years agogc: introduce explicit alignments
Russ Cox [Mon, 13 Dec 2010 16:57:41 +0000 (11:57 -0500)]
gc: introduce explicit alignments

No semantic changes here, but working
toward being able to align structs based
on the maximum alignment of the fields
inside instead of having a fixed alignment
for all structs (issue 482).

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

14 years agogc: emit reflect correct reflect types
Russ Cox [Mon, 13 Dec 2010 15:05:20 +0000 (10:05 -0500)]
gc: emit reflect correct reflect types

Fixes #1169.

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

14 years agold: allow .o files with no symbols
Russ Cox [Mon, 13 Dec 2010 15:05:07 +0000 (10:05 -0500)]
ld: allow .o files with no symbols
Don't crash in dwarf for foreign functions.

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

14 years agoruntime/linux/386: set FPU to 64-bit precision
Russ Cox [Mon, 13 Dec 2010 15:04:53 +0000 (10:04 -0500)]
runtime/linux/386: set FPU to 64-bit precision

Fixes #550.

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

14 years agosyscall: remove terminating \r and \n from windows error messages
Alex Brainman [Mon, 13 Dec 2010 06:02:01 +0000 (17:02 +1100)]
syscall: remove terminating \r and \n from windows error messages

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

14 years agoFix windows build.
Wei Guangjing [Mon, 13 Dec 2010 05:41:02 +0000 (16:41 +1100)]
Fix windows build.

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

14 years agoA selection of trivials.
Gustavo Niemeyer [Sun, 12 Dec 2010 22:16:37 +0000 (14:16 -0800)]
A selection of trivials.

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

14 years agogodoc: improved textual search
Robert Griesemer [Sun, 12 Dec 2010 21:13:07 +0000 (13:13 -0800)]
godoc: improved textual search

- improved search result page
- clicking on files shows highlighted search phrase
  (.go files loose their godoc-specific formatting and
  highlighting in this mode - a better solution is in
  the works)
- support for textual results
- fixed bug with non-URL escaped URL parameter (Query)

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

14 years ago5g/8g, 8l, ld, prof: fix output of 32-bit values
Eoghan Sherry [Sun, 12 Dec 2010 19:40:19 +0000 (14:40 -0500)]
5g/8g, 8l, ld, prof: fix output of 32-bit values

If an %lld argument can be 32 or 64 bits wide, cast to vlong.
If always 32 bits, drop the ll.
Fixes #1336.

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

14 years agoreflect: rename reflect.ArrayCopy to be reflect.Copy.
Nigel Tao [Sun, 12 Dec 2010 09:27:29 +0000 (20:27 +1100)]
reflect: rename reflect.ArrayCopy to be reflect.Copy.

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

14 years agogofmt -s -w src
Mikio Hara [Sat, 11 Dec 2010 21:49:45 +0000 (13:49 -0800)]
gofmt -s -w src

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

14 years agogodoc: first cut at textual search
Robert Griesemer [Fri, 10 Dec 2010 22:40:22 +0000 (14:40 -0800)]
godoc: first cut at textual search

To enable use -fulltext flag; e.g.: godoc -v -fulltext -http=:7777

Enabling the fulltext index will use significantly more memory as
the text of all source code, the respective suffixarray, and the
file set data structure is kept in memory. At the moment there is
about 6Mb of source code (~1400 files) indexed under GOROOT.
Source code + suffix array together consume 5*(size of source) or
about 30Mb. The file set data structure consumes about 4b/src line.
By default only up to 5000 results are shown for now.

The presentation of the results needs tuning. In particular,
if a string is found, clicking on the respective file does not
highlight them, yet.

At the moment, only Go source files are indexed. Eventually,
the full text index should encompass other files as well.

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

14 years agomath: s/MinFloat/SmallestNonzeroFloat/
Russ Cox [Fri, 10 Dec 2010 19:39:09 +0000 (11:39 -0800)]
math: s/MinFloat/SmallestNonzeroFloat/

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

14 years agocgo: avoid self-interference of global names
Russ Cox [Fri, 10 Dec 2010 19:32:58 +0000 (11:32 -0800)]
cgo: avoid self-interference of global names

Fixes #1332.

R=iant, iant2
CC=golang-dev
https://golang.org/cl/3555041

14 years agonm: silently ignore .o files in .a files
Russ Cox [Fri, 10 Dec 2010 19:32:48 +0000 (11:32 -0800)]
nm: silently ignore .o files in .a files

Update #1334.

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

14 years agohtml: parse <table><tr><td> tags.
Nigel Tao [Fri, 10 Dec 2010 01:20:14 +0000 (12:20 +1100)]
html: parse <table><tr><td> tags.

Also, shorten fooInsertionMode to fooIM.

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

14 years agoos: make MkdirAll work with symlinks
Ryan Hitchman [Thu, 9 Dec 2010 23:43:45 +0000 (10:43 +1100)]
os: make MkdirAll work with symlinks

Fixes #1149.

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

14 years agoarm floating point simulation
Ken Thompson [Thu, 9 Dec 2010 22:45:27 +0000 (14:45 -0800)]
arm floating point simulation

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

14 years agohttp: ServeFile to handle Range header for partial requests
Andrew Gerrand [Thu, 9 Dec 2010 21:51:13 +0000 (08:51 +1100)]
http: ServeFile to handle Range header for partial requests
and send Content-Length.

Also includes some testing of the server code.

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

14 years agodashboard: fix project tag filter
Andrew Gerrand [Thu, 9 Dec 2010 21:29:34 +0000 (08:29 +1100)]
dashboard: fix project tag filter

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

14 years agotutorial: a couple of minor fixes.
Rob Pike [Thu, 9 Dec 2010 21:18:31 +0000 (16:18 -0500)]
tutorial: a couple of minor fixes.
Fixes #1333.

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

14 years agoxml: disallow invalid Unicode code points
Nigel Kerr [Thu, 9 Dec 2010 19:51:01 +0000 (14:51 -0500)]
xml: disallow invalid Unicode code points

Fixes #1259.

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

14 years agoA+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)
Russ Cox [Thu, 9 Dec 2010 19:49:21 +0000 (14:49 -0500)]
A+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)

R=r
CC=golang-dev, lstoakes, nk
https://golang.org/cl/3549041

14 years agoos: fix test of RemoveAll
Russ Cox [Thu, 9 Dec 2010 19:49:13 +0000 (14:49 -0500)]
os: fix test of RemoveAll

Fixes #22. (again)

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

14 years agosyscall: add network interface constants for linux/386, linux/amd64
Mikio Hara [Thu, 9 Dec 2010 18:55:59 +0000 (13:55 -0500)]
syscall: add network interface constants for linux/386, linux/amd64

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

14 years agogc: syntax error for incomplete chan type
Ryan Hitchman [Thu, 9 Dec 2010 18:41:24 +0000 (13:41 -0500)]
gc: syntax error for incomplete chan type

Fixes #932.

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

14 years agogo/ast: fix ast.Walk
Robert Griesemer [Thu, 9 Dec 2010 18:22:01 +0000 (10:22 -0800)]
go/ast: fix ast.Walk

- change Walk signature to use an ast.Node instead of interface{}
- add Pos functions to a couple of ast types to make them proper nodes
- explicit nil checks where a node can be nil; incorrect ASTs cause Walk to crash

For now ast.Walk is exercised extensively as part of godoc's indexer;
so we have some confidence in its correctness. But this needs a test,
eventually.

Fixes #1326.

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

14 years agogofmt: simplify "x, _ = range y" to "x = range y"
Robert Griesemer [Thu, 9 Dec 2010 18:11:57 +0000 (10:11 -0800)]
gofmt: simplify "x, _ = range y" to "x = range y"

(inspired by CL 3529041 by hitchmanr@gmail.com)

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

14 years agoos/inotify: new package
Balazs Lecz [Thu, 9 Dec 2010 18:11:39 +0000 (13:11 -0500)]
os/inotify: new package

This patch adds a new package: os/inotify, which
provides a Go wrapper to the Linux inotify system.

R=rsc, albert.strasheim, rog, jacek.masiulaniec
CC=golang-dev
https://golang.org/cl/2049043

14 years agogo/token,scanner: fix comments so godoc aligns properly
Robert Griesemer [Thu, 9 Dec 2010 18:11:00 +0000 (10:11 -0800)]
go/token,scanner: fix comments so godoc aligns properly

R=iant, r2
CC=golang-dev
https://golang.org/cl/3532042