Ian Lance Taylor
32e2ae0b18
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
2010-01-15 14:02:53 -08:00
Ian Lance Taylor
c332ff42fe
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
2010-01-15 13:51:57 -08:00
Russ Cox
08d3f5e271
template: look inside interface values
...
R=r
CC=golang-dev
https://golang.org/cl/186169
2010-01-15 13:49:31 -08:00
Yves Junqueira
d6054fcd88
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
2010-01-15 13:43:14 -08:00
Robert Griesemer
01b4f2dd23
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
2010-01-15 13:27:45 -08:00
Jan H. Hosang
67237c0f11
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
2010-01-15 13:26:13 -08:00
Charles L. Dorian
9a6b8e21e4
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
2010-01-15 13:21:47 -08:00
Charles L. Dorian
7f11db5ea9
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
2010-01-15 13:21:36 -08:00
Ian Lance Taylor
ff68f96df0
Test evaluation of range variables.
...
R=rsc
CC=golang-dev
https://golang.org/cl/189088
2010-01-15 10:40:30 -08:00
Rob Pike
49a35a632e
be more explicit about initialization of embedded fields.
...
R=rsc
CC=golang-dev
https://golang.org/cl/186161
2010-01-15 11:59:53 +11:00
Nigel Tao
8cf627ad57
Fix s/Width/Height/ typo in draw.go.
...
Fixes #531 .
R=r
CC=golang-dev
https://golang.org/cl/189078
2010-01-15 11:58:24 +11:00
Rob Pike
10a5eb0a29
fix +0000 time zones.
...
Fixes #527 .
R=rsc
CC=golang-dev
https://golang.org/cl/186159
2010-01-15 10:56:16 +11:00
Russ Cox
da9bc7ae7d
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
2010-01-13 19:51:59 -08:00
Russ Cox
b41c694297
doc/devel/release.html: fix dumb typo
...
R=r
CC=golang-dev
https://golang.org/cl/186148
2010-01-13 18:22:16 -08:00
Devon H. O'Dell
1564b984a5
runtime: GS already set up by setldt in Linux/386; remove duplicate
...
R=rsc
CC=golang-dev
https://golang.org/cl/186146
2010-01-13 17:50:12 -08:00
Russ Cox
12518e441b
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
2010-01-13 17:50:02 -08:00
Russ Cox
3fddcd6e87
.hgtags: add release, release.2010-01-13
...
R=r
CC=golang-dev
https://golang.org/cl/189062
2010-01-13 17:12:14 -08:00
Russ Cox
495936b58c
release.2010-01-13: final checkin, release notes
...
R=r
CC=golang-dev
https://golang.org/cl/186147
2010-01-13 17:08:59 -08:00
Rob Pike
d9283b27a2
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
2010-01-14 11:57:38 +11:00
Devon H. O'Dell
e8afb6d87f
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
2010-01-13 16:48:14 -08:00
Russ Cox
c6336155f1
contribute.html: suggest hg mail instead of hg upload
...
R=r
CC=golang-dev
https://golang.org/cl/186145
2010-01-13 16:44:40 -08:00
Russ Cox
6c2e0fe1f9
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
2010-01-13 16:26:22 -08:00
Robert Griesemer
27be2915f3
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
2010-01-13 15:18:56 -08:00
Russ Cox
6ae763a727
vector: drop rule for bench, now in Make.pkg
...
R=gri
CC=golang-dev
https://golang.org/cl/186139
2010-01-13 13:29:49 -08:00
Russ Cox
1c6c0eee20
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
2010-01-13 13:09:33 -08:00
Ian Lance Taylor
ae13f43810
Clarify when expressions are evaluated for a range clause.
...
R=gri, rsc
CC=golang-dev
https://golang.org/cl/189057
2010-01-13 12:50:45 -08:00
Devon H. O'Dell
14a74378f4
cgo: handle C99 bool type
...
Fixes #307 .
R=rsc
CC=golang-dev
https://golang.org/cl/186073
2010-01-13 10:25:28 -08:00
Russ Cox
84ac357c79
codereview: split name list only on commas; some user names have spaces
...
R=r
CC=golang-dev
https://golang.org/cl/184069
2010-01-13 09:09:06 -08:00
Russ Cox
f85abf01bc
runtime: reset DF flag after running external code on 386
...
R=r
CC=golang-dev
https://golang.org/cl/186108
2010-01-13 09:08:39 -08:00
Rob Pike
63d639295c
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
2010-01-13 14:39:30 +11:00
Rob Pike
ccbcefe2b6
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
2010-01-13 14:39:16 +11:00
Kevin Ballard
ea1a36efcd
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
2010-01-13 13:32:19 +11:00
Rob Pike
24dafbaa37
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
2010-01-13 12:06:43 +11:00
Rob Pike
632a98592d
fix typo found by kevin ballard
...
R=gri
CC=golang-dev
https://golang.org/cl/186113
2010-01-13 12:06:33 +11:00
Robert Griesemer
abda9e6f89
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
2010-01-12 17:04:45 -08:00
Adam Langley
cbd3b2e8d5
Add 'bench' target to makefiles.
...
R=rsc, agl, r
CC=golang-dev
https://golang.org/cl/188043
2010-01-12 15:43:20 -08:00
Evan Shaw
3daf133f35
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
2010-01-12 14:33:28 -08:00
Russ Cox
711088106e
runtime: fix bug in preemption checks; was causing "lock count" panics
...
R=r
CC=golang-dev
https://golang.org/cl/186078
2010-01-12 10:03:02 -08:00
Roger Peppe
9d4d7d8f99
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
2010-01-12 09:45:11 -08:00
Charles L. Dorian
46206c52e3
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
2010-01-11 21:28:02 -08:00
Adam Langley
e7cceb85e4
asn1: fix marshaling of structures with >1 elements.
...
Fixes #515 .
R=rsc
CC=golang-dev
https://golang.org/cl/184079
2010-01-11 18:54:13 -08:00
Adam Langley
72b97e46a3
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
2010-01-11 18:53:58 -08:00
Rob Pike
2f63eb243c
delete debugging prints
...
R=rsc
CC=golang-dev
https://golang.org/cl/186079
2010-01-11 17:35:51 -08:00
Rob Pike
ba5d0f2098
delete debugging prints
...
R=rsc
CC=golang-dev
https://golang.org/cl/186079
2010-01-11 17:35:06 -08:00
Rob Pike
937caef8fa
add pprof output format to prof.
...
amd64 linux only.
R=rsc
CC=golang-dev
https://golang.org/cl/186077
2010-01-11 16:53:45 -08:00
Charles L. Dorian
3c7534104a
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
2010-01-11 16:20:51 -08:00
Bill Neubauer
14992a4e4b
doc/contribute.html: change copyright year
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/184055
2010-01-11 13:06:58 -08:00
Devon H. O'Dell
bc82aaddb6
cgo: Make constants #define'd in C available to Go (as consts)
...
Fixes #435
R=rsc
CC=golang-dev
https://golang.org/cl/181161
2010-01-11 13:05:26 -08:00
Yongjian Xu
d668d4fbbd
gc: clean opnames.h
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/181186
2010-01-11 13:03:01 -08:00
Robert Griesemer
5dee91001b
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
2010-01-11 12:58:13 -08:00