summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-11-14buf fix: make FD.Read, FD.Write work for empty buffersRobert Griesemer1-2/+8
R=r DELTA=8 (6 added, 0 deleted, 2 changed) OCL=19273 CL=19275
2008-11-14clean up make scriptRob Pike1-44/+47
reorder pieces so io is earlier R=rsc DELTA=66 (27 added, 24 deleted, 15 changed) OCL=19248 CL=19255
2008-11-14- added Init() function so that vectors can be used w/o New():Robert Griesemer1-7/+11
var v Vector.Vector; v.Init(); ... - clear vector elements in Reset - removed some comments that seem redundant R=r DELTA=16 (9 added, 5 deleted, 2 changed) OCL=19247 CL=19247
2008-11-14add cov, prof to default build; clean up compiler warningsRuss Cox6-7/+8
R=r DELTA=8 (1 added, 0 deleted, 7 changed) OCL=19245 CL=19245
2008-11-14code coverage toolRuss Cox7-13/+747
$ 6cov -g 235.go 6.out 235.go:62,62 main·main 0x27c9-0x2829 MOVL $main·.stringo(SB),AX 235.go:30,30 main·main 0x2856-0x285e ADDQ $6c0,SP $ and assorted fixes. R=r DELTA=743 (732 added, 8 deleted, 3 changed) OCL=19226 CL=19243
2008-11-14handle nils safelyRob Pike1-22/+26
R=rsc DELTA=38 (14 added, 10 deleted, 14 changed) OCL=19242 CL=19242
2008-11-13* pretty printing snapshot: towards printing comments nicelyRobert Griesemer1-1/+1
- implemented elastic tabstops algorithm, now correct and documented - first cut at printing comments (use -comments flag, disabled for now) - struct field types are now aligned (using elastic tab stops) - needs more fine-tuning * fixed a bug in test script * added quick smoke test to makefile and invoke it in run.bash instead of the full test R=r OCL=19220 CL=19220
2008-11-13add a %v format to print an arbitrary value in its "println" form.Rob Pike1-38/+75
also add code to print (pointers to) arrays, through %v. R=rsc DELTA=108 (70 added, 33 deleted, 5 changed) OCL=19184 CL=19192
2008-11-13more array methodsRuss Cox4-58/+139
R=r OCL=19172 CL=19172
2008-11-13* 6l:Russ Cox4-12/+82
if an object in an archive tries to refer to a file in its original source directory, ignore it. * 6ar: fix bug if archive is empty. * gobuild: build archive in current directory. * math: use new gobuild Makefile. * test/math.go: rename to mathest.go, add // run line, make it run. R=r DELTA=494 (277 added, 203 deleted, 14 changed) OCL=19090 CL=19171
2008-11-13temp fix for map not multiple of 8Ken Thompson1-0/+1
R=r OCL=19166 CL=19166
2008-11-13mike's map codeKen Thompson6-263/+1059
R=r OCL=19146 CL=19146
2008-11-12add some support for modifying what pointers point toRob Pike2-11/+16
R=rsc DELTA=27 (16 added, 11 deleted, 0 changed) OCL=19130 CL=19132
2008-11-12fix bug in FullyReaderRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=19131 CL=19131
2008-11-12reflect.PtrValue.SetSub() to set pointersRob Pike2-0/+21
R=rsc OCL=19101 CL=19101
2008-11-12converting uint bits back into floatsRob Pike3-0/+32
R=rsc DELTA=32 (32 added, 0 deleted, 0 changed) OCL=19084 CL=19091
2008-11-12- lowercased package name (Bignum -> bignum)Robert Griesemer1-8/+23
- implemented some missing functionality (and, or, xor of positive ints) R=r OCL=19087 CL=19087
2008-11-116c bug with large constantsKen Thompson1-0/+11
R=r OCL=19056 CL=19056
2008-11-11Implement a "full reader" wrapper for io.Read, guaranteeing thatRob Pike1-2/+44
either the buffer is full, zero bytes were read, or an error is returned. R=rsc DELTA=44 (42 added, 0 deleted, 2 changed) OCL=19027 CL=19047
2008-11-11don't try interface/structure conversion untilRuss Cox1-7/+7
last resort, because it assumes every call is a real use of the conversion. R=ken OCL=19026 CL=19026
2008-11-11width fixes.Russ Cox4-4/+25
* check for uncomputed struct offsets * distinguish function structs from ordinary structs * make sure function structs are not examined in isolation R=ken OCL=19005 CL=19005
2008-11-10fix error-handling bug.Rob Pike1-1/+2
add newline after stack traces. R=rsc DELTA=3 (2 added, 1 deleted, 0 changed) OCL=18945 CL=18953
2008-11-10* accept all NaNs, not just the one sys.NaN() returns.Russ Cox1-36/+60
* use union, not cast, to convert between uint64 and float64, to avoid possible problems with gcc in future. R=r DELTA=75 (39 added, 15 deleted, 21 changed) OCL=18926 CL=18926
2008-11-10handle Inf, NaN in float printRuss Cox3-25/+34
R=r DELTA=48 (23 added, 14 deleted, 11 changed) OCL=18707 CL=18922
2008-11-10Add a cache to avoid unnecessary parsing of type strings when constructing ↵Rob Pike1-2/+11
values R=rsc DELTA=12 (9 added, 0 deleted, 3 changed) OCL=18916 CL=18921
2008-11-10fix start/stop bug in prof.Rob Pike1-6/+8
also only time-limit if a value is provided. R=rsc DELTA=9 (4 added, 2 deleted, 3 changed) OCL=18917 CL=18920
2008-11-10Protocol buffer encoding.Rob Pike1-2/+2
R=rsc DELTA=1075 (1028 added, 31 deleted, 16 changed) OCL=18865 CL=18918
2008-11-07Added missing Set method for VectorRobert Griesemer1-0/+6
BUG=1474670 TBR=r DELTA=6 (6 added, 0 deleted, 0 changed) OCL=18839 CL=18843
2008-11-07wrong system call number for statRob Pike1-1/+1
TBR=rsc OCL=18833 CL=18833
2008-11-07byte multiplyKen Thompson1-10/+22
R=r OCL=18830 CL=18830
2008-11-07byte multiplyKen Thompson3-1/+34
R=r OCL=18807 CL=18807
2008-11-06bug in select defaultKen Thompson1-31/+36
R=r OCL=18741 CL=18741
2008-11-06- binomial implementation (fixing broken build)Robert Griesemer1-0/+5
R=r OCL=18738 CL=18738
2008-11-06simpleminded ascii to floating point conversionRob Pike2-3/+105
R=rsc DELTA=111 (107 added, 0 deleted, 4 changed) OCL=18720 CL=18725
2008-11-06add sys.float32bits, sys.float64bitsRob Pike3-0/+21
R=rsc DELTA=21 (21 added, 0 deleted, 0 changed) OCL=18709 CL=18718
2008-11-06s/gins/gbranch/Russ Cox1-6/+4
R=ken OCL=18713 CL=18713
2008-11-06change minimum sethi/ullman number to 1Russ Cox5-9/+12
to distinguish not computed (0) vs trivial (1). add missing ullmancalc on function args. R=ken OCL=18711 CL=18711
2008-11-066g ninit fixes - fixes the two test casesRuss Cox4-5/+20
i isolated last night. does not fix rob's interface-smashing bug. R=ken OCL=18698 CL=18698
2008-11-06- implemented String() and Format functionality in BignumRobert Griesemer1-6/+50
- added a test R=r OCL=18687 CL=18687
2008-11-06- fixes to sprintf (by rob)Robert Griesemer1-8/+11
R=r OCL=18685 CL=18685
2008-11-06If a value implements String(), use that in fmt.print (not fmt.printf)Rob Pike1-4/+13
R=rsc DELTA=13 (9 added, 0 deleted, 4 changed) OCL=18682 CL=18684
2008-11-06Polymorphic printing.Rob Pike1-29/+89
R=rsc DELTA=100 (70 added, 10 deleted, 20 changed) OCL=18663 CL=18669
2008-11-05select defaultKen Thompson7-15/+42
R=r OCL=18646 CL=18646
2008-11-05more runtime support for chan select defaultRuss Cox1-1/+39
R=ken OCL=18630 CL=18630
2008-11-05runtime support for default in select.Russ Cox1-2/+13
assumes cas->send == 2 for default case. R=ken OCL=18628 CL=18628
2008-11-05allow any type at all in sys.unreflect;Russ Cox2-8/+2
accomodate empty type table in 6l. R=r DELTA=10 (2 added, 8 deleted, 0 changed) OCL=18601 CL=18605
2008-11-05fix renamed-package bug in exported names:Russ Cox1-14/+7
always show original name R=ken OCL=18603 CL=18603
2008-11-05more on t,ok = I.(T)Ken Thompson1-0/+16
R=r OCL=18599 CL=18599
2008-11-05T,ok = I.(T)Ken Thompson1-24/+47
R=r OCL=18580 CL=18582
2008-11-05new interface error messagesRuss Cox1-6/+28
package main func main() { var i interface { } = 1; a := i.(*[]byte); } interface { } is int, not *[]uint8 throw: interface conversion package main func main() { var i interface { }; a := i.(*[]byte); } interface is nil, not *[]uint8 throw: interface conversion package main func main() { i := sys.unreflect(0, "*bogus"); a := i.(*[]byte); } interface { } is *bogus, not *[]uint8 throw: interface conversion R=r DELTA=30 (24 added, 2 deleted, 4 changed) OCL=18548 CL=18565