]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoruntime: fix Caller crash on 386.
Russ Cox [Fri, 4 Dec 2009 01:24:14 +0000 (17:24 -0800)]
runtime: fix Caller crash on 386.

Fixes #176.

R=r
https://golang.org/cl/166044

15 years agofaq: add question about translation
Russ Cox [Fri, 4 Dec 2009 01:23:33 +0000 (17:23 -0800)]
faq: add question about translation

R=jini, r
https://golang.org/cl/163092

15 years agocodereview: do not gofmt deleted files
Russ Cox [Fri, 4 Dec 2009 01:23:11 +0000 (17:23 -0800)]
codereview: do not gofmt deleted files

R=r
https://golang.org/cl/164083

15 years agoMake.conf: fix if $HOME has spaces
Russ Cox [Fri, 4 Dec 2009 01:22:43 +0000 (17:22 -0800)]
Make.conf: fix if $HOME has spaces

R=r
https://golang.org/cl/164086

15 years agoruntime: malloc fixes
Russ Cox [Fri, 4 Dec 2009 01:22:23 +0000 (17:22 -0800)]
runtime: malloc fixes
  * throw away dead code
  * add mlookup counter
  * add malloc counter
  * set up for blocks with no pointers

Fixes #367.

R=r
https://golang.org/cl/165050

15 years agoThe String() method requires global state that makes it not work outside of this...
Rob Pike [Fri, 4 Dec 2009 01:14:32 +0000 (17:14 -0800)]
The String() method requires global state that makes it not work outside of this package,
so make it a local method (_String()).

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

15 years agoerror propagation in gob/encoder.
Rob Pike [Fri, 4 Dec 2009 01:12:57 +0000 (17:12 -0800)]
error propagation in gob/encoder.

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

15 years agoAdd ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer alloca...
Rob Pike [Thu, 3 Dec 2009 20:56:16 +0000 (12:56 -0800)]
Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation.
Use them in Copy and Copyn.
Speed up ReadFile by using ReadFrom and avoiding Copy altogether (a minor win).

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

15 years agogc: Allow allow data types up to 1GB
Christopher Wedgwood [Thu, 3 Dec 2009 20:46:34 +0000 (12:46 -0800)]
gc: Allow allow data types up to 1GB

R=rsc
https://golang.org/cl/164095

15 years ago- include type-associated consts and vars when filtering a PackageDoc
Robert Griesemer [Thu, 3 Dec 2009 19:25:20 +0000 (11:25 -0800)]
- include type-associated consts and vars when filtering a PackageDoc
- fixes a godoc issue (for instance, "godoc os EOF" now shows an entry)

R=r
CC=rsc
https://golang.org/cl/165042

15 years agogc: handle _ = <-c in select.
Russ Cox [Thu, 3 Dec 2009 09:30:19 +0000 (01:30 -0800)]
gc: handle _ = <-c in select.

Fixes #238.

R=ken2
https://golang.org/cl/163098

15 years agogc: recursive type error
Russ Cox [Thu, 3 Dec 2009 09:12:02 +0000 (01:12 -0800)]
gc: recursive type error

Fixes #245.

R=ken2
https://golang.org/cl/164094

15 years agogc: better diagnosis of initialization loops
Russ Cox [Thu, 3 Dec 2009 08:51:03 +0000 (00:51 -0800)]
gc: better diagnosis of initialization loops

Fixes bug 292.

R=ken2
https://golang.org/cl/164093

15 years agogc: minor import grammar bug fixes
Russ Cox [Thu, 3 Dec 2009 08:10:32 +0000 (00:10 -0800)]
gc: minor import grammar bug fixes

Fixes #364.

R=ken2
https://golang.org/cl/164092

15 years agominor improvement to formatting: don't allocate padding strings every time.
Rob Pike [Thu, 3 Dec 2009 08:04:40 +0000 (00:04 -0800)]
minor improvement to formatting: don't allocate padding strings every time.

