]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
14 years agorelease.2010-01-13: final checkin, release notes weekly.2010-01-13
Russ Cox [Thu, 14 Jan 2010 01:08:59 +0000 (17:08 -0800)]
release.2010-01-13: final checkin, release notes

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

14 years agoclean up handling of numeric time zones
Rob Pike [Thu, 14 Jan 2010 00:57:38 +0000 (11:57 +1100)]
clean up handling of numeric time zones
allow formatting of ruby-style times.

Fixes #518.

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

14 years agocgo: Only allow numeric / string / character type constants for references
Devon H. O'Dell [Thu, 14 Jan 2010 00:48:14 +0000 (16:48 -0800)]
cgo: Only allow numeric / string / character type constants for references
to #defined things.

Fixes #520.

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

14 years agocontribute.html: suggest hg mail instead of hg upload
Russ Cox [Thu, 14 Jan 2010 00:44:40 +0000 (16:44 -0800)]
contribute.html: suggest hg mail instead of hg upload

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

14 years agocreate doc/talks/.
Russ Cox [Thu, 14 Jan 2010 00:26:22 +0000 (16:26 -0800)]
create doc/talks/.

move talk-20091030 down.
add talk given at Stanford 2010/01/12.
add doc/go-logo-white.png.

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

14 years agoDistinguish between html generation and html quoting in godoc formatters.
Robert Griesemer [Wed, 13 Jan 2010 23:18:56 +0000 (15:18 -0800)]
Distinguish between html generation and html quoting in godoc formatters.
Replacement for CL 184084; originally by Roger Peppe (rogpeppe@gmail.com).

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

14 years agovector: drop rule for bench, now in Make.pkg
Russ Cox [Wed, 13 Jan 2010 21:29:49 +0000 (13:29 -0800)]
vector: drop rule for bench, now in Make.pkg

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

14 years agogodoc: skip template wrapping for complete HTML files
Russ Cox [Wed, 13 Jan 2010 21:09:33 +0000 (13:09 -0800)]
godoc: skip template wrapping for complete HTML files

demo at http://wreck:8080/doc/
click on go_talk-20100112.html

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

14 years agoClarify when expressions are evaluated for a range clause.
Ian Lance Taylor [Wed, 13 Jan 2010 20:50:45 +0000 (12:50 -0800)]
Clarify when expressions are evaluated for a range clause.

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

14 years agocgo: handle C99 bool type
Devon H. O'Dell [Wed, 13 Jan 2010 18:25:28 +0000 (10:25 -0800)]
cgo: handle C99 bool type

Fixes #307.

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

14 years agocodereview: split name list only on commas; some user names have spaces
Russ Cox [Wed, 13 Jan 2010 17:09:06 +0000 (09:09 -0800)]
codereview: split name list only on commas; some user names have spaces

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

14 years agoruntime: reset DF flag after running external code on 386
Russ Cox [Wed, 13 Jan 2010 17:08:39 +0000 (09:08 -0800)]
runtime: reset DF flag after running external code on 386

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

14 years agodon't worry about the number of spaces when parsing.
Rob Pike [Wed, 13 Jan 2010 03:39:30 +0000 (14:39 +1100)]
don't worry about the number of spaces when parsing.
allow an underscore to stand for a space or digit if the following number is >=10.

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

14 years agoignore $GOARCH inside the compiler and linker.
Rob Pike [Wed, 13 Jan 2010 03:39:16 +0000 (14:39 +1100)]
ignore $GOARCH inside the compiler and linker.
by definition, they know what they are building for.
makes it easier to switch architectures when testing.

% 6g x.go
% 6l x.6
% 6.out
"Wed Jan 13 10:57:46 EST 2010"
% 8g x.go
% 8l x.8
% 8.out
"Wed Jan 13 10:57:46 EST 2010"
% echo $GOARCH

%

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

14 years ago Fix minor issues with updating go-mode in an empty buffer
Kevin Ballard [Wed, 13 Jan 2010 02:32:19 +0000 (13:32 +1100)]
Fix minor issues with updating go-mode in an empty buffer

  Sometimes during editing, when the buffer is emptied (for example,
  as part of a call to M-x gofmt), an error is raised when
  remove-text-properties is called. Ensure that these calls use point-max
  instead of buffer-size to determine their end point.

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

