summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-11-19- full support for sorting (assumes array elements implement LessInterfaceRobert Griesemer2-19/+43
- better test reporting R=r DELTA=43 (24 added, 0 deleted, 19 changed) OCL=19641 CL=19645
2008-11-19gotestify & gostylify math.Russ Cox17-200/+385
R=r DELTA=682 (275 added, 301 deleted, 106 changed) OCL=19638 CL=19642
2008-11-19gotestify regexpRob Pike2-42/+70
R=rsc DELTA=101 (53 added, 25 deleted, 23 changed) OCL=19635 CL=19637
2008-11-19use new test framework in array testRobert Griesemer1-28/+25
R=r DELTA=30 (2 added, 5 deleted, 23 changed) OCL=19627 CL=19632
2008-11-19- removed uses of vector in favor of array in a few placesRobert Griesemer2-17/+15
- fixed make.bash R=r DELTA=21 (1 added, 3 deleted, 17 changed) OCL=19624 CL=19629
2008-11-19add a type testing.T and use it in tests.Rob Pike7-160/+182
update uses of gotest. minor tweak to testing structure for protobuf. R=rsc DELTA=276 (71 added, 75 deleted, 130 changed) OCL=19614 CL=19621
2008-11-19- adjust sort.go to use new naming conventionsRobert Griesemer1-28/+28
R=rsc DELTA=31 (0 added, 0 deleted, 31 changed) OCL=19618 CL=19620
2008-11-19accept empty list of package imports.Russ Cox1-1/+0
R=ken OCL=19617 CL=19617
2008-11-19new Makefile generated by gobuildRobert Griesemer1-2/+9
R=rsc DELTA=9 (7 added, 0 deleted, 2 changed) OCL=19613 CL=19613
2008-11-19look for .6 before .a; accept archives with 0 length __.SYMDEFRuss Cox1-9/+14
TBR=r OCL=19612 CL=19612
2008-11-19- array lib (essentially vector, more complete)Robert Griesemer5-1/+320
- TODO replace vector R=r DELTA=314 (313 added, 0 deleted, 1 changed) OCL=19592 CL=19609
2008-11-19avoid problem overwriting read-only quietgccRuss Cox1-0/+1
TBR=r OCL=19600 CL=19600
2008-11-19build with warnings enabled.Russ Cox3-2/+41
new script "quietgcc" installed in $HOME/bin during make.bash runs gcc with warnings, turns off inappropriate ones, greps out useless output. quietgcc also makes sure to run the correct 64-bit gcc. R=r DELTA=38 (36 added, 0 deleted, 2 changed) OCL=17493 CL=19599
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox9-14/+44
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19coverage tweaksRuss Cox1-4/+24
* handle new 6g shift sequence * assume 6.out R=r DELTA=24 (20 added, 0 deleted, 4 changed) OCL=19593 CL=19596
2008-11-19essentially 100% coverage of strconv in tests.Russ Cox9-23/+297
fix a few bugs. R=r DELTA=294 (275 added, 9 deleted, 10 changed) OCL=19595 CL=19595
2008-11-19gotest, via testing.go, should warn you if you failed to create any tests.Rob Pike1-0/+5
when chatty, it should tell you how many there are. R=rsc DELTA=5 (5 added, 0 deleted, 0 changed) OCL=19590 CL=19590
2008-11-19saving 2 lines :-)Robert Griesemer1-5/+3
R=rsc DELTA=5 (0 added, 2 deleted, 3 changed) OCL=19562 CL=19585
2008-11-19silence gcc warnings: missing prototypes and unused variablesRuss Cox3-4/+6
R=ken OCL=19583 CL=19583
2008-11-19leave 6.out around after gotest;Russ Cox10-10/+10
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-19change array slice error to include boundsRuss Cox1-2/+15
$ 6.out slice[5:12] of [10] array throw: array slice SIGSEGV: segmentation violation R=r DELTA=15 (13 added, 0 deleted, 2 changed) OCL=19540 CL=19580
2008-11-18read and write never return -1 now: error return is through the error ↵Rob Pike1-4/+13
variable only R=rsc DELTA=13 (9 added, 0 deleted, 4 changed) OCL=19538 CL=19570
2008-11-18perm is [] instead of mapKen Thompson1-3/+3
R=r OCL=19569 CL=19569
2008-11-18need ./ on local filesKen Thompson1-1/+1
R=rsc OCL=19567 CL=19567
2008-11-18oopsKen Thompson1-1/+0
R=r OCL=19566 CL=19566
2008-11-18first cut at optimizingKen Thompson9-76/+2652
R=r OCL=19564 CL=19564
2008-11-18make Copyn take and return int64.Russ Cox1-15/+51
add Copy. R=gri DELTA=52 (37 added, 1 deleted, 14 changed) OCL=19557 CL=19559
2008-11-18CopynRobert Griesemer1-0/+34
R=rsc DELTA=34 (34 added, 0 deleted, 0 changed) OCL=19541 CL=19545
2008-11-18add -chatty flag to test.Russ Cox1-5/+19
was supposed to be in some other cl but got dropped. R=r DELTA=21 (16 added, 2 deleted, 3 changed) OCL=19531 CL=19539
2008-11-18stop flag reading before lone - arg.Russ Cox1-2/+5
R=r DELTA=5 (3 added, 0 deleted, 2 changed) OCL=19520 CL=19529
2008-11-18fix build for newbiesRuss Cox1-1/+1
R=r OCL=19526 CL=19528
2008-11-18another shift bugKen Thompson1-7/+12
R=r OCL=19525 CL=19525
2008-11-18more tests for strconv; convert to gotest.Russ Cox4-40/+191
R=r DELTA=219 (186 added, 32 deleted, 1 changed) OCL=19508 CL=19523
2008-11-18return *os.Error instead of bool from strconv.ato*Russ Cox2-50/+100
R=r DELTA=137 (56 added, 4 deleted, 77 changed) OCL=19505 CL=19522
2008-11-18gobuild changes.Russ Cox11-289/+583
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-18roll tests into one binaryRuss Cox5-118/+122
R=r DELTA=145 (27 added, 27 deleted, 91 changed) OCL=19423 CL=19502
2008-11-18testing support libraryRob Pike1-0/+26
R=rsc OCL=19496 CL=19496
2008-11-18allow files to be named on the command lineRob Pike1-2/+2
R=rsc DELTA=3 (1 added, 1 deleted, 1 changed) OCL=19485 CL=19485
2008-11-18new gotest shell script (will be a proper command some day, probably)Rob Pike5-2/+67
automates construction and execution of unit tests. R=rsc DELTA=60 (58 added, 0 deleted, 2 changed) OCL=19482 CL=19484
2008-11-18add build step to install debuggers setgid procmod.Russ Cox4-2/+40
they have to go in /usr/local/bin because the setgid bit is ignored in /Users. R=r DELTA=54 (49 added, 0 deleted, 5 changed) OCL=19424 CL=19463
2008-11-18use correct lineno in nod even if yacc has looked ahead.Russ Cox3-1/+8
makes lineno correct for statements without semicolons. R=ken OCL=19454 CL=19454
2008-11-17* faster atof for common casesRuss Cox2-14/+214
(gets 3x speedup in go; got 40x in c) * handle and test overflow R=r DELTA=217 (200 added, 0 deleted, 17 changed) OCL=19399 CL=19422
2008-11-17work around more commonly-unreachable 6g code sequences.Russ Cox1-0/+23
R=r DELTA=23 (23 added, 0 deleted, 0 changed) OCL=19405 CL=19420
2008-11-17add gobuild to buildRuss Cox2-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=19404 CL=19415
2008-11-17fix the easy parts of bug120Russ Cox3-3/+26
R=r,ken DELTA=66 (52 added, 3 deleted, 11 changed) OCL=19386 CL=19389
2008-11-17silence compiler warningKen Thompson1-1/+9
R=r OCL=19382 CL=19382
2008-11-17correctly rounded floating-point conversionsRuss Cox21-502/+1788
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
2008-11-17First pieces of malloc.Russ Cox2-2/+8
R=r DELTA=756 (754 added, 0 deleted, 2 changed) OCL=19266 CL=19378
2008-11-17adopt suggestions from Bentley and McIlroy (SP&E Nov 1993)Russ Cox1-29/+98
to make qsort more robust: * use "ninther" to choose pivot. * use three-way partition to avoid quadratic behavior on all-one-value arrays. also add tests suggested in that paper. the immediate cause of the slowness we observed was in fact none of these: the recursive call was sorting data[0:m] instead of data[a:m]. also rename package to "sort" to match convention. R=r,gri DELTA=358 (255 added, 21 deleted, 82 changed) OCL=19341 CL=19373
2008-11-16random permutation functionKen Thompson1-0/+17
func perm(n int) *map[int]int R=r OCL=19340 CL=19340