]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoA <- token in an expression may introduce a channel type.
Robert Griesemer [Mon, 25 Jan 2010 20:03:53 +0000 (12:03 -0800)]
A <- token in an expression may introduce a channel type.
Fixes #530.

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

15 years agoScoping snapshot.
Robert Griesemer [Mon, 25 Jan 2010 18:06:18 +0000 (10:06 -0800)]
Scoping snapshot.
- separate parsing from declaration
- setup of correct scopes

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

15 years agold: do not load the same object file multiple times.
Russ Cox [Mon, 25 Jan 2010 16:53:27 +0000 (08:53 -0800)]
ld: do not load the same object file multiple times.
eliminates spurious multiple initialization errors.

give more information in the multiple init errors that remain.

Fixes #87.

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

15 years agoRemove top-level (src/) Makefile.
Christopher Wedgwood [Mon, 25 Jan 2010 08:09:46 +0000 (00:09 -0800)]
Remove top-level (src/) Makefile.

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

15 years agogc: record full package paths in runtime type data
Russ Cox [Mon, 25 Jan 2010 07:33:59 +0000 (23:33 -0800)]
gc: record full package paths in runtime type data

detect compilation of special package runtime with
compiler flag instead of package name.

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

15 years agogc: bug247, reported by rob
Russ Cox [Mon, 25 Jan 2010 06:42:18 +0000 (22:42 -0800)]
gc: bug247, reported by rob

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

15 years agogc: cut some dead code, fix 6g -S output
Russ Cox [Mon, 25 Jan 2010 06:36:26 +0000 (22:36 -0800)]
gc: cut some dead code, fix 6g -S output

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

15 years agolist awk in the dependencies needed for installation
Rob Pike [Mon, 25 Jan 2010 02:46:57 +0000 (13:46 +1100)]
list awk in the dependencies needed for installation
(it is installed by apt-get install gawk, I believe)

Fixes #557.

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

15 years agolog.Fatal does not exist. Use log.Crash.
Rob Pike [Sun, 24 Jan 2010 20:48:31 +0000 (07:48 +1100)]
log.Fatal does not exist. Use log.Crash.

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

15 years agoeliminate the package global name space assumption in object files
Russ Cox [Sat, 23 Jan 2010 01:06:20 +0000 (17:06 -0800)]
eliminate the package global name space assumption in object files

5g/6g/8g: add import statements to export metadata, mapping package path to package name.
recognize "" as the path of the package in export metadata.
use "" as the path of the package in object symbol names.

5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package.

5l/6l/8l: rewrite "" in symbol names as object files are read.

gotest: handle new symbol names.

gopack: handle new import lines in export metadata.

Collectively, these changes eliminate the assumption of a global
name space in the object file formats.  Higher level pieces such as
reflect and the computation of type hashes still depend on the
assumption; we're not done yet.

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

15 years ago5a/6a/8a: avoid fixed-sized file name buffer
Dean Prichard [Sat, 23 Jan 2010 00:59:17 +0000 (16:59 -0800)]
5a/6a/8a: avoid fixed-sized file name buffer

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

15 years agoA+C: Dean Prichard (individual CLA)
Russ Cox [Sat, 23 Jan 2010 00:58:46 +0000 (16:58 -0800)]
A+C: Dean Prichard (individual CLA)

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

15 years agogc: do not build builtin.c automatically; use golden copy instead.
Russ Cox [Sat, 23 Jan 2010 00:58:33 +0000 (16:58 -0800)]
gc: do not build builtin.c automatically; use golden copy instead.

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

15 years agotypo
Russ Cox [Fri, 22 Jan 2010 22:24:17 +0000 (14:24 -0800)]
typo

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

15 years agoFix build: add new file to Makefile.
Ian Lance Taylor [Fri, 22 Jan 2010 15:12:54 +0000 (07:12 -0800)]
Fix build: add new file to Makefile.

TBR=frm.adiputra
CC=golang-dev
https://golang.org/cl/193055

15 years agoAdd authentication.
Firmansyah Adiputra [Fri, 22 Jan 2010 06:55:44 +0000 (17:55 +1100)]
Add authentication.