14 years agoto improve the chances for compatibility, open a window of unused ids
Rob Pike [Wed, 13 Jan 2010 01:06:43 +0000 (12:06 +1100)]
to improve the chances for compatibility, open a window of unused ids
and specify a lowest id granted to users.

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

14 years agofix typo found by kevin ballard
Rob Pike [Wed, 13 Jan 2010 01:06:33 +0000 (12:06 +1100)]
fix typo found by kevin ballard

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

14 years agoLight-weight scanner for general use.
Robert Griesemer [Wed, 13 Jan 2010 01:04:45 +0000 (17:04 -0800)]
Light-weight scanner for general use.

Emphasis on minimal interface and fast scanning.
Recognizes all Go literals by default. Easily
configurable to recognize different whitespace
characters and tokens.

Provides detailed position information for each
token.

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

14 years agoAdd 'bench' target to makefiles.
Adam Langley [Tue, 12 Jan 2010 23:43:20 +0000 (15:43 -0800)]
Add 'bench' target to makefiles.

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

14 years agokate: Highlighting improvements
Evan Shaw [Tue, 12 Jan 2010 22:33:28 +0000 (14:33 -0800)]
kate: Highlighting improvements

* Highlight built in functions
* Add copy built in function
* Handle multi-line strings

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

14 years agoruntime: fix bug in preemption checks; was causing "lock count" panics
Russ Cox [Tue, 12 Jan 2010 18:03:02 +0000 (10:03 -0800)]
runtime: fix bug in preemption checks; was causing "lock count" panics

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

14 years agoFix bug that prevented the gofmt test script being run on more
Roger Peppe [Tue, 12 Jan 2010 17:45:11 +0000 (09:45 -0800)]
Fix bug that prevented the gofmt test script being run on more
than one explicitly named file.

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

14 years agomath: special cases for Ceil, Exp, Floor, Log, Log10
Charles L. Dorian [Tue, 12 Jan 2010 05:28:02 +0000 (21:28 -0800)]
math: special cases for Ceil, Exp, Floor, Log, Log10

Added special case tests to all_test.go. Added tests to Floor,
in-lined tests in Exp and Log.

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

14 years agoasn1: fix marshaling of structures with >1 elements.
Adam Langley [Tue, 12 Jan 2010 02:54:13 +0000 (18:54 -0800)]
asn1: fix marshaling of structures with >1 elements.

Fixes #515.

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

14 years agoasn1: fix parsing of elements after a string in a structure.
Adam Langley [Tue, 12 Jan 2010 02:53:58 +0000 (18:53 -0800)]
asn1: fix parsing of elements after a string in a structure.

Fixes #516.

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

14 years agodelete debugging prints
Rob Pike [Tue, 12 Jan 2010 01:35:51 +0000 (17:35 -0800)]
delete debugging prints

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

14 years agodelete debugging prints
Rob Pike [Tue, 12 Jan 2010 01:35:06 +0000 (17:35 -0800)]
delete debugging prints

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

14 years agoadd pprof output format to prof.
Rob Pike [Tue, 12 Jan 2010 00:53:45 +0000 (16:53 -0800)]
add pprof output format to prof.
amd64 linux only.

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

14 years agomath: special cases for Fmod
Charles L. Dorian [Tue, 12 Jan 2010 00:20:51 +0000 (16:20 -0800)]
math: special cases for Fmod

Added special case tests to all_test.go for Fmod. Fixed Fmod [hung
for Fmod(+/-Inf, <finite>)]. Also added test for Ceil in all_test.go.

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

14 years agodoc/contribute.html: change copyright year
Bill Neubauer [Mon, 11 Jan 2010 21:06:58 +0000 (13:06 -0800)]
doc/contribute.html: change copyright year

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

14 years ago cgo: Make constants #define'd in C available to Go (as consts)
Devon H. O'Dell [Mon, 11 Jan 2010 21:05:26 +0000 (13:05 -0800)]
cgo: Make constants #define'd in C available to Go (as consts)

  Fixes #435

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

14 years agogc: clean opnames.h
Yongjian Xu [Mon, 11 Jan 2010 21:03:01 +0000 (13:03 -0800)]
gc: clean opnames.h

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

