summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-03-04remove some incorrect capitalizations.Rob Pike2-176/+193
add commentary. R=rsc DELTA=231 (41 added, 24 deleted, 166 changed) OCL=25724 CL=25726
2009-03-04- missing makefileRobert Griesemer1-0/+66
R=r OCL=25714 CL=25714
2009-03-04Created new directory lib/lang:Robert Griesemer4-0/+975
- move scanner to into lib/lang - added test - adjusted various make and build files R=r DELTA=1731 (973 added, 753 deleted, 5 changed) OCL=25668 CL=25713
2009-03-04disallow ordinary-type.(T), as in spec.Russ Cox1-1/+2
R=ken OCL=25705 CL=25705
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox60-1547/+1547
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-03-02- itobRobert Griesemer2-44/+92
- more test cases R=rsc DELTA=97 (52 added, 4 deleted, 41 changed) OCL=25585 CL=25607
2009-03-02fix names: s/fd/r/Russ Cox1-9/+9
R=r DELTA=9 (0 added, 0 deleted, 9 changed) OCL=25593 CL=25593
2009-02-17drop trailing slashes - missed comment from last reviewRob Pike1-2/+2
TBR=rsc OCL=25135 CL=25135
2009-02-17more fun with triv.go: flags and argumentsRob Pike1-0/+23
R=rsc DELTA=23 (23 added, 0 deleted, 0 changed) OCL=25088 CL=25134
2009-02-17few more Sizeof.Russ Cox1-3/+2
R=r DELTA=3 (0 added, 1 deleted, 2 changed) OCL=25106 CL=25106
2009-02-16use proper strconv in string values.Rob Pike2-66/+54
make test a little stronger. R=rsc DELTA=94 (27 added, 39 deleted, 28 changed) OCL=25085 CL=25087
2009-02-16comment nitRuss Cox1-2/+0
R=r DELTA=2 (0 added, 2 deleted, 0 changed) OCL=25081 CL=25084
2009-02-16allow hex, octal in Atoi, etc.Russ Cox2-86/+142
R=r DELTA=169 (79 added, 23 deleted, 67 changed) OCL=25079 CL=25083
2009-02-16proposed XML parser design.Russ Cox1-0/+426
inspired by expat's callback interface, but a bit simpler thanks to go interfaces. also serves as reference notes about XML. the parser itself is unimplemented. not in Makefiles, though it does build. R=r DELTA=425 (425 added, 0 deleted, 0 changed) OCL=25077 CL=25080
2009-02-16make interface to the flags themselves more public.Rob Pike2-55/+139
add visitor functions to scan the flags. add a way to set a flag. add a flag test. R=rsc DELTA=169 (99 added, 19 deleted, 51 changed) OCL=25076 CL=25078
2009-02-16fix build - missed this file beforeRuss Cox1-0/+20
TBR=r OCL=25074 CL=25074
2009-02-16use embedded interface typesRuss Cox3-204/+48
R=r DELTA=205 (1 added, 157 deleted, 47 changed) OCL=25071 CL=25073
2009-02-16io.PipeRuss Cox8-67/+475
assorted underscore cleanup R=r DELTA=488 (410 added, 3 deleted, 75 changed) OCL=25070 CL=25070
2009-02-15assorted changes:Russ Cox10-163/+192
- use a lock instead of a thread in once avoids deadlock in recursive once calls - implement os.Setenv - remove "export" from some scripts - remove _ from names in time package - fix time test for non-MTV machines R=r DELTA=265 (87 added, 58 deleted, 120 changed) OCL=25057 CL=25057
2009-02-15change the URL in the test to avoid a redirection that breaks it in sydney.Rob Pike1-3/+3
R=rsc OCL=25054 CL=25054
2009-02-15add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.Russ Cox13-16/+848
as thread-safe as possible, given the surrounding system. add stub RWLock implementation. R=r DELTA=852 (834 added, 6 deleted, 12 changed) OCL=25046 CL=25053
2009-02-15insert ${GOOS} and ${GOARCH} inRuss Cox1-2/+2
command-line comment. R=r DELTA=11 (6 added, 0 deleted, 5 changed) OCL=25051 CL=25051
2009-02-15cleanups:Russ Cox12-242/+273
get rid of _ on private names in net. fix os_test file name list. newline not needed on Errorf. R=r DELTA=305 (34 added, 2 deleted, 269 changed) OCL=25047 CL=25047
2009-02-13- added Makefile change again (lost due to to p4 misuse)Robert Griesemer1-0/+1
R=rsc OCL=25026 CL=25026
2009-02-13- vector package (identical to array except for names)Robert Griesemer7-9/+498
- updated some file (but not all - left array package in place for now) R=rsc DELTA=530 (483 added, 0 deleted, 47 changed) OCL=25025 CL=25025
2009-02-13convert composite literals from { } to ( ).Russ Cox54-1454/+1454
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-13fix buildRuss Cox1-1/+1
TBR=r OCL=25021 CL=25021
2009-02-11insert type assertions when narrowing.Russ Cox6-26/+164
R=r OCL=24349 CL=24913
2009-02-10change DirInfo->dirInfo now that 6g export bug is fixedRob Pike3-4/+4
R=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=24788 CL=24805
2009-02-10drop the os_ prefix on the file names in os. os_test.go can stay.Rob Pike6-10/+10
R=rsc DELTA=793 (392 added, 392 deleted, 9 changed) OCL=24777 CL=24804
2009-02-10Make Readdirnames work properly on Linux.Rob Pike3-142/+62
Refactor so Readdir is portable code. R=rsc DELTA=192 (50 added, 130 deleted, 12 changed) OCL=24770 CL=24772
2009-02-10Fix Readdirnames to behave properly if reading in little pieces. Requires ↵Rob Pike4-37/+104
storing some state in the FD. This is Darwin only. Next CL will make Readdir use Readdirnames to generate its files and move Readdir into portable code, as well as fix Readdirnames for Linux. R=rsc DELTA=116 (79 added, 12 deleted, 25 changed) OCL=24756 CL=24768
2009-02-10- removed obsolete commentsRobert Griesemer1-2/+1
R=r DELTA=2 (0 added, 1 deleted, 1 changed) OCL=24755 CL=24760
2009-02-09fix Getdirentries: base comes back in r2.Rob Pike1-0/+3
R=rsc DELTA=3 (3 added, 0 deleted, 0 changed) OCL=24727 CL=24727
2009-02-09simple accessors for Dir mode bitsRob Pike3-0/+71
R=rsc DELTA=71 (71 added, 0 deleted, 0 changed) OCL=24687 CL=24694
2009-02-09typo. this split-os building thing is frustrating.Rob Pike1-1/+1
R=rsc OCL=24681 CL=24681
2009-02-09add Readdir: returns an array of Dir structuresRob Pike3-24/+188
R=rsc DELTA=200 (176 added, 12 deleted, 12 changed) OCL=24680 CL=24680
2009-02-09fix int64/int error - build brokenRob Pike1-1/+1
R=gri OCL=24678 CL=24678
2009-02-08First pass at reading directories.Rob Pike8-13/+216
Syscall support. Readdirnames returns array of strings of contents of directory. R=rsc DELTA=216 (201 added, 0 deleted, 15 changed) OCL=24642 CL=24655
2009-02-08a few small cleanupsRob Pike2-18/+18
R=rsc DELTA=21 (2 added, 2 deleted, 17 changed) OCL=24638 CL=24654
2009-02-08use unsafe.SizeofRob Pike1-6/+6
R=rsc DELTA=9 (3 added, 3 deleted, 3 changed) OCL=24640 CL=24653
2009-02-06fix up syscall for darwin after StringToBytes changeRob Pike1-30/+12
R=rsc DELTA=30 (0 added, 18 deleted, 12 changed) OCL=24628 CL=24628
2009-02-06portable stat for osRob Pike11-86/+277
add name to os.FD clean up some interfaces R=rsc DELTA=318 (231 added, 44 deleted, 43 changed) OCL=24624 CL=24627
2009-02-06fstat used wrong system call, lstat used wrong type of nameRob Pike1-3/+7
R=rsc DELTA=7 (4 added, 0 deleted, 3 changed) OCL=24617 CL=24617
2009-02-06add a trivial visitor method, just for funRob Pike2-1/+30
R=gri DELTA=31 (30 added, 1 deleted, 0 changed) OCL=24568 CL=24575
2009-02-05further pedagogy: a channel that satisfies the HTTP server interfaceRob Pike1-0/+18
R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=24482 CL=24484
2009-02-05take advantage of methods on funcsRuss Cox1-14/+1
R=r DELTA=14 (0 added, 13 deleted, 1 changed) OCL=24458 CL=24470
2009-02-04clean up flags package a bit.Rob Pike1-28/+31
fix a bug in Usage message - would print current value instead of default. R=rsc DELTA=53 (7 added, 4 deleted, 42 changed) OCL=24323 CL=24323
2009-02-03fix build. missed this fileRuss Cox1-11/+4
TBR=r OCL=24269 CL=24269
2009-02-03bufio:Russ Cox8-172/+251
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238