Other code fixing:
- Fixed bugs in get32.
- Fix code for parsing display string (as a new function).
- Fix code for connecting to X server. The old code only work
  if the server is listening to TCP port, otherwise it doesn't
  work (at least in my PC).

R=nigeltao_golang, rsc, jhh
CC=golang-dev
https://golang.org/cl/183111

15 years agoA+C: add Firmansyah Adiputra (individual CLA)
Nigel Tao [Fri, 22 Jan 2010 03:44:49 +0000 (14:44 +1100)]
A+C: add Firmansyah Adiputra (individual CLA)

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

15 years agoTrim space on input to make searching more robust.
Christopher Wedgwood [Fri, 22 Jan 2010 03:26:15 +0000 (14:26 +1100)]
Trim space on input to make searching more robust.

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

15 years agopart 2 of sudoaddable optimization
Ken Thompson [Wed, 20 Jan 2010 21:07:14 +0000 (13:07 -0800)]
part 2 of sudoaddable optimization

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

15 years agocodereview: accommodate recent change to ui.prompt
Russ Cox [Wed, 20 Jan 2010 17:49:35 +0000 (09:49 -0800)]
codereview: accommodate recent change to ui.prompt

Fixes #525.

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

15 years agocleanup toward eliminating package global name space
Russ Cox [Wed, 20 Jan 2010 05:34:44 +0000 (21:34 -0800)]
cleanup toward eliminating package global name space
  * switch to real dot (.) instead of center dot (·) everywhere in object files.
    before it was half and half depending on where in the name it appeared.
  * in 6c/6a/etc identifiers, · can still be used but turns into . immediately.
  * in export metadata, replace package identifiers with quoted strings
    (still package names, not paths).

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

15 years agoruntime: wait to allocate mach semaphores backing Locks until needed
Russ Cox [Wed, 20 Jan 2010 05:14:15 +0000 (21:14 -0800)]
runtime: wait to allocate mach semaphores backing Locks until needed

need better management of mach semaphores eventually
but this avoids allocating them for uncontended Locks.

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

15 years agoAdd explicit locking.
Ian Lance Taylor [Wed, 20 Jan 2010 05:09:58 +0000 (21:09 -0800)]
Add explicit locking.

Since gcco runs goroutines in independent threads, it needs
locking for the global variables.  This shows up when I use
ordinary increments rather than locked increments for var++.

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

15 years agostart of better addressing of
Ken Thompson [Wed, 20 Jan 2010 03:59:57 +0000 (19:59 -0800)]
start of better addressing of
arrays/slices in structures

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

15 years agofirst part of networked channels.
Rob Pike [Wed, 20 Jan 2010 03:12:29 +0000 (14:12 +1100)]
first part of networked channels.

limitations:
poor error handling
teardown not done
exporter must send, importer must receive
testing is rudimentary at best

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

15 years agohttp: handle old HTTP/1.0 unchunked "read to EOF" bodies.
Russ Cox [Wed, 20 Jan 2010 01:46:56 +0000 (17:46 -0800)]
http: handle old HTTP/1.0 unchunked "read to EOF" bodies.
Was trying to interpret raw body as chunked body.

Add test for ReadResponse.

Fixes #544.

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

15 years agotime: make tick.Stop a little more robust
Russ Cox [Wed, 20 Jan 2010 01:46:21 +0000 (17:46 -0800)]
time: make tick.Stop a little more robust

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

15 years agogc: const debug bool = false
Russ Cox [Tue, 19 Jan 2010 23:25:44 +0000 (15:25 -0800)]
gc: const debug bool = false

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

15 years agocompress/zlib: add example to doc comment
Russ Cox [Tue, 19 Jan 2010 21:09:50 +0000 (13:09 -0800)]
compress/zlib: add example to doc comment

Fixes #548.

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

15 years agold: unused variable
Russ Cox [Tue, 19 Jan 2010 21:09:27 +0000 (13:09 -0800)]
ld: unused variable

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