14 years agoRemove -oldprinter flag from gofmt; all code is
Robert Griesemer [Mon, 11 Jan 2010 20:58:13 +0000 (12:58 -0800)]
Remove -oldprinter flag from gofmt; all code is
now printed using the semicolon-free style.

Removed NoSemis flag and mechanism dealing with
optional semicolons from go/printer.

Updated all go/printer output files using the
semi-colon free style.

Changes have no formatting impact on checked in
go code under src and misc.

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

14 years agoClean up and make consistent the comments in the math package.
Rob Pike [Mon, 11 Jan 2010 20:38:31 +0000 (07:38 +1100)]
Clean up and make consistent the comments in the math package.

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

14 years agomath: fix pow10 comment, test portable Sqrt
Russ Cox [Mon, 11 Jan 2010 19:25:37 +0000 (11:25 -0800)]
math: fix pow10 comment, test portable Sqrt

R=r
CC= golang-dev, Charlie Dorian, golang-dev
https://golang.org/cl/184058

14 years agoReplicate signal names from syscall in os/signal.
David Symonds [Mon, 11 Jan 2010 19:23:46 +0000 (11:23 -0800)]
Replicate signal names from syscall in os/signal.

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

14 years agoPartial work-around for gofmt bug.
Robert Griesemer [Mon, 11 Jan 2010 18:38:06 +0000 (10:38 -0800)]
Partial work-around for gofmt bug.

Addresses some cases and respects position of
closing parenthesis; but doesn't work yet in
all cases. Heuristic; will need to be replaced
by a real solution eventually. Does not cause
existing code to be reformatted.

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

14 years agomath: Sqrt using 386 FPU.
Charles L. Dorian [Sun, 10 Jan 2010 23:41:07 +0000 (15:41 -0800)]
math: Sqrt using 386 FPU.

Note: sqrt_decl.go already in src/pkg/math/.

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

14 years agoruntime: check for preemption due to garbage collection
Russ Cox [Sat, 9 Jan 2010 17:47:45 +0000 (09:47 -0800)]
runtime: check for preemption due to garbage collection
in various already expensive routines.

helps keep cpu utilization up when GOMAXPROCS > 1,
but not a full solution.

http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2

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

14 years agocodereview: do not send mail when submitting for others
Russ Cox [Sat, 9 Jan 2010 17:47:14 +0000 (09:47 -0800)]
codereview: do not send mail when submitting for others

rename original_author to copied_from so that it reads
better when used as a condition.

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

14 years agomath: special cases for Atan, Asin and Acos
Charles L. Dorian [Fri, 8 Jan 2010 22:12:10 +0000 (14:12 -0800)]
math: special cases for Atan, Asin and Acos
Added tests for NaN and out-of-range values.
Combined asin.go and atan.go into atan.go.

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

14 years agofix typo
Rob Pike [Fri, 8 Jan 2010 20:32:26 +0000 (07:32 +1100)]
fix typo

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

14 years agogc: bug238
Russ Cox [Fri, 8 Jan 2010 08:01:03 +0000 (00:01 -0800)]
gc: bug238

Fixes #471.

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

14 years agogc: bug219, bug239, bug240
Russ Cox [Fri, 8 Jan 2010 07:24:48 +0000 (23:24 -0800)]
gc: bug219, bug239, bug240

Fixes #475.

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

14 years agogc: bug241
Russ Cox [Fri, 8 Jan 2010 07:20:00 +0000 (23:20 -0800)]
gc: bug241

Fixes #495.

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

14 years agoRewrite tokenizer to clean up and fix a bug with spaces before delimited block.
Rob Pike [Fri, 8 Jan 2010 06:49:55 +0000 (17:49 +1100)]
Rewrite tokenizer to clean up and fix a bug with spaces before delimited block.
Fixes #501.

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

14 years agoAdd builder scripts.
Adam Langley [Fri, 8 Jan 2010 02:45:45 +0000 (18:45 -0800)]
Add builder scripts.

These are the scripts behind godashboard.appspot.com. Nothing is
particularly beautiful about it, but it does run.

I still need to add support for per-builder keys and for running the
benchmarks.

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

