]>
Cypherpunks repositories - gostls13.git/log
Robert Griesemer [Fri, 18 Sep 2009 18:58:35 +0000 (11:58 -0700)]
- added heading to operator precedence section so it's easy to find
- fixed broken link to function literals section
- minor adjustments
R=r
DELTA=20 (1 added, 3 deleted, 16 changed)
OCL=34792
CL=34794
Russ Cox [Fri, 18 Sep 2009 18:52:00 +0000 (11:52 -0700)]
cgo: can look up C identifier kind (type or value) and type
gmp.go:197:4: type mpz_t C type mpz_t
gmp.go:205:2: call mpz_init C value func(mpz_ptr) void
gmp.go:206:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void
gmp.go:221:2: call mpz_init C value func(mpz_ptr) void
gmp.go:227:7: call size_t C type size_t
gmp.go:228:2: call mpz_export C value func(*void, *size_t, int, size_t, int, size_t, mpz_srcptr) *void
gmp.go:235:13: call mpz_sizeinbase C value func(mpz_srcptr, int) size_t
gmp.go:241:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void
gmp.go:252:3: call mpz_import C value func(mpz_ptr, size_t, int, size_t, int, size_t, *const void) void
gmp.go:261:2: call mpz_set_si C value func(mpz_ptr, long int) void
gmp.go:273:5: call mpz_set_str C value func(mpz_ptr, *const char, int) int
gmp.go:282:9: call mpz_get_str C value func(*char, int, mpz_srcptr) *char
gmp.go:287:3: call mpz_clear C value func(mpz_ptr) void
gmp.go:302:2: call mpz_add C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:311:2: call mpz_sub C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:320:2: call mpz_mul C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:329:2: call mpz_tdiv_q C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:339:2: call mpz_tdiv_r C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:348:2: call mpz_mul_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
gmp.go:356:2: call mpz_div_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
gmp.go:367:3: call mpz_pow_ui C value func(mpz_ptr, mpz_srcptr, long unsigned int) void
gmp.go:369:3: call mpz_powm C value func(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr) void
gmp.go:378:2: call mpz_neg C value func(mpz_ptr, mpz_srcptr) void
gmp.go:386:2: call mpz_abs C value func(mpz_ptr, mpz_srcptr) void
gmp.go:404:9: call mpz_cmp C value func(mpz_srcptr, mpz_srcptr) int
gmp.go:413:2: call mpz_tdiv_qr C value func(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void
gmp.go:426:2: call mpz_gcdext C value func(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void
R=r
DELTA=938 (628 added, 308 deleted, 2 changed)
OCL=34733
CL=34791
Russ Cox [Fri, 18 Sep 2009 18:50:24 +0000 (11:50 -0700)]
add DWARF method to elf.File.
test both ELF and Mach-O in dwarf package.
R=r
DELTA=83 (44 added, 10 deleted, 29 changed)
OCL=34717
CL=34790
Russ Cox [Fri, 18 Sep 2009 18:49:22 +0000 (11:49 -0700)]
Mach-O file reading
R=r
DELTA=784 (784 added, 0 deleted, 0 changed)
OCL=34715
CL=34788
Austin Clements [Fri, 18 Sep 2009 16:11:19 +0000 (09:11 -0700)]
Rudimentary command shell for Ogle. Hack to prevent linker
from inlining newprocreadylocked. Fix type bridge's handling
of basic types. Include interpreter's Thread in bridged
native function calls.
; load . "6.out"
Started 6.out
; BpSet("main·merge")
; ContWait()
breakpoint at 0x400800
=> 400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19
; bt
=> 400800 main·merge /home/austin/src-go1/usr/austin/ptrace/test/sort.go:19
400b6a main·mergeSort+0x1be /home/austin/src-go1/usr/austin/ptrace/test/sort.go:34
448313 goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133
; main.merge.a
{1}
; load . "pid:25753"
Attached to 25753
; bt
=> 479ddf syscall·Syscall+0x24 /home/austin/src-go1/src/pkg/syscall/asm_linux_amd64.s:24
47c011 syscall·Read+0x5d /home/austin/src-go1/src/pkg/syscall/zsyscall_linux_amd64.go:368
4119e5 os·*File·Read+0x5f /home/austin/src-go1/src/pkg/os/file.go:122
427bf3 bufio·*Reader·fill+0x116 /home/austin/src-go1/src/pkg/bufio/bufio.go:105
428361 bufio·*Reader·ReadSlice+0x195 /home/austin/src-go1/src/pkg/bufio/bufio.go:244
40204a ogle·Main+0x94 /home/austin/src-go1/usr/austin/ogle/cmd.go:226
40080f main·main+0xf /home/austin/src-go1/usr/austin/ogle/main.go:6
41c4b8 mainstart+0xf /home/austin/src-go1/src/pkg/runtime/amd64/asm.s:55
41531f goexit /home/austin/src-go1/src/pkg/runtime/proc.c:133
R=rsc
APPROVED=rsc
DELTA=433 (420 added, 2 deleted, 11 changed)
OCL=34410
CL=34782
Austin Clements [Fri, 18 Sep 2009 16:09:40 +0000 (09:09 -0700)]
Implement remote variables
R=rsc
APPROVED=rsc
DELTA=282 (281 added, 0 deleted, 1 changed)
OCL=34407
CL=34781
Rob Pike [Fri, 18 Sep 2009 06:51:06 +0000 (23:51 -0700)]
use buf.String() instead of string(buf.Bytes())
use strings.Buffer instead of bytes.Buffer in some places
R=rsc
DELTA=40 (0 added, 3 deleted, 37 changed)
OCL=34770
CL=34775
Kai Backman [Fri, 18 Sep 2009 06:08:15 +0000 (23:08 -0700)]
fixing width bug in DATA output. some logging to make fixing
similar issues easier in the future.
R=rsc
APPROVED=rsc
DELTA=6 (1 added, 0 deleted, 5 changed)
OCL=34771
CL=34773
Kai Backman [Fri, 18 Sep 2009 06:07:52 +0000 (23:07 -0700)]
fix code generation of CMP to use registers properly. also fix
one case of uninitialized memory and some output.
R=rsc
APPROVED=rsc
DELTA=73 (43 added, 1 deleted, 29 changed)
OCL=34743
CL=34772
Kai Backman [Fri, 18 Sep 2009 02:24:07 +0000 (19:24 -0700)]
floating point constants and symbol export fix.
R=rsc
APPROVED=rsc
DELTA=16 (0 added, 1 deleted, 15 changed)
OCL=34753
CL=34769
Russ Cox [Fri, 18 Sep 2009 02:15:54 +0000 (19:15 -0700)]
move static init code from 6g into gc.
hook up to 8g and 5g too.
R=ken
OCL=34768
CL=34768
Rob Pike [Fri, 18 Sep 2009 00:05:45 +0000 (17:05 -0700)]
check in the generated html for the tutorial so godoc can serve it
DELTA=1444 (1444 added, 0 deleted, 0 changed)
OCL=34760
CL=34762
Robert Griesemer [Fri, 18 Sep 2009 00:04:51 +0000 (17:04 -0700)]
- use new css for godoc templates
- final location of files TBD
R=rsc,r
DELTA=84 (19 added, 46 deleted, 19 changed)
OCL=34758
CL=34761
Russ Cox [Thu, 17 Sep 2009 23:42:10 +0000 (16:42 -0700)]
check for unused imports
R=ken
OCL=34732
CL=34756
Robert Griesemer [Thu, 17 Sep 2009 22:20:15 +0000 (15:20 -0700)]
- improved formatting of declarations
- improved formatting of struct and interface types
R=rsc
DELTA=471 (364 added, 47 deleted, 60 changed)
OCL=34747
CL=34751
Robert Griesemer [Thu, 17 Sep 2009 18:01:50 +0000 (11:01 -0700)]
- silence ebnflint: mark syntax section as "ebnf" instead of "grammar"
- re-use MethodName production
R=r
DELTA=4 (1 added, 1 deleted, 2 changed)
OCL=34734
CL=34734
Russ Cox [Thu, 17 Sep 2009 17:27:04 +0000 (10:27 -0700)]
unused imports
R=r
OCL=34731
CL=34731
Robert Griesemer [Thu, 17 Sep 2009 16:12:14 +0000 (09:12 -0700)]
- don't add "..." anonymous field to structs/interfaces if entries are stripped
- don't print any optional semicolons after declarations inside functions
- indicate non-exported fields/methods in exported types with a comment
so that the "exported source" is legal Go code
- more tests
R=rsc
DELTA=300 (227 added, 25 deleted, 48 changed)
OCL=34697
CL=34730
Robert Griesemer [Thu, 17 Sep 2009 16:08:24 +0000 (09:08 -0700)]
fix build: updated Make.deps
TBR=r
OCL=34729
CL=34729
Larry Hosken [Thu, 17 Sep 2009 15:05:12 +0000 (08:05 -0700)]
A step towards "externalizing" some Go docs.
+ style sheet: like code.google.com but less feature-ful
+ JS with table-of-contents generation
+ tweaked go_spec.html and go_mem.html to use new style+JS
+ static-HTML-ified a few other Go docs:
+ static HTML versions of some wiki pages (which I'll turn
into links to these pages).
A notable thing that is _not_ in this changelist: any change
to the godoc tool or whatever thing generates http://go/godoc
R=r
APPROVED=r
DELTA=2472 (2307 added, 113 deleted, 52 changed)
OCL=34644
CL=34728
Rob Pike [Thu, 17 Sep 2009 06:32:17 +0000 (23:32 -0700)]
first cut at a string buffer.
can be made more efficient but this is reasonable.
R=rsc
DELTA=363 (363 added, 0 deleted, 0 changed)
OCL=34720
CL=34720
Russ Cox [Thu, 17 Sep 2009 01:14:18 +0000 (18:14 -0700)]
first step toward cgo tool.
can extract import "C" doc comment
and all references to C package.
; cgo gmp.go | sort
#include <gmp.h>
gmp.go:197:4: mpz_t as type
gmp.go:205:2: mpz_init as call
gmp.go:206:2: mpz_set as call
gmp.go:221:2: mpz_init as call
gmp.go:227:7: size_t as call
gmp.go:228:2: mpz_export as call
gmp.go:235:13: mpz_sizeinbase as call
gmp.go:241:2: mpz_set as call
gmp.go:252:3: mpz_import as call
gmp.go:261:2: mpz_set_si as call
gmp.go:273:5: mpz_set_str as call
gmp.go:282:9: mpz_get_str as call
gmp.go:287:3: mpz_clear as call
gmp.go:302:2: mpz_add as call
gmp.go:311:2: mpz_sub as call
gmp.go:320:2: mpz_mul as call
gmp.go:329:2: mpz_tdiv_q as call
gmp.go:339:2: mpz_tdiv_r as call
gmp.go:348:2: mpz_mul_2exp as call
gmp.go:356:2: mpz_div_2exp as call
gmp.go:367:3: mpz_pow as call
gmp.go:369:3: mpz_powm as call
gmp.go:378:2: mpz_neg as call
gmp.go:386:2: mpz_abs as call
gmp.go:404:9: mpz_cmp as call
gmp.go:413:2: mpz_tdiv_qr as call
gmp.go:426:2: mpz_gcdext as call
;
R=r
DELTA=746 (746 added, 0 deleted, 0 changed)
OCL=34710
CL=34714
Russ Cox [Wed, 16 Sep 2009 23:56:20 +0000 (16:56 -0700)]
publish doc.CommentText
R=gri
DELTA=29 (10 added, 12 deleted, 7 changed)
OCL=34709
CL=34712
Russ Cox [Wed, 16 Sep 2009 23:38:49 +0000 (16:38 -0700)]
make String work on Position values, to enable
fmt.Printf("%s: %s\n", expr.Pos(), message);
R=gri
DELTA=15 (1 added, 3 deleted, 11 changed)
OCL=34706
CL=34708
Rob Pike [Wed, 16 Sep 2009 22:15:00 +0000 (15:15 -0700)]
rename bytes.Buffer.Data() to bytes.Buffer.Bytes()
R=rsc
DELTA=152 (6 added, 0 deleted, 146 changed)
OCL=34695
CL=34701
Rob Pike [Wed, 16 Sep 2009 22:14:12 +0000 (15:14 -0700)]
use /bin/ed to avoid portability issues
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=34696
CL=34700
Rob Pike [Wed, 16 Sep 2009 18:49:35 +0000 (11:49 -0700)]
slight refinement of select: evaluation is top to bottom, as in switches.
DELTA=9 (2 added, 4 deleted, 3 changed)
OCL=34690
CL=34692
Robert Griesemer [Wed, 16 Sep 2009 18:05:14 +0000 (11:05 -0700)]
- added syntax for conversions (was missing)
- added TODO for syntax for built-ins (require type as first argument)
- removed duplicate definition of Index
DELTA=13 (11 added, 1 deleted, 1 changed)
OCL=34668
CL=34688
Russ Cox [Wed, 16 Sep 2009 17:43:49 +0000 (10:43 -0700)]
add heap.Remove
R=gri
DELTA=14 (14 added, 0 deleted, 0 changed)
OCL=34636
CL=34687
Russ Cox [Wed, 16 Sep 2009 17:43:27 +0000 (10:43 -0700)]
parse and present DWARF type information
R=r
DELTA=940 (929 added, 1 deleted, 10 changed)
OCL=34679
CL=34686
Russ Cox [Wed, 16 Sep 2009 04:58:45 +0000 (21:58 -0700)]
basic DWARF reading.
R=r
DELTA=949 (949 added, 0 deleted, 0 changed)
OCL=34676
CL=34678
Russ Cox [Wed, 16 Sep 2009 00:29:08 +0000 (17:29 -0700)]
make 6g match spec:
no semicolon allowd after package clause.
semicolon allowed after import statement.
no doubled semicolons allowed
R=ken
OCL=34674
CL=34674
Robert Griesemer [Tue, 15 Sep 2009 23:16:34 +0000 (16:16 -0700)]
bug fix: allow function types as operands
R=rsc
DELTA=10 (5 added, 0 deleted, 5 changed)
OCL=34662
CL=34666
Kai Backman [Tue, 15 Sep 2009 23:15:17 +0000 (16:15 -0700)]
fixed register usage and removed some dead code.
R=rsc
APPROVED=rsc
DELTA=17 (0 added, 12 deleted, 5 changed)
OCL=34659
CL=34665
Kai Backman [Tue, 15 Sep 2009 23:14:49 +0000 (16:14 -0700)]
patch in proper branch address in zaddr output
R=rsc
APPROVED=rsc
DELTA=12 (11 added, 1 deleted, 0 changed)
OCL=34658
CL=34664
Kai Backman [Tue, 15 Sep 2009 23:12:47 +0000 (16:12 -0700)]
use register intermediate
R=rsc
APPROVED=rsc
DELTA=21 (7 added, 5 deleted, 9 changed)
OCL=34607
CL=34663
Rob Pike [Tue, 15 Sep 2009 22:56:44 +0000 (15:56 -0700)]
Deriving functions from methods
DELTA=238 (118 added, 116 deleted, 4 changed)
OCL=34653
CL=34660
Russ Cox [Tue, 15 Sep 2009 21:11:43 +0000 (14:11 -0700)]
declared and not used; this time for sure
R=ken
OCL=34657
CL=34657
Robert Griesemer [Tue, 15 Sep 2009 20:53:10 +0000 (13:53 -0700)]
consider each case in a switch independent from the previous one for alignment purposes
R=rsc
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=34654
CL=34656
Russ Cox [Tue, 15 Sep 2009 20:51:33 +0000 (13:51 -0700)]
final batch for "declared and not used"
* update mksyscall.sh and rebuild syscall/z*.go
* fix a few linux-only files
R=r
DELTA=455 (12 added, 1 deleted, 442 changed)
OCL=34637
CL=34655
Robert Griesemer [Tue, 15 Sep 2009 20:33:16 +0000 (13:33 -0700)]
fix build: added missing files
TBR=rsc
DELTA=56 (56 added, 0 deleted, 0 changed)
OCL=34652
CL=34652
Robert Griesemer [Tue, 15 Sep 2009 20:06:24 +0000 (13:06 -0700)]
go/printer:
- printing of expressions: put spaces only where "needed"
- printing of import statements: no double indentation if there are no renames
- print labels on separate lines
- added extra test files
go/ast:
- unified basic literal nodes and as a result deleted duplicated code
- added initial code to track scopes (not fully used yet)
replaces CL 34553
R=rsc
DELTA=881 (579 added, 223 deleted, 79 changed)
OCL=34623
CL=34651
Russ Cox [Tue, 15 Sep 2009 19:42:24 +0000 (12:42 -0700)]
last round: non-package code
R=r
DELTA=127 (38 added, 3 deleted, 86 changed)
OCL=34640
CL=34650
Rob Pike [Tue, 15 Sep 2009 18:56:39 +0000 (11:56 -0700)]
an attempt to define initialization order within a package.
DELTA=23 (19 added, 1 deleted, 3 changed)
OCL=34646
CL=34649
Rob Pike [Tue, 15 Sep 2009 16:54:22 +0000 (09:54 -0700)]
minutiae: pass 1
DELTA=174 (65 added, 10 deleted, 99 changed)
OCL=34625
CL=34639
Russ Cox [Tue, 15 Sep 2009 16:41:59 +0000 (09:41 -0700)]
more "declared and not used".
the last round omitted := range and only
checked 1 out of N vars in a multi-var :=
R=r
OCL=34624
CL=34638
Russ Cox [Tue, 15 Sep 2009 04:03:53 +0000 (21:03 -0700)]
fix "declared and not used" in tests;
also template/template.go, missed last time.
R=r
DELTA=116 (61 added, 10 deleted, 45 changed)
OCL=34620
CL=34622
Russ Cox [Tue, 15 Sep 2009 01:38:30 +0000 (18:38 -0700)]
declared and not used error, but disabled.
fix some bugs involving _.
R=ken
OCL=34621
CL=34621
Rob Pike [Tue, 15 Sep 2009 00:39:17 +0000 (17:39 -0700)]
make SimpleStmt include EmptyStmt and the grammar simplifies a bit.
SimpleStmt was always used as an option.
fix bug: divide is a right shift
DELTA=8 (0 added, 0 deleted, 8 changed)
OCL=34612
CL=34614
Russ Cox [Tue, 15 Sep 2009 00:20:29 +0000 (17:20 -0700)]
fix "declared and not used" errors in non-test code.
R=r
DELTA=112 (6 added, 57 deleted, 49 changed)
OCL=34610
CL=34610
Russ Cox [Mon, 14 Sep 2009 23:46:48 +0000 (16:46 -0700)]
do not crash on nil data value
R=r
DELTA=3 (3 added, 0 deleted, 0 changed)
OCL=34606
CL=34609
Russ Cox [Mon, 14 Sep 2009 23:45:35 +0000 (16:45 -0700)]
do not crash printing the zero value for time.Time.
R=r
DELTA=2 (1 added, 0 deleted, 1 changed)
OCL=34605
CL=34608
Russ Cox [Mon, 14 Sep 2009 21:27:19 +0000 (14:27 -0700)]
make 5g, 8g build again by disabling init code.
R=ken
OCL=34604
CL=34604
Rob Pike [Mon, 14 Sep 2009 20:09:53 +0000 (13:09 -0700)]
add tests for the func()() case
R=gri
DELTA=12 (12 added, 0 deleted, 0 changed)
OCL=34601
CL=34601
Rob Pike [Mon, 14 Sep 2009 17:40:44 +0000 (10:40 -0700)]
functions
R=rsc
DELTA=125 (103 added, 22 deleted, 0 changed)
OCL=34586
CL=34598
Nigel Tao [Mon, 14 Sep 2009 04:47:54 +0000 (21:47 -0700)]
When decoding a paletted PNG, require that a PLTE chunk is seen before
the first IDAT chunk.
R=rsc
APPROVED=rsc
DELTA=7 (2 added, 0 deleted, 5 changed)
OCL=34583
CL=34585
Rob Pike [Mon, 14 Sep 2009 04:35:18 +0000 (21:35 -0700)]
Add and AddByte
R=rsc
DELTA=83 (83 added, 0 deleted, 0 changed)
OCL=34584
CL=34584
Rob Pike [Fri, 11 Sep 2009 18:51:00 +0000 (11:51 -0700)]
correct and clarify the rules about integer conversions.
DELTA=15 (6 added, 1 deleted, 8 changed)
OCL=34549
CL=34564
Nigel Tao [Fri, 11 Sep 2009 04:33:44 +0000 (21:33 -0700)]
PNG decoder for go.
R=rsc
APPROVED=r
DELTA=694 (675 added, 3 deleted, 16 changed)
OCL=34427
CL=34554
Robert Griesemer [Fri, 11 Sep 2009 01:26:14 +0000 (18:26 -0700)]
fix build
TBR=rsc
OCL=34550
CL=34552
Russ Cox [Fri, 11 Sep 2009 00:33:01 +0000 (17:33 -0700)]
fix bug206.
delay calls to savex as long as possible.
R=ken
OCL=34535
CL=34546
Ken Thompson [Fri, 11 Sep 2009 00:32:48 +0000 (17:32 -0700)]
minor changes
R=rsc
OCL=34545
CL=34545
Robert Griesemer [Fri, 11 Sep 2009 00:27:06 +0000 (17:27 -0700)]
better gofmt formatting:
- first cut a better line breaks in expr lists
- trailing commas and semis printed where we tend to write them
- fixed a couple of minor spacing issues (interface{}, chan<-, map[x]y, x: y)
- removed some formatting flags from gofmt: no need to change default
- removed option to reverse declaration order when printing
- excluded files from test that cause trouble with idempotency test for now
R=rsc
DELTA=497 (364 added, 83 deleted, 50 changed)
OCL=34539
CL=34544
Russ Cox [Thu, 10 Sep 2009 21:47:10 +0000 (14:47 -0700)]
rename units -> units.txt.
add makefile rules to build a binary named units as a demo.
R=r
DELTA=1257 (659 added, 597 deleted, 1 changed)
OCL=34528
CL=34530
Russ Cox [Thu, 10 Sep 2009 21:18:53 +0000 (14:18 -0700)]
fix indentation
R=r
DELTA=166 (0 added, 0 deleted, 166 changed)
OCL=34521
CL=34527
Ken Thompson [Thu, 10 Sep 2009 20:53:35 +0000 (13:53 -0700)]
sample goyacc program
R=rsc
OCL=34526
CL=34526
Russ Cox [Thu, 10 Sep 2009 20:43:15 +0000 (13:43 -0700)]
fix bug206 output on different platforms
TBR=r
OCL=34524
CL=34524
Ken Thompson [Thu, 10 Sep 2009 20:19:46 +0000 (13:19 -0700)]
goyacc command
written in (c-style) go
produces go source parser
R=rsc
OCL=34522
CL=34522
Rob Pike [Thu, 10 Sep 2009 17:47:11 +0000 (10:47 -0700)]
gccgo does not yet implement _
OCL=34517
CL=34517
Robert Griesemer [Thu, 10 Sep 2009 17:30:36 +0000 (10:30 -0700)]
bug206
R=rsc
DELTA=51 (51 added, 0 deleted, 0 changed)
OCL=34516
CL=34516
Robert Griesemer [Thu, 10 Sep 2009 17:14:00 +0000 (10:14 -0700)]
- blank identifier
- fixed some links
DELTA=51 (32 added, 1 deleted, 18 changed)
OCL=34497
CL=34515
Ken Thompson [Thu, 10 Sep 2009 00:48:55 +0000 (17:48 -0700)]
composit literal under
init function context.
also moved composit literal
code from walk.c to sinit.c
R=rsc
OCL=34503
CL=34503
Russ Cox [Wed, 9 Sep 2009 23:59:41 +0000 (16:59 -0700)]
a few more blank tests
R=ken
OCL=34500
CL=34500
Russ Cox [Wed, 9 Sep 2009 23:45:23 +0000 (16:45 -0700)]
exit with non-zero status for incompatible pointer type warnings
R=r
DELTA=9 (7 added, 0 deleted, 2 changed)
OCL=34499
CL=34499
Rob Pike [Wed, 9 Sep 2009 17:32:26 +0000 (10:32 -0700)]
use the new type switch multicase to clean up a little.
R=rsc
DELTA=28 (7 added, 16 deleted, 5 changed)
OCL=34487
CL=34487
Russ Cox [Wed, 9 Sep 2009 08:31:10 +0000 (01:31 -0700)]
check type of string/map/array index expressions
R=ken
OCL=34478
CL=34480
Russ Cox [Wed, 9 Sep 2009 08:21:20 +0000 (01:21 -0700)]
error message fixes
x == nil
x.go:5: cannot use nil as bool
c := x.(type);
x.go:88: use of .(type) outside type switch
R=ken
OCL=34476
CL=34476
Russ Cox [Wed, 9 Sep 2009 08:01:39 +0000 (01:01 -0700)]
defining package block names must override
universe block names.
BUG=
2097244
R=ken
OCL=34295
CL=34473
Russ Cox [Wed, 9 Sep 2009 07:18:16 +0000 (00:18 -0700)]
update type switch to match spec.
R=ken
OCL=34471
CL=34471
Russ Cox [Wed, 9 Sep 2009 06:16:19 +0000 (23:16 -0700)]
write-only variable _
R=ken
OCL=34465
CL=34470
Rob Pike [Wed, 9 Sep 2009 00:11:57 +0000 (17:11 -0700)]
string range
R=rsc
DELTA=22 (19 added, 0 deleted, 3 changed)
OCL=34463
CL=34463
Ken Thompson [Tue, 8 Sep 2009 22:52:27 +0000 (15:52 -0700)]
init context for composit literals
R=rsc
OCL=34462
CL=34462
Robert Griesemer [Tue, 8 Sep 2009 22:41:14 +0000 (15:41 -0700)]
cosmetic changes:
- fixed a couple of broken links
- changed some explicit section references into implicit ones
R=r
DELTA=27 (0 added, 2 deleted, 25 changed)
OCL=34461
CL=34461
Russ Cox [Tue, 8 Sep 2009 21:40:27 +0000 (14:40 -0700)]
add -S flag to print size of symbol
R=r
DELTA=24 (15 added, 0 deleted, 9 changed)
OCL=34447
CL=34458
Robert Griesemer [Tue, 8 Sep 2009 21:29:41 +0000 (14:29 -0700)]
- clarify vector comment
- adjusted a test to check claim
R=rsc
DELTA=3 (2 added, 0 deleted, 1 changed)
OCL=34454
CL=34456
Ken Thompson [Tue, 8 Sep 2009 21:26:39 +0000 (14:26 -0700)]
compound literal test
R=rsc
OCL=34453
CL=34455
Russ Cox [Tue, 8 Sep 2009 20:46:54 +0000 (13:46 -0700)]
pass Type* to makechan and makemap so that
they can get the official alignment out of there
instead of guessing.
R=ken
OCL=34450
CL=34450
Russ Cox [Tue, 8 Sep 2009 19:27:09 +0000 (12:27 -0700)]
documentation edits:
add comments showing Go syntax for each token.
move doc comments below hidden begin constants
R=gri
DELTA=66 (3 added, 3 deleted, 60 changed)
OCL=34334
CL=34445
Ken Thompson [Tue, 8 Sep 2009 00:36:47 +0000 (17:36 -0700)]
maps in static initialization
R=rsc
OCL=34434
CL=34434
Ken Thompson [Sun, 6 Sep 2009 22:03:51 +0000 (15:03 -0700)]
more static init
almost done
R=rsc
OCL=34422
CL=34422
Ken Thompson [Sun, 6 Sep 2009 03:32:24 +0000 (20:32 -0700)]
composit literals
plateau - more to come
R=rsc
OCL=34413
CL=34413
Austin Clements [Fri, 4 Sep 2009 23:12:50 +0000 (16:12 -0700)]
Don't crash in Sym.ReceiverName for symbols like "x.x"
R=rsc
APPROVED=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=34404
CL=34406
Russ Cox [Fri, 4 Sep 2009 20:04:11 +0000 (13:04 -0700)]
script for running test programs in interpreter.
tweak test/literal.go to give more information.
R=austin
DELTA=45 (43 added, 0 deleted, 2 changed)
OCL=34381
CL=34398
Austin Clements [Fri, 4 Sep 2009 19:55:25 +0000 (12:55 -0700)]
Make world.Define{Const,Var} indicate if the definition was
successful.
R=rsc
APPROVED=rsc
DELTA=43 (31 added, 0 deleted, 12 changed)
OCL=34375
CL=34397
Austin Clements [Fri, 4 Sep 2009 18:58:00 +0000 (11:58 -0700)]
Update debugger to use Abort interface
R=rsc
APPROVED=rsc
DELTA=314 (132 added, 2 deleted, 180 changed)
OCL=34376
CL=34396
Austin Clements [Fri, 4 Sep 2009 00:41:25 +0000 (17:41 -0700)]
s/Thread/Goroutine/
R=rsc
APPROVED=rsc
DELTA=328 (112 added, 110 deleted, 106 changed)
OCL=34356
CL=34356
Russ Cox [Fri, 4 Sep 2009 00:22:20 +0000 (17:22 -0700)]
top-level func
R=austin
DELTA=21 (5 added, 10 deleted, 6 changed)
OCL=34355
CL=34355
Austin Clements [Fri, 4 Sep 2009 00:14:49 +0000 (17:14 -0700)]
Thread Thread into Value Get/Set/Assign so other Value
implementations can abort. Make genConstant get values lazily
since we need the Thread now.
R=rsc
APPROVED=rsc
DELTA=299 (8 added, 19 deleted, 272 changed)
OCL=34353
CL=34353
Russ Cox [Fri, 4 Sep 2009 00:01:10 +0000 (17:01 -0700)]
add ParseDeclList
R=austin
DELTA=34 (34 added, 0 deleted, 0 changed)
OCL=34280
CL=34352
Austin Clements [Thu, 3 Sep 2009 23:59:41 +0000 (16:59 -0700)]
Implement Go threads. Implement a general event system
including breakpoints and Go thread create/exit.
R=rsc
APPROVED=rsc
DELTA=751 (729 added, 6 deleted, 16 changed)
OCL=34345
CL=34351