R=rsc
https://golang.org/cl/164090

15 years agogc: function argument ordering bug
Russ Cox [Thu, 3 Dec 2009 07:54:51 +0000 (23:54 -0800)]
gc: function argument ordering bug

Fixes #370.

R=ken2
https://golang.org/cl/163097

15 years agogc: make 'invalid rune in string' a little less cryptic
Russ Cox [Thu, 3 Dec 2009 07:23:11 +0000 (23:23 -0800)]
gc: make 'invalid rune in string' a little less cryptic

Fixes #371.

R=ken2
https://golang.org/cl/164091

15 years agomove ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.
Rob Pike [Thu, 3 Dec 2009 06:02:14 +0000 (22:02 -0800)]
move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.
this breaks the dependency of package io on package bytes.

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

15 years agoRunes: turn string into []int
Peter Froehlich [Thu, 3 Dec 2009 04:47:38 +0000 (20:47 -0800)]
Runes: turn string into []int
Split: fixed typo in documentation

R=rsc, r, r1
https://golang.org/cl/157170

15 years agoupdated documentation for gofmt
Robert Griesemer [Thu, 3 Dec 2009 03:32:15 +0000 (19:32 -0800)]
updated documentation for gofmt

R=rsc
https://golang.org/cl/164085

15 years ago8g: discard tempalloc/tempfree experiment
Russ Cox [Thu, 3 Dec 2009 02:31:29 +0000 (18:31 -0800)]
8g: discard tempalloc/tempfree experiment
in favor of tempname.
allows optimizer to do more.
unfortunately, optimizer seems to be broken; disable it.

R=ken2
https://golang.org/cl/163091

15 years ago6g etc: groundwork for eliminating redundant bounds checks.
Russ Cox [Thu, 3 Dec 2009 01:30:07 +0000 (17:30 -0800)]
6g etc: groundwork for eliminating redundant bounds checks.
drop check in range over array.
drop check in [256]array indexed by byte.

R=ken2
https://golang.org/cl/163088

15 years agoAdd flag -tabindent to gofmt: forces use of
Robert Griesemer [Thu, 3 Dec 2009 00:57:15 +0000 (16:57 -0800)]
Add flag -tabindent to gofmt: forces use of
tabs for indentation even if -spaces is set.

Changes to gofmt:
- added -tabindent flag
- don't recompute parser and printer mode repeatedly

Changes to go/printer:
- provide new printing mode TabIndent

Changes to tabwriter:
- implement new mode TabIndent to use tabs independent
  of the actual padding character for leading empty columns
- distinguish between minimal cell width and tab width
  (tabwidth is only used if the output contains tabs,
  minwidth and padding are always considered)
- fixed and added more comments
- some additional factoring

By default, -tabindent is disabled and the default gofmt
behavior is unchanged. By setting -spaces and -tabindent,
gofmt will use tabs for indentation but do any other
alignment with spaces. This permits a user to change the
visible indentation by simply changing the editor's tab
width and the code will remain properly aligned without
the need to rerun gofmt.

R=rsc
https://golang.org/cl/163068

15 years agonet: test and fix support for 0-length datagram packets.
Russ Cox [Wed, 2 Dec 2009 23:17:49 +0000 (15:17 -0800)]
net: test and fix support for 0-length datagram packets.

Fixes #274.

R=r
CC=jonathan.r.hudson
https://golang.org/cl/163072

15 years agochange the naming example from Vector to Ring due to loss of vector.New()
Rob Pike [Wed, 2 Dec 2009 21:46:02 +0000 (13:46 -0800)]
change the naming example from Vector to Ring due to loss of vector.New()

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

15 years agoAdd copy to the list of predeclared functions.
Ian Lance Taylor [Wed, 2 Dec 2009 21:26:39 +0000 (13:26 -0800)]
Add copy to the list of predeclared functions.

R=gri
https://golang.org/cl/164081