14 years agoadd doc/devel/index.html, linked from nav bar
Russ Cox [Fri, 8 Jan 2010 02:23:41 +0000 (18:23 -0800)]
add doc/devel/index.html, linked from nav bar

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

14 years agocodereview: repeated hg mail sends "PTAL"
Russ Cox [Fri, 8 Jan 2010 02:23:30 +0000 (18:23 -0800)]
codereview: repeated hg mail sends "PTAL"

also send out hg mail for TBR submits

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

14 years agohttp: most of a URL shouldn't use URL-escaping
Russ Cox [Fri, 8 Jan 2010 02:10:29 +0000 (18:10 -0800)]
http: most of a URL shouldn't use URL-escaping

Fixes #502.

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

14 years agoAdd a parser to the time package, the inverse of time.Format
Rob Pike [Fri, 8 Jan 2010 01:59:20 +0000 (12:59 +1100)]
Add a parser to the time package, the inverse of time.Format

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

14 years agoadded some missing periods
Robert Griesemer [Thu, 7 Jan 2010 17:27:24 +0000 (09:27 -0800)]
added some missing periods

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

14 years agomake Format about twice as fast by removing allocations, using a bytes.Buffer
Rob Pike [Thu, 7 Jan 2010 03:36:54 +0000 (14:36 +1100)]
make Format about twice as fast by removing allocations, using a bytes.Buffer
add a benchmark

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

14 years agoupdate timing logs for benchmarks.
Rob Pike [Thu, 7 Jan 2010 03:36:28 +0000 (19:36 -0800)]
update timing logs for benchmarks.
some significant improvements:
reverse-complement
nbody (gccgo only)
regex-dna
pidigits
one mysterious drop:
binary-tree.go (gccgo only)

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

14 years ago8g: float->uint64 conversion optimization
Evan Shaw [Thu, 7 Jan 2010 03:28:19 +0000 (19:28 -0800)]
8g: float->uint64 conversion optimization

Using FUCOMIP instead of the FUCOMP-FSTSW-SAHF sequence gives better performance and saves code space.

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

14 years agolibmach: Add disassembly for newly implemented opcodes
Evan Shaw [Thu, 7 Jan 2010 03:26:04 +0000 (19:26 -0800)]
libmach: Add disassembly for newly implemented opcodes

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

14 years agoruntime: close TODO now that 8c bug is fixed
Russ Cox [Thu, 7 Jan 2010 03:24:11 +0000 (19:24 -0800)]
runtime: close TODO now that 8c bug is fixed

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

14 years agoadd a standard interface that wraps ReadByte, io.ReadByter
Rob Pike [Thu, 7 Jan 2010 02:29:43 +0000 (13:29 +1100)]
add a standard interface that wraps ReadByte, io.ReadByter

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

14 years agosync make-arm.bash with make.bash
Russ Cox [Thu, 7 Jan 2010 02:19:56 +0000 (18:19 -0800)]
sync make-arm.bash with make.bash

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

14 years ago8c: only refer to extern register variables in MOVL instructions
Russ Cox [Thu, 7 Jan 2010 02:18:07 +0000 (18:18 -0800)]
8c: only refer to extern register variables in MOVL instructions

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

14 years agodeps.bash: handle space between .go and \ in GOFILES=
Russ Cox [Thu, 7 Jan 2010 01:59:15 +0000 (17:59 -0800)]
deps.bash: handle space between .go and \ in GOFILES=

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

14 years agoPorted runtime to Windows.
Hector Chu [Thu, 7 Jan 2010 01:58:55 +0000 (17:58 -0800)]
Ported runtime to Windows.

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

14 years agotime: fix Makefile so deps.bash is happy (fixes build)
Russ Cox [Thu, 7 Jan 2010 00:35:28 +0000 (16:35 -0800)]
time: fix Makefile so deps.bash is happy (fixes build)

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

14 years agogodoc: serve index.html in place of directory listing, when present
Russ Cox [Wed, 6 Jan 2010 23:59:03 +0000 (15:59 -0800)]
godoc: serve index.html in place of directory listing, when present

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

14 years agoadd release log as doc/devel/release.html
Russ Cox [Wed, 6 Jan 2010 23:46:09 +0000 (15:46 -0800)]
add release log as doc/devel/release.html

