summaryrefslogtreecommitdiff
path: root/src/lib
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 Cox1-1/+1
R=r DELTA=8 (1 added, 0 deleted, 7 changed) OCL=19245 CL=19245
2008-11-14handle nils safelyRob Pike1-22/+26
R=rsc DELTA=38 (14 added, 10 deleted, 14 changed) OCL=19242 CL=19242
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 Cox1-3/+9
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-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-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-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-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-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-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-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-05trim tags from type strings for structure fields.Rob Pike2-13/+23
R=rsc DELTA=28 (14 added, 4 deleted, 10 changed) OCL=18561 CL=18563
2008-11-05minor tweak to still non-portable alignment calculationRob Pike1-3/+3
R=rsc DELTA=4 (1 added, 1 deleted, 2 changed) OCL=18528 CL=18533
2008-11-05make sizes and offsets int, not uint64Rob Pike4-43/+45
add Value.Interface, to extract an empty interface that can be converted to a regular Go value of the appropriate type, if known. R=rsc DELTA=49 (2 added, 0 deleted, 47 changed) OCL=18526 CL=18526
2008-11-05fix bugs parsing functions in reflect library.Rob Pike2-13/+31
parsed interfaces wrong. could not handle a function with a single type as a return value. R=rsc DELTA=34 (20 added, 2 deleted, 12 changed) OCL=18511 CL=18520
2008-11-04type strings through the reflection library.Rob Pike3-62/+141
R=rsc DELTA=187 (107 added, 28 deleted, 52 changed) OCL=18510 CL=18510
2008-11-04prepare for recursive printfsRob Pike1-22/+25
R=rsc DELTA=31 (9 added, 6 deleted, 16 changed) OCL=18470 CL=18472
2008-11-04install bignum as libraryRobert Griesemer2-0/+1258
R=r DELTA=3501 (1752 added, 1749 deleted, 0 changed) OCL=18460 CL=18471
2008-11-03remove unnecessary 6g workaroundRuss Cox1-51/+51
R=r DELTA=51 (0 added, 0 deleted, 51 changed) OCL=18399 CL=18402
2008-11-03move DotDotDot into next case - hit submit too fast last time.Rob Pike1-4/+3
R=rsc DELTA=5 (1 added, 2 deleted, 2 changed) OCL=18395 CL=18398
2008-11-03support ... as a special type in the reflection library.Rob Pike3-0/+17
R=rsc DELTA=17 (17 added, 0 deleted, 0 changed) OCL=18386 CL=18393
2008-11-03update names after 6g changeRuss Cox1-5/+5
TBR=r OCL=18381 CL=18383
2008-11-03ascii to unsigned integerRob Pike1-19/+37
R=rsc DELTA=60 (35 added, 17 deleted, 8 changed) OCL=18339 CL=18343
2008-11-02printf as we know and love it.Rob Pike1-21/+25
Plus print[ln] with the ability to print struct values. Note for language mavens: if a "..." function passes its argument to another "..." function, the argument is not wrapped again. This allows printf to call fprintf without extra manipulation. It's good but needs to go in the spec. This code works: /// package main import fmt "fmt" import os "os" type T struct { s string; a, b int } func main() { P := fmt.Printer(); P.printf("%s = %d with float value %.4f\n", "hi there", 7, 123.456); P.println("hi there", 7, 123.456); P.fprintf(os.Stdout, "%s = %d with float value %.4f\n", "hi there", 7, 123.456); P.println(T{"x", 7, 234}, "end of struct", 8, 9); } R=rsc DELTA=28 (7 added, 3 deleted, 18 changed) OCL=18321 CL=18324
2008-11-02add creator for missing types, to avoid crashes whenRob Pike2-0/+18
signature is absent from object file. R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=18315 CL=18323
2008-11-01a couple of bugs in print.Rob Pike1-1/+11
1) bool wasn't handled (added '%t' for 'truth'). 2) float64 had a typo. TBR=rsc DELTA=11 (10 added, 0 deleted, 1 changed) OCL=18314 CL=18318
2008-10-31Add support for the basic type "bool".Ian Lance Taylor6-0/+51
R=r DELTA=51 (51 added, 0 deleted, 0 changed) OCL=18283 CL=18290
2008-10-31\x00 for NUL in type string.Rob Pike3-5/+14
R=rsc DELTA=14 (9 added, 0 deleted, 5 changed) OCL=18281 CL=18281
2008-10-31add mention of tag string to grammar commentRob Pike1-1/+3
R=rsc DELTA=3 (2 added, 0 deleted, 1 changed) OCL=18232 CL=18232
2008-10-30reflection support for tag stringsRob Pike4-9/+86
R=rsc DELTA=86 (77 added, 0 deleted, 9 changed) OCL=18201 CL=18203
2008-10-29./6.outRuss Cox1-1/+1
R=ken OCL=18079 CL=18079
2008-10-29update fmt to int/int32 etc splitRob Pike1-3/+9
R=rsc DELTA=9 (6 added, 0 deleted, 3 changed) OCL=18072 CL=18075
2008-10-29update reflection library to int/int32 etc. splitRob Pike6-27/+149
fmt still to come R=rsc DELTA=168 (141 added, 19 deleted, 8 changed) OCL=18064 CL=18071
2008-10-29update linux for int/int32Russ Cox3-7/+7
R=r DELTA=7 (0 added, 0 deleted, 7 changed) OCL=18050 CL=18069
2008-10-29update Fmt interface: d=int, ud=uint, d32=int32, d64=int64, etc.Russ Cox3-80/+113
R=r DELTA=202 (60 added, 24 deleted, 118 changed) OCL=18029 CL=18038
2008-10-29fix strings bug from CL 18024Russ Cox1-1/+0
R=r OCL=18026 CL=18026
2008-10-29adapt to new compiler typesRuss Cox7-31/+32
R=r OCL=18024 CL=18024
2008-10-29the end of life as we know itKen Thompson4-5/+5
int is new type R=r OCL=18023 CL=18023