15 years agogofmt: race condition in error reporting and setting exit code
Fazlul Shahriar [Wed, 2 Dec 2009 21:02:42 +0000 (13:02 -0800)]
gofmt: race condition in error reporting and setting exit code

How to reproduce:

$ mkdir /tmp/foo
$ cp /dev/null /tmp/foo/bar.go
$ chmod -r /tmp/foo/bar.go
$ gofmt /tmp/foo
open /tmp/foo/bar.go: permission denied
$ echo $? # should echo 2
0
$

Maybe you need to put a call to time.Sleep at the beginning of report().

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

15 years agoapply gofmt to json files
Robert Griesemer [Wed, 2 Dec 2009 19:40:54 +0000 (11:40 -0800)]
apply gofmt to json files

R=rsc
https://golang.org/cl/164071

15 years agofix segfault printing errors. add test case and improve messages.
Rob Pike [Wed, 2 Dec 2009 18:41:28 +0000 (10:41 -0800)]
fix segfault printing errors. add test case and improve messages.

Fixes #338.

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

15 years agotest that arrays work properly.
Rob Pike [Wed, 2 Dec 2009 18:25:14 +0000 (10:25 -0800)]
test that arrays work properly.
can't mix slices and arrays now; perhaps that should be a TODO

R=rsc
https://golang.org/cl/164079

15 years agocodereview: move reviewers to cc line after submit,
Russ Cox [Wed, 2 Dec 2009 17:10:59 +0000 (09:10 -0800)]
codereview: move reviewers to cc line after submit,
  so that the issue stops showing up on the
  per-reviewer dashboard page.

R=r
https://golang.org/cl/164075

15 years agotime: another bug in SecondsToUTC.
Russ Cox [Wed, 2 Dec 2009 16:27:57 +0000 (08:27 -0800)]
time: another bug in SecondsToUTC.
added random test to look for more.

Fixes #363.

R=r, cw
https://golang.org/cl/163071

15 years agoAdd Shutdown to 32-bit GNU/Linux build.
Ian Lance Taylor [Wed, 2 Dec 2009 16:24:14 +0000 (08:24 -0800)]
Add Shutdown to 32-bit GNU/Linux build.

Submitting as a TBR to fix the build.

R=dho, rsc
https://golang.org/cl/164078

15 years ago lxml.etree is the wrong location for this alt package
Devon H. O'Dell [Wed, 2 Dec 2009 16:18:26 +0000 (08:18 -0800)]
lxml.etree is the wrong location for this alt package

  on my linux machine this is the correct one. lxml.etree
  exists with an ElementTree class, but does not contain
  an .XML method.

R=rsc
https://golang.org/cl/163082

15 years agoxml.etree can also be lxml.etree (e.g. CentOS 5.4 with Python 2.4.3)
Devon H. O'Dell [Wed, 2 Dec 2009 09:16:38 +0000 (01:16 -0800)]
xml.etree can also be lxml.etree (e.g. CentOS 5.4 with Python 2.4.3)

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

15 years agotime: fix handling of Jan 1 1601, 1201, 801, ...
Russ Cox [Wed, 2 Dec 2009 07:38:06 +0000 (23:38 -0800)]
time: fix handling of Jan 1 1601, 1201, 801, ...

R=r
CC=hurtonm
https://golang.org/cl/164074

15 years agonet: fix netFD.Close races
Devon H. O'Dell [Wed, 2 Dec 2009 07:28:57 +0000 (23:28 -0800)]
net: fix netFD.Close races

Fixes #271.
Fixes #321.

R=rsc, agl, cw
CC=golang-dev
https://golang.org/cl/163052

15 years agoexplicitly catch attempt to decode into a value - must be a pointer to see the result.
Rob Pike [Wed, 2 Dec 2009 05:47:00 +0000 (21:47 -0800)]
explicitly catch attempt to decode into a value - must be a pointer to see the result.

R=rsc
https://golang.org/cl/163070