won't appear online until next release

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

14 years agoUse remove-text-properties instead of
Austin Clements [Wed, 6 Jan 2010 23:45:43 +0000 (15:45 -0800)]
Use remove-text-properties instead of
remove-list-of-test-properties, since the latter is missing
from XEmacs.

Fixes #462.

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

14 years agohttp: avoid header duplication - take struct fields out of Header map
Russ Cox [Wed, 6 Jan 2010 23:45:30 +0000 (15:45 -0800)]
http: avoid header duplication - take struct fields out of Header map

R=r
CC=golang-dev, petar-m
https://golang.org/cl/183132

14 years agocgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.
Devon H. O'Dell [Wed, 6 Jan 2010 23:45:08 +0000 (15:45 -0800)]
cgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.

This keeps debug symbols in for e.g. unreferenced enums.

Fixes #479

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

14 years agoNew time formatter, time.Format(formatString)
Rob Pike [Wed, 6 Jan 2010 23:32:48 +0000 (10:32 +1100)]
New time formatter, time.Format(formatString)
The model is that formatString is a a representation of a standard time,
and that Format converts the time to that representation.
Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601.
There's also a humane Kitchen fomat: 3:04PM.

R=rsc, benolive, cw
CC=golang-dev
https://golang.org/cl/181130

14 years agoAdded me to authors and contributors.
Jan H. Hosang [Wed, 6 Jan 2010 21:55:47 +0000 (13:55 -0800)]
Added me to authors and contributors.

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

14 years agoFix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
Devon H. O'Dell [Wed, 6 Jan 2010 15:47:56 +0000 (07:47 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
QUOTED_GOBIN. Re-take of 181077; fixes copy-pasta that broke build.

Fixes #468

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

14 years agoAdd http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.
Ivan Krasin [Wed, 6 Jan 2010 15:47:40 +0000 (07:47 -0800)]
Add http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.

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

14 years agoPropagate error to the caller in json.Marshal. Fixes issue 445.
Ivan Krasin [Wed, 6 Jan 2010 15:25:17 +0000 (07:25 -0800)]
Propagate error to the caller in json.Marshal. Fixes issue 445.

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

14 years agorelease.2010-01-05
Russ Cox [Wed, 6 Jan 2010 01:15:56 +0000 (17:15 -0800)]
release.2010-01-05

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

14 years agohgtags: delete "release" (prepare for new release) weekly.2010-01-05
Russ Cox [Wed, 6 Jan 2010 01:12:44 +0000 (17:12 -0800)]
hgtags: delete "release" (prepare for new release)

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

14 years ago8a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructions
Evan Shaw [Wed, 6 Jan 2010 01:06:41 +0000 (17:06 -0800)]
8a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructions

Fixes #447

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

14 years agorollback of https://golang.org/cl/181077
Russ Cox [Wed, 6 Jan 2010 00:54:27 +0000 (16:54 -0800)]
rollback of https://golang.org/cl/181077
(broke build)

TBR=dho
https://golang.org/cl/181139

14 years agoxml: Fix comment so that example code compiles
Evan Shaw [Wed, 6 Jan 2010 00:50:52 +0000 (16:50 -0800)]
xml: Fix comment so that example code compiles

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

14 years agoUpdate Emacs go-mode for new semicolon rule.
Austin Clements [Wed, 6 Jan 2010 00:50:36 +0000 (16:50 -0800)]
Update Emacs go-mode for new semicolon rule.

Fixes #415.

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

14 years agobig: fix ProbablyPrime bug, comments
Russ Cox [Wed, 6 Jan 2010 00:49:05 +0000 (16:49 -0800)]
big: fix ProbablyPrime bug, comments

(changes adopted from alc, agl)

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

14 years agoFix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of QUOTED_GOBIN
Devon H. O'Dell [Wed, 6 Jan 2010 00:22:40 +0000 (16:22 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of QUOTED_GOBIN

Fixes #468

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

14 years agosyscall: add nanosleep on FreeBSD
Devon H. O'Dell [Tue, 5 Jan 2010 17:21:15 +0000 (09:21 -0800)]
syscall: add nanosleep on FreeBSD

