summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-09-17check for unused importsRuss Cox4-25/+64
R=ken OCL=34732 CL=34756
2009-09-17- improved formatting of declarationsRobert Griesemer7-94/+411
- improved formatting of struct and interface types R=rsc DELTA=471 (364 added, 47 deleted, 60 changed) OCL=34747 CL=34751
2009-09-17unused importsRuss Cox69-146/+31
R=r OCL=34731 CL=34731
2009-09-17- don't add "..." anonymous field to structs/interfaces if entries are strippedRobert Griesemer9-68/+270
- 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
2009-09-17fix build: updated Make.depsRobert Griesemer1-1/+1
TBR=r OCL=34729 CL=34729
2009-09-16first cut at a string buffer.Rob Pike3-0/+363
can be made more efficient but this is reasonable. R=rsc DELTA=363 (363 added, 0 deleted, 0 changed) OCL=34720 CL=34720
2009-09-16first step toward cgo tool.Russ Cox3-0/+746
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
2009-09-16publish doc.CommentTextRuss Cox2-19/+17
R=gri DELTA=29 (10 added, 12 deleted, 7 changed) OCL=34709 CL=34712
2009-09-16make String work on Position values, to enableRuss Cox1-11/+9
fmt.Printf("%s: %s\n", expr.Pos(), message); R=gri DELTA=15 (1 added, 3 deleted, 11 changed) OCL=34706 CL=34708
2009-09-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike30-105/+111
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-09-16use /bin/ed to avoid portability issuesRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=34696 CL=34700
2009-09-16add heap.RemoveRuss Cox1-0/+14
R=gri DELTA=14 (14 added, 0 deleted, 0 changed) OCL=34636 CL=34687
2009-09-16parse and present DWARF type informationRuss Cox10-10/+933
R=r DELTA=940 (929 added, 1 deleted, 10 changed) OCL=34679 CL=34686
2009-09-15basic DWARF reading.Russ Cox8-0/+953
R=r DELTA=949 (949 added, 0 deleted, 0 changed) OCL=34676 CL=34678
2009-09-15make 6g match spec:Russ Cox1-8/+13
no semicolon allowd after package clause. semicolon allowed after import statement. no doubled semicolons allowed R=ken OCL=34674 CL=34674
2009-09-15bug fix: allow function types as operandsRobert Griesemer1-4/+9
R=rsc DELTA=10 (5 added, 0 deleted, 5 changed) OCL=34662 CL=34666
2009-09-15fixed register usage and removed some dead code.Kai Backman1-17/+5
R=rsc APPROVED=rsc DELTA=17 (0 added, 12 deleted, 5 changed) OCL=34659 CL=34665
2009-09-15patch in proper branch address in zaddr outputKai Backman1-1/+11
R=rsc APPROVED=rsc DELTA=12 (11 added, 1 deleted, 0 changed) OCL=34658 CL=34664
2009-09-15use register intermediateKai Backman2-14/+16
R=rsc APPROVED=rsc DELTA=21 (7 added, 5 deleted, 9 changed) OCL=34607 CL=34663
2009-09-15declared and not used; this time for sureRuss Cox4-6/+17
R=ken OCL=34657 CL=34657
2009-09-15consider each case in a switch independent from the previous one for ↵Robert Griesemer1-3/+3
alignment purposes R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=34654 CL=34656
2009-09-15final batch for "declared and not used"Russ Cox8-430/+441
* 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
2009-09-15fix build: added missing filesRobert Griesemer2-0/+56
TBR=rsc DELTA=56 (56 added, 0 deleted, 0 changed) OCL=34652 CL=34652
2009-09-15go/printer:Robert Griesemer14-138/+494
- 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
2009-09-15more "declared and not used".Russ Cox95-218/+221
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" in tests;Russ Cox1-8/+8
also template/template.go, missed last time. R=r DELTA=116 (61 added, 10 deleted, 45 changed) OCL=34620 CL=34622
2009-09-14declared and not used error, but disabled.Russ Cox5-6/+20
fix some bugs involving _. R=ken OCL=34621 CL=34621
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox31-69/+33
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-09-14do not crash on nil data valueRuss Cox1-0/+3
R=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=34606 CL=34609
2009-09-14do not crash printing the zero value for time.Time.Russ Cox1-1/+2
R=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=34605 CL=34608
2009-09-14make 5g, 8g build again by disabling init code.Russ Cox5-250/+2
R=ken OCL=34604 CL=34604
2009-09-13When decoding a paletted PNG, require that a PLTE chunk is seen beforeNigel Tao1-5/+7
the first IDAT chunk. R=rsc APPROVED=rsc DELTA=7 (2 added, 0 deleted, 5 changed) OCL=34583 CL=34585
2009-09-13Add and AddByteRob Pike2-0/+83
R=rsc DELTA=83 (83 added, 0 deleted, 0 changed) OCL=34584 CL=34584
2009-09-10PNG decoder for go.Nigel Tao10-19/+691
R=rsc APPROVED=r DELTA=694 (675 added, 3 deleted, 16 changed) OCL=34427 CL=34554
2009-09-10fix buildRobert Griesemer1-1/+1
TBR=rsc OCL=34550 CL=34552
2009-09-10fix bug206.Russ Cox4-45/+77
delay calls to savex as long as possible. R=ken OCL=34535 CL=34546
2009-09-10minor changesKen Thompson2-88/+60
R=rsc OCL=34545 CL=34545
2009-09-10better gofmt formatting:Robert Griesemer7-128/+409
- 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
2009-09-10rename units -> units.txt.Russ Cox4-11/+18
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
2009-09-10fix indentationRuss Cox1-146/+146
R=r DELTA=166 (0 added, 0 deleted, 166 changed) OCL=34521 CL=34527
2009-09-10sample goyacc programKen Thompson2-0/+1406
R=rsc OCL=34526 CL=34526
2009-09-10goyacc commandKen Thompson2-0/+3555
written in (c-style) go produces go source parser R=rsc OCL=34522 CL=34522
2009-09-09composit literal underKen Thompson5-485/+573
init function context. also moved composit literal code from walk.c to sinit.c R=rsc OCL=34503 CL=34503
2009-09-09a few more blank testsRuss Cox3-8/+12
R=ken OCL=34500 CL=34500
2009-09-09exit with non-zero status for incompatible pointer type warningsRuss Cox1-2/+9
R=r DELTA=9 (7 added, 0 deleted, 2 changed) OCL=34499 CL=34499
2009-09-09use the new type switch multicase to clean up a little.Rob Pike1-20/+11
R=rsc DELTA=28 (7 added, 16 deleted, 5 changed) OCL=34487 CL=34487
2009-09-09check type of string/map/array index expressionsRuss Cox1-0/+6
R=ken OCL=34478 CL=34480
2009-09-09error message fixesRuss Cox2-3/+6
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
2009-09-09defining package block names must overrideRuss Cox10-92/+127
universe block names. BUG=2097244 R=ken OCL=34295 CL=34473
2009-09-09update type switch to match spec.Russ Cox6-65/+94
R=ken OCL=34471 CL=34471