15 years agomake io.ReadFile use Stat.Size as a hint for preallocation
Rob Pike [Wed, 2 Dec 2009 05:44:24 +0000 (21:44 -0800)]
make io.ReadFile use Stat.Size as a hint for preallocation

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

15 years agoAdd syscall.Shutdown to FreeBSD i386/amd64
Devon H. O'Dell [Wed, 2 Dec 2009 05:43:39 +0000 (21:43 -0800)]
Add syscall.Shutdown to FreeBSD i386/amd64

Necessary for 163052

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

15 years ago8g: Match sgen definition to declaration
Evan Shaw [Wed, 2 Dec 2009 05:42:35 +0000 (21:42 -0800)]
8g: Match sgen definition to declaration

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

15 years agoFreeBSD needs #!/usr/bin/env bash (fixes broken build on FreeBSD)
Devon H. O'Dell [Wed, 2 Dec 2009 03:30:17 +0000 (19:30 -0800)]
FreeBSD needs #!/usr/bin/env bash (fixes broken build on FreeBSD)

R=gri
https://golang.org/cl/163067

15 years agosyscall: add Shutdown on OS X, add more constants in mkerror.sh
Russ Cox [Wed, 2 Dec 2009 00:53:43 +0000 (16:53 -0800)]
syscall: add Shutdown on OS X, add more constants in mkerror.sh

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

15 years agoAdd 'copy' as a Go builtin function for Vim syntax highlighter spec.
David Symonds [Wed, 2 Dec 2009 00:45:21 +0000 (16:45 -0800)]
Add 'copy' as a Go builtin function for Vim syntax highlighter spec.

R=rsc
https://golang.org/cl/163049

15 years agoupdate package unicode to Unicode 5.2
Rob Pike [Wed, 2 Dec 2009 00:22:21 +0000 (16:22 -0800)]
update package unicode to Unicode 5.2

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

15 years agogob: fix build
Russ Cox [Wed, 2 Dec 2009 00:18:27 +0000 (16:18 -0800)]
gob: fix build

TBR=r
https://golang.org/cl/163064

15 years agoIntegrated feedback by Ken.
Robert Griesemer [Wed, 2 Dec 2009 00:15:53 +0000 (16:15 -0800)]
Integrated feedback by Ken.
Easy stuff in this round, more to come.

R=iant, rsc, r, ken2
https://golang.org/cl/163058

15 years agoExplicitly return values where it's shadowing the parameter.
Christopher Wedgwood [Tue, 1 Dec 2009 23:54:49 +0000 (15:54 -0800)]
Explicitly return values where it's shadowing the parameter.

Bad returns noticed by "Devon H. O'Dell" <devon.odell@gmail.com>.

Resolves Issue 360.

R=rsc, dho, agl, agl1
CC=ukai
https://golang.org/cl/163055

15 years ago8g: fix 386 floating point stack bug
Charles L. Dorian [Tue, 1 Dec 2009 23:53:50 +0000 (15:53 -0800)]
8g: fix 386 floating point stack bug

Also fixes issue 310 comment 5 error.
Fixes #310.

R=rsc
https://golang.org/cl/163042

15 years agomore gob bugs
Rob Pike [Tue, 1 Dec 2009 23:31:28 +0000 (15:31 -0800)]
more gob bugs
1) need to send slice and array types (was only sending element types)
2) compatibleType needs to use decoder's type map

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

15 years agomake test.sh work again
Robert Griesemer [Tue, 1 Dec 2009 21:08:36 +0000 (13:08 -0800)]
make test.sh work again

R=rsc
https://golang.org/cl/164059

15 years agoA/C: add Charles L. Dorian
Russ Cox [Tue, 1 Dec 2009 20:45:41 +0000 (12:45 -0800)]
A/C: add Charles L. Dorian

R=r
https://golang.org/cl/164060

15 years agoAdded Sven Almgren to AUTHORS and CONTRIBUTORS
Sven Almgren [Tue, 1 Dec 2009 20:07:43 +0000 (12:07 -0800)]
Added Sven Almgren to AUTHORS and CONTRIBUTORS