15 years agohash: document that Sum does not change hash state
Russ Cox [Tue, 19 Jan 2010 18:50:04 +0000 (10:50 -0800)]
hash: document that Sum does not change hash state
crypto/*: implement and test proper Sum

Fixes #216.

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

15 years agolibc: add goos, goarch, goroot. fixes build
Russ Cox [Tue, 19 Jan 2010 17:08:05 +0000 (09:08 -0800)]
libc: add goos, goarch, goroot.  fixes build

TBR=r
CC=golang-dev
https://golang.org/cl/190059

15 years agoSignificant extension to http.Response, which now adheres to the
Petar Maymounkov [Tue, 19 Jan 2010 05:46:59 +0000 (21:46 -0800)]
Significant extension to http.Response, which now adheres to the
usage pattern of http.Request and paves the way to persistent connection
handling.

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

15 years agobuild: move GOOS, GOARCH, GOROOT lookup into central library.
Russ Cox [Tue, 19 Jan 2010 05:46:46 +0000 (21:46 -0800)]
build: move GOOS, GOARCH, GOROOT lookup into central library.
bake default values in during build.

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

15 years agoA+C: add Petar Maymounkov (individual CLA)
Russ Cox [Tue, 19 Jan 2010 05:14:59 +0000 (21:14 -0800)]
A+C: add Petar Maymounkov (individual CLA)

R=iant
CC=golang-dev, petar-m
https://golang.org/cl/189095

15 years agoadd bug246 (issue 492)
Russ Cox [Tue, 19 Jan 2010 02:26:10 +0000 (18:26 -0800)]
add bug246 (issue 492)

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

15 years agogc: bug245
Russ Cox [Tue, 19 Jan 2010 01:30:15 +0000 (17:30 -0800)]
gc: bug245

Fixes #529.

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

15 years agogc: multiple return value at top-level invoked multiple times
Russ Cox [Tue, 19 Jan 2010 01:00:38 +0000 (17:00 -0800)]
gc: multiple return value at top-level invoked multiple times

Fixes #402.

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

15 years agogc: bug243
Russ Cox [Tue, 19 Jan 2010 00:52:18 +0000 (16:52 -0800)]
gc: bug243

Fixes #481.

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

15 years agogc: more precise handling of import .
Russ Cox [Tue, 19 Jan 2010 00:26:40 +0000 (16:26 -0800)]
gc: more precise handling of import .

Fixes #455.

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

15 years agogc: be more specific about copy type errors
Russ Cox [Tue, 19 Jan 2010 00:00:13 +0000 (16:00 -0800)]
gc: be more specific about copy type errors

Fixes #539.

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

15 years agoreflect: fix garbage collection bug in Call.
Russ Cox [Mon, 18 Jan 2010 23:59:50 +0000 (15:59 -0800)]
reflect: fix garbage collection bug in Call.

Fixes #476.

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

15 years agonet: enable UDP broadcast before it is needed (instead of after)
Russ Cox [Mon, 18 Jan 2010 23:59:32 +0000 (15:59 -0800)]
net: enable UDP broadcast before it is needed (instead of after)

Fixes #526.

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

15 years agospec: mention Inf and NaN are supported at run time.
Russ Cox [Mon, 18 Jan 2010 23:59:14 +0000 (15:59 -0800)]
spec: mention Inf and NaN are supported at run time.
add hyperlink at mention of package reflect.

Fixes #438.

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

15 years agoUrgent parser/gofmt fix.
Robert Griesemer [Sat, 16 Jan 2010 07:17:48 +0000 (23:17 -0800)]
Urgent parser/gofmt fix.
Wrong position information for identifier
could lead to destructive reformatting of
source via hg gofmt.

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

15 years agogive bufio.Writer.WriteString the same signature as
Rob Pike [Sat, 16 Jan 2010 02:06:50 +0000 (13:06 +1100)]
give bufio.Writer.WriteString the same signature as
bytes.Buffer.WriteString

Fixes #535.

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

15 years agoTest order of evaluation in tuple assignments.
Ian Lance Taylor [Fri, 15 Jan 2010 22:02:53 +0000 (14:02 -0800)]
Test order of evaluation in tuple assignments.

gccgo currently passes this test; 8g currently does not.  I
think I counted everything out right.

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

15 years agoDon't check array bounds if we have been told not to.
Ian Lance Taylor [Fri, 15 Jan 2010 21:51:57 +0000 (13:51 -0800)]
Don't check array bounds if we have been told not to.

Fixes range.go test for 6g.

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

15 years agotemplate: look inside interface values
Russ Cox [Fri, 15 Jan 2010 21:49:31 +0000 (13:49 -0800)]
template: look inside interface values

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

15 years agoUse /etc/hosts when resolving names.
Yves Junqueira [Fri, 15 Jan 2010 21:43:14 +0000 (13:43 -0800)]
Use /etc/hosts when resolving names.

http://code.google.com/p/go/issues/detail?id=313

This conflics with Chris' patch at:
https://golang.org/cl/181063

But I believe this is more complete since it has a simple caching and proper tests.

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

15 years ago Steps towards tracking scopes for identifiers.
Robert Griesemer [Fri, 15 Jan 2010 21:27:45 +0000 (13:27 -0800)]
Steps towards tracking scopes for identifiers.

- Identifiers refer now to the language entity (Object)
  that they denote. At the moment this is at best an
  approximation.

- Initial data structures for language entities (Objects)
          and expression types (Type) independent of the actual
  type notations.

- Initial support for declaring and looking up identifiers.

- Updated various dependent files and added support functions.

- Extensively tested to avoid breakage. This is an AST change.

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

15 years agoImplemented ExtendFront/Back functions to insert a list of elements into a list.
Jan H. Hosang [Fri, 15 Jan 2010 21:26:13 +0000 (13:26 -0800)]
Implemented ExtendFront/Back functions to insert a list of elements into a list.

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

15 years agomath: special cases for Hypot
Charles L. Dorian [Fri, 15 Jan 2010 21:21:47 +0000 (13:21 -0800)]
math: special cases for Hypot

Added special case tests to all_test.go. Added tests to hypot.go,
otherwise hangs.

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

15 years agomath: 386 FPU functions
Charles L. Dorian [Fri, 15 Jan 2010 21:21:36 +0000 (13:21 -0800)]
math: 386 FPU functions

sin, cos, tan, asin, acos, atan, exp, log, log10,
floor, ceil, and fabs

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

15 years agoTest evaluation of range variables.
Ian Lance Taylor [Fri, 15 Jan 2010 18:40:30 +0000 (10:40 -0800)]
Test evaluation of range variables.

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

15 years agobe more explicit about initialization of embedded fields.
Rob Pike [Fri, 15 Jan 2010 00:59:53 +0000 (11:59 +1100)]
be more explicit about initialization of embedded fields.

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

15 years agoFix s/Width/Height/ typo in draw.go.
Nigel Tao [Fri, 15 Jan 2010 00:58:24 +0000 (11:58 +1100)]
Fix s/Width/Height/ typo in draw.go.
Fixes #531.

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

15 years agofix +0000 time zones.
Rob Pike [Thu, 14 Jan 2010 23:56:16 +0000 (10:56 +1100)]
fix +0000 time zones.

Fixes #527.

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

15 years agoruntime: add demo running Go on raw (emulated) hw
Russ Cox [Thu, 14 Jan 2010 03:51:59 +0000 (19:51 -0800)]
runtime: add demo running Go on raw (emulated) hw

8l: add GOOS=pchw, stop spelling out all the elf numbers.

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

15 years agodoc/devel/release.html: fix dumb typo
Russ Cox [Thu, 14 Jan 2010 02:22:16 +0000 (18:22 -0800)]
doc/devel/release.html: fix dumb typo

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

15 years agoruntime: GS already set up by setldt in Linux/386; remove duplicate
Devon H. O'Dell [Thu, 14 Jan 2010 01:50:12 +0000 (17:50 -0800)]
runtime: GS already set up by setldt in Linux/386; remove duplicate

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

15 years agoruntime cleanup.
Russ Cox [Thu, 14 Jan 2010 01:50:02 +0000 (17:50 -0800)]
runtime cleanup.
  * move memory code into $GOOS-specific directory.
  * allow printing of static strings < 256 bytes.
    (dynamic strings will bump maxstring as they are allocated.)
  * use cgo2c for runtime.mal.

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

15 years ago.hgtags: add release, release.2010-01-13
Russ Cox [Thu, 14 Jan 2010 01:12:14 +0000 (17:12 -0800)]
.hgtags: add release, release.2010-01-13

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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