Fixes #461

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

14 years agonet: make Dial correctly return nil on error.
Roger Peppe [Tue, 5 Jan 2010 17:20:02 +0000 (09:20 -0800)]
net: make Dial correctly return nil on error.

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

14 years agoremove reference to "basic literal" since it's never defined
Robert Griesemer [Tue, 5 Jan 2010 01:28:02 +0000 (17:28 -0800)]
remove reference to "basic literal" since it's never defined

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

14 years agoSimplified parser interface.
Robert Griesemer [Tue, 5 Jan 2010 01:26:01 +0000 (17:26 -0800)]
Simplified parser interface.

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

14 years agoCheck for errors when writing fields of a struct.
Rob Pike [Tue, 5 Jan 2010 00:33:06 +0000 (11:33 +1100)]
Check for errors when writing fields of a struct.

R=rsc
CC=golang-dev, jack.palevich
https://golang.org/cl/183109

14 years agoAllow a nil Ident to print without crashing.
Roger Peppe [Mon, 4 Jan 2010 18:34:37 +0000 (10:34 -0800)]
Allow a nil Ident to print without crashing.
Allow Walk of []Decl

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

14 years agofix up YB and add ZB, EB in example
Rob Pike [Sun, 3 Jan 2010 20:36:39 +0000 (07:36 +1100)]
fix up YB and add ZB, EB in example

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

14 years agoRemove redundant size check in resize. Let callers worry about that and resize should...
Yongjian Xu [Sat, 2 Jan 2010 00:09:22 +0000 (11:09 +1100)]
Remove redundant size check in resize. Let callers worry about that and resize should just do "resize".

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

14 years agotrivial bug: []byte is special but [3]byte is not.
Rob Pike [Thu, 31 Dec 2009 01:47:20 +0000 (12:47 +1100)]
trivial bug: []byte is special but [3]byte is not.
modify a test to verify the fix.

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

14 years agoMore Xcode support.
Robert Griesemer [Wed, 30 Dec 2009 23:30:57 +0000 (15:30 -0800)]
More Xcode support.
Recognize special comments starting
with TODO or BUG.

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

14 years agoDocument how to build gccgo to use gold.
Ian Lance Taylor [Tue, 29 Dec 2009 22:59:08 +0000 (14:59 -0800)]
Document how to build gccgo to use gold.

This provides full support for discontiguous stacks.

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

14 years agoTest case for issue 475 and related bug.
Robert Griesemer [Tue, 29 Dec 2009 22:44:56 +0000 (14:44 -0800)]
Test case for issue 475 and related bug.

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

14 years agoImproved Xcode support
Ken Friedenbach [Tue, 29 Dec 2009 22:43:54 +0000 (14:43 -0800)]
Improved Xcode support

Added definition for raw string.
Added definitions for function and method declarations.
Enabled function, method, and type declarations to appear in Editor pop up menu.
Fixes #466.

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

14 years agoadded author/contributor
Robert Griesemer [Tue, 29 Dec 2009 22:43:25 +0000 (14:43 -0800)]
added author/contributor

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

14 years agotest case for issue 471
Robert Griesemer [Tue, 29 Dec 2009 22:01:09 +0000 (14:01 -0800)]
test case for issue 471

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

14 years agoimprove some type switches now that multiple types per case are supported.
Rob Pike [Tue, 29 Dec 2009 21:33:48 +0000 (08:33 +1100)]
improve some type switches now that multiple types per case are supported.

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

14 years agoApply symmetric changes to sha1 and sha256 as to md4 and md5.
Robert Griesemer [Tue, 29 Dec 2009 19:41:44 +0000 (11:41 -0800)]
Apply symmetric changes to sha1 and sha256 as to md4 and md5.

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

14 years agoPNG decoder now handles transparent paletted images.
Nigel Tao [Tue, 29 Dec 2009 04:23:55 +0000 (15:23 +1100)]
PNG decoder now handles transparent paletted images.
Fixes #439.

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

14 years agoJPEG decoder now handles RST (restart) markers.
Nigel Tao [Tue, 29 Dec 2009 04:20:53 +0000 (15:20 +1100)]
JPEG decoder now handles RST (restart) markers.

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