R=rsc
https://golang.org/cl/163053

15 years agoa couple of usage fixups in prof
Rob Pike [Tue, 1 Dec 2009 19:35:34 +0000 (11:35 -0800)]
a couple of usage fixups in prof

R=rsc
https://golang.org/cl/161050

15 years agogofmt: use os.Stdin instead of opening /dev/stdin
Fazlul Shahriar [Tue, 1 Dec 2009 17:32:22 +0000 (09:32 -0800)]
gofmt: use os.Stdin instead of opening /dev/stdin

Opening /dev/stdin can sometimes fail. For example, in the acme editor,
executing "Edit ,|gofmt" fails with:

open /dev/stdin: no such device or address

Executing "Edit ,|ls -l /dev/stdin /proc/self/fd/0" gives:

lrwxrwxrwx 1 root root  15 2009-09-07 02:17 /dev/stdin -> /proc/self/fd/0
lrwx------ 1 fhs  users 64 2009-11-26 22:05 /proc/self/fd/0 -> socket:[5528230]

(This is my first change, and I've signed the individual contributor license agreement.)

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

15 years agosome godoc cleanup:
Robert Griesemer [Tue, 1 Dec 2009 17:15:05 +0000 (09:15 -0800)]
some godoc cleanup:
- simplified dealing with parse errors: no need to intersperse them in the source
- improve visibility of highlighted identifiers by showing them in bold

R=rsc
https://golang.org/cl/163051

15 years agoFix typo in spec
Fazlul Shahriar [Tue, 1 Dec 2009 05:23:58 +0000 (21:23 -0800)]
Fix typo in spec

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

15 years agoSyntax coloring and function navigation for BBEdit/TextWrangler
Anthony Starks [Tue, 1 Dec 2009 03:24:32 +0000 (19:24 -0800)]
Syntax coloring and function navigation for BBEdit/TextWrangler

R=rsc
CC=agl1
https://golang.org/cl/154123

15 years agoAdding to AUTHORS and CONTRIBUTORS as per http://golang.org/doc/contribute.html#copyright
Anthony Starks [Tue, 1 Dec 2009 03:24:11 +0000 (19:24 -0800)]
Adding to AUTHORS and CONTRIBUTORS as per http://golang.org/doc/contribute.html#copyright

R=rsc
https://golang.org/cl/163050

15 years agochange command-line argument to be
Roger Peppe [Mon, 30 Nov 2009 23:16:40 +0000 (15:16 -0800)]
change command-line argument to be
unnamed, not require -n, in line with other
entries.

R=rsc
CC=r
https://golang.org/cl/162061

15 years agoMake tests run on systems missing time utility
Sergey 'SnakE' Gromov [Mon, 30 Nov 2009 23:07:57 +0000 (15:07 -0800)]
Make tests run on systems missing time utility

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

15 years agoAdded my name to the AUTHORS and CONTRIBUTORS files.
Adrian O'Grady [Mon, 30 Nov 2009 22:27:37 +0000 (14:27 -0800)]
Added my name to the AUTHORS and CONTRIBUTORS files.

R=rsc
https://golang.org/cl/157153

15 years agoA first stab at porting the XCB X11 protocol bindings to go.
Tor Andersson [Mon, 30 Nov 2009 22:25:50 +0000 (14:25 -0800)]
A first stab at porting the XCB X11 protocol bindings to go.

The python script needs a checkout of xcb/proto to generate
an xproto.go file, which together with xgb.go provide functions
to access all of the core X11 protocol requests. I have included the
generated file.

Extensions and authentication methods are not implemented.

R=r, rsc, nigeltao_golang
https://golang.org/cl/162053

15 years agojson: Decode into native Go data structures
Sergey 'SnakE' Gromov [Mon, 30 Nov 2009 21:55:09 +0000 (13:55 -0800)]
json: Decode into native Go data structures

This patch adds an ability to convert JSON-encoded data into
a hierarchy of Go's native data types.

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

15 years agoTypo in comment.
Robert Griesemer [Mon, 30 Nov 2009 20:50:02 +0000 (12:50 -0800)]
Typo in comment.
Fixes #358.

R=rsc
CC=r
https://golang.org/cl/164043

15 years agosync.RWMutex: rewritten to add support for concurrent readers.
Péter Szabó [Mon, 30 Nov 2009 20:10:56 +0000 (12:10 -0800)]
sync.RWMutex: rewritten to add support for concurrent readers.

Also made sync.xadd public to help testing sync.RWMutex.

Also added unit tests for sync.RWMutex.

R=rsc
https://golang.org/cl/162044

15 years agoAdded a method on UDPConn so they can actually send broadcast packets.
Jonathan Wills [Mon, 30 Nov 2009 20:03:55 +0000 (12:03 -0800)]
Added a method on UDPConn so they can actually send broadcast packets.

R=rsc
https://golang.org/cl/162046

15 years agoa[b:len(a)] -> a[b:]
Christopher Wedgwood [Mon, 30 Nov 2009 20:03:43 +0000 (12:03 -0800)]
a[b:len(a)] -> a[b:]

R=r, rsc
CC=agl1
https://golang.org/cl/161070

15 years agoHandle \r as a whitespace when parsing JSON string.
Andrew Skiba [Mon, 30 Nov 2009 20:03:26 +0000 (12:03 -0800)]
Handle \r as a whitespace when parsing JSON string.
Fixes #272.

R=rsc
https://golang.org/cl/161061

15 years agoAdd trivial whitespace to CorruptInputError strings.
Christopher Wedgwood [Mon, 30 Nov 2009 20:03:10 +0000 (12:03 -0800)]
Add trivial whitespace to CorruptInputError strings.

R=r, rsc
https://golang.org/cl/161058

15 years agoMinimise bitrot: bytes.Copy -> copy
Christopher Wedgwood [Mon, 30 Nov 2009 19:57:21 +0000 (11:57 -0800)]
Minimise bitrot: bytes.Copy -> copy
(compile tested only)

R=r, rsc
https://golang.org/cl/161069

15 years agoPorts of lib9, libbio and libmach to Windows.
Hector Chu [Mon, 30 Nov 2009 19:53:11 +0000 (11:53 -0800)]
Ports of lib9, libbio and libmach to Windows.

R=rsc
https://golang.org/cl/157159

15 years agoAUTHORS+CONTRIBUTORS: more names; CLA verified
Russ Cox [Mon, 30 Nov 2009 19:38:41 +0000 (11:38 -0800)]
AUTHORS+CONTRIBUTORS: more names; CLA verified

R=gri
CC=r
https://golang.org/cl/163044

15 years agotemplate: two bug fixes / nits
Russ Cox [Mon, 30 Nov 2009 18:29:14 +0000 (10:29 -0800)]
template: two bug fixes / nits
  * diagnose template not created with New
    (current code just crashes)
  * write []byte uninterpreted
    (current code writes fmt format: "[65 65 65 65]")

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

15 years agocodereview: allow editing of local CL description
Russ Cox [Mon, 30 Nov 2009 18:28:48 +0000 (10:28 -0800)]
codereview: allow editing of local CL description
between hg clpatch and hg submit.

R=r
https://golang.org/cl/162059

15 years agoAUTHORS/CONTRIBUTORS: two more names
Russ Cox [Mon, 30 Nov 2009 18:28:31 +0000 (10:28 -0800)]
AUTHORS/CONTRIBUTORS: two more names

R=r, SnakE
CC=fhs, pts
https://golang.org/cl/162054

15 years agoFix example Makefile to avoid $GOROOT in case it has spaces.
Fumitoshi Ukai [Mon, 30 Nov 2009 05:22:05 +0000 (21:22 -0800)]
Fix example Makefile to avoid $GOROOT in case it has spaces.

R=rsc, sergio
https://golang.org/cl/162058

15 years agowebsocket: avoid $GOROOT in case it has spaces
Russ Cox [Mon, 30 Nov 2009 04:30:02 +0000 (20:30 -0800)]
websocket: avoid $GOROOT in case it has spaces

Fixes #115.

R=r, ukai, sergio
https://golang.org/cl/162057

15 years agocrypto/md4, exp/draw/x11: fix makefile to build when GOROOT has whitespaces
Sergio Luis O. B. Correia [Mon, 30 Nov 2009 02:14:49 +0000 (18:14 -0800)]
crypto/md4, exp/draw/x11: fix makefile to build when GOROOT has whitespaces

this is the exact same thing issue #115 is about. fix makefiles to use relative
path to work in the case we have whitespaces as part of GOROOT.

R=rsc
https://golang.org/cl/162055

15 years agocgo: use C type void for opaque types if dwarf.Common().Type returns nothing
Eden Li [Mon, 30 Nov 2009 02:14:39 +0000 (18:14 -0800)]
cgo: use C type void for opaque types if dwarf.Common().Type returns nothing

Ideally, the C name would come from the typedef or pointer that
references the Size<0 type, but we can't easily generate this without
performing a look-ahead to see if any referencing type will become opaque.

Fixes #334.
Fixes #281.

R=rsc
https://golang.org/cl/161056

15 years agoAdd WebSocket server framework hooked into http.
Fumitoshi Ukai [Sun, 29 Nov 2009 22:22:44 +0000 (14:22 -0800)]
Add WebSocket server framework hooked into http.

R=r, rsc
https://golang.org/cl/156071

15 years agoMake comment-start/-end changes buffer-local instead of global.
Austin Clements [Sun, 29 Nov 2009 22:22:07 +0000 (14:22 -0800)]
Make comment-start/-end changes buffer-local instead of global.

Fixes #290.

R=rsc
https://golang.org/cl/160070

15 years agoAdd myself to CONTRIBUTORS
Fumitoshi Ukai [Sun, 29 Nov 2009 22:18:04 +0000 (14:18 -0800)]
Add myself to CONTRIBUTORS

R=r, rsc
https://golang.org/cl/156070

15 years agoCorrect expression level for argument lists.
Robert Griesemer [Sun, 29 Nov 2009 22:11:52 +0000 (14:11 -0800)]
Correct expression level for argument lists.
Fixes #352.

R=rsc
https://golang.org/cl/161073

15 years agoa few utf8 benchmarks. on my mac:
Rob Pike [Wed, 25 Nov 2009 21:30:30 +0000 (13:30 -0800)]
a few utf8 benchmarks. on my mac:

utf8_test.BenchmarkRuneCountTenASCIIChars 20000000        108 ns/op
utf8_test.BenchmarkRuneCountTenJapaneseChars 10000000        199 ns/op
utf8_test.BenchmarkEncodeASCIIRune 500000000          6 ns/op
utf8_test.BenchmarkEncodeJapaneseRune 100000000         10 ns/op
utf8_test.BenchmarkDecodeASCIIRune 100000000         13 ns/op
utf8_test.BenchmarkDecodeJapaneseRune 100000000         21 ns/op

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

15 years agorewrite RuneCountInString to use range.
Rob Pike [Wed, 25 Nov 2009 19:39:34 +0000 (11:39 -0800)]
rewrite RuneCountInString to use range.

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

15 years agoInitial exp/draw/x11 implementation.
Nigel Tao [Wed, 25 Nov 2009 07:31:34 +0000 (18:31 +1100)]
Initial exp/draw/x11 implementation.

This provides an experimental X11 backend for the exp/draw interface.
It does not aim to provide a complete implementation of the X11 client protocol.

This works for me (Ubuntu Hardy 8.04, GOARCH=386). Your mileage my vary.

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

15 years agofix weird all.bash failures by running deps.bash before make clean runs in pkg directory.
Rob Pike [Wed, 25 Nov 2009 05:07:05 +0000 (21:07 -0800)]
fix weird all.bash failures by running deps.bash before make clean runs in pkg directory.
before this change, if pkg/Make.deps is missing or broken, clean.bash fails and the build dies
but not until much later.

add freebsd to error message about valid values of $GOOS

TODO: would be nice if this process exited when an error occurred. subshells make it hard

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

15 years agoHandle presence of illegal semicolon after package clause better.
Robert Griesemer [Wed, 25 Nov 2009 01:34:08 +0000 (17:34 -0800)]
Handle presence of illegal semicolon after package clause better.

R=r, r1
https://golang.org/cl/157167

15 years agoReplace sort.Sort call with heapify algorithm in Init.
Robert Griesemer [Wed, 25 Nov 2009 01:20:13 +0000 (17:20 -0800)]
Replace sort.Sort call with heapify algorithm in Init.
Fixed package comment.
Renamed some variables for symmetry, added more internal comments and more tests.
Fixes #304.

R=rsc
https://golang.org/cl/157166

15 years agogc: correct type check for x, ok map assignment
Russ Cox [Wed, 25 Nov 2009 00:11:48 +0000 (16:11 -0800)]
gc: correct type check for x, ok map assignment

Fixes #288.

R=ken2
https://golang.org/cl/157162

15 years agomake.bash: clear CDPATH to avoid output from cd
Russ Cox [Wed, 25 Nov 2009 00:01:35 +0000 (16:01 -0800)]
make.bash: clear CDPATH to avoid output from cd

Fixes #306.

R=r, r1
https://golang.org/cl/160060

15 years agoadd freebsd to the list of os'es.
Rob Pike [Wed, 25 Nov 2009 00:00:19 +0000 (16:00 -0800)]
add freebsd to the list of os'es.
make the GOOS/GOARCH pair a table to avoid the confusion caused when it was of the form linux/386.

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

15 years agotest case for large angles in trig functions
Ken Thompson [Tue, 24 Nov 2009 23:42:46 +0000 (15:42 -0800)]
test case for large angles in trig functions

R=rsc
https://golang.org/cl/157160

15 years agobad sin/cos for large angles.
Ken Thompson [Tue, 24 Nov 2009 23:01:44 +0000 (15:01 -0800)]
bad sin/cos for large angles.
fixes #326.

R=rsc
https://golang.org/cl/160059

15 years agotiming log update for new version of chameneos
Rob Pike [Tue, 24 Nov 2009 22:19:43 +0000 (14:19 -0800)]
timing log update for new version of chameneos

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

15 years agofix for broken build (built-in new was invisible due to a parameter called 'new')
Robert Griesemer [Tue, 24 Nov 2009 22:11:53 +0000 (14:11 -0800)]
fix for broken build (built-in new was invisible due to a parameter called 'new')

R=iant
https://golang.org/cl/160057

15 years agochange the rules for maintaining AUTHORS and CONTRIBUTORS files.
Rob Pike [Tue, 24 Nov 2009 22:04:43 +0000 (14:04 -0800)]
change the rules for maintaining AUTHORS and CONTRIBUTORS files.
the current system is too painful, so instead let's just have the coders tell us the details.
we can update the files ourselves.

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

15 years agoChange to container/vector interface:
Robert Griesemer [Tue, 24 Nov 2009 21:43:18 +0000 (13:43 -0800)]
Change to container/vector interface:
- removed New(len int) in favor of new(Vector).Resize(len, cap)
- removed Init(len int) in favor of Resize(len, cap)
- runs all.bash

Fixes #294.

R=rsc, r, r1
https://golang.org/cl/157143

15 years agoMention golang-dev as a default code review destination.
Ian Lance Taylor [Tue, 24 Nov 2009 21:36:54 +0000 (13:36 -0800)]
Mention golang-dev as a default code review destination.

R=rsc
CC=r
https://golang.org/cl/160056