summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-04-15tweak flag commentRuss Cox1-35/+36
R=r DELTA=36 (1 added, 0 deleted, 35 changed) OCL=27484 CL=27522
2009-04-15check for type equality in deepequalRuss Cox2-2/+10
R=r,dnadasi DELTA=9 (8 added, 0 deleted, 1 changed) OCL=27473 CL=27486
2009-04-15treat "" as emptyRuss Cox2-2/+12
R=r DELTA=10 (10 added, 0 deleted, 0 changed) OCL=27479 CL=27481
2009-04-15better html support.Russ Cox3-7/+44
turn on error reporting; not enough info otherwise. R=r DELTA=49 (43 added, 6 deleted, 0 changed) OCL=27476 CL=27478
2009-04-14configurable delimiters.Rob Pike2-44/+127
R=rsc DELTA=139 (90 added, 7 deleted, 42 changed) OCL=27475 CL=27477
2009-04-14test & fix template used twiceRuss Cox2-0/+30
R=r DELTA=30 (30 added, 0 deleted, 0 changed) OCL=27470 CL=27474
2009-04-14http additionsRuss Cox3-13/+209
file system server add NotFound, Redirect functions method on a string R=r DELTA=212 (199 added, 4 deleted, 9 changed) OCL=27467 CL=27471
2009-04-14do not create interfaces containing interfacesRuss Cox2-2/+11
R=r DELTA=16 (14 added, 0 deleted, 2 changed) OCL=27464 CL=27466
2009-04-14fix infinite loop in Readdirnames: bufp > nbuf can happenRuss Cox3-3/+3
after EOF has been hit, because nbuf is now 0 or -1. discard old comment. R=r DELTA=3 (0 added, 0 deleted, 3 changed) OCL=27463 CL=27465
2009-04-14Make the reflection library match the reflection string whichIan Lance Taylor4-33/+56
6g generates for functions: expect the keyword "func". The older reflection syntax, without the "func", is still recognized for simplicity in parsing interface reflection strings. R=r,rsc DELTA=66 (31 added, 8 deleted, 27 changed) OCL=27396 CL=27422
2009-04-14add type in not-found error messages.Russ Cox2-41/+32
delay indirection so that values passed to formatters preserve pointer-ness. R=r OCL=27410 CL=27414
2009-04-14add (stub) parser to template code, enabling rewrite.Rob Pike3-101/+124
update pretty to use it. change stdout to stderr in pretty. R=rsc DELTA=173 (52 added, 24 deleted, 97 changed) OCL=27405 CL=27409
2009-04-13enable test and fix bug in white space before {Rob Pike2-6/+6
R=rsc DELTA=6 (0 added, 0 deleted, 6 changed) OCL=27404 CL=27404
2009-04-13template bugRuss Cox1-6/+20
--- FAIL: template.TestAll for "{.section data}{.end} {header}\n": expected " 77\n" got " {header}\n" R=r DELTA=20 (14 added, 0 deleted, 6 changed) OCL=27395 CL=27402
2009-04-13change template function interface toRuss Cox2-13/+13
func(w io.Write, value interface{}, format string) R=r DELTA=16 (3 added, 3 deleted, 10 changed) OCL=27399 CL=27401
2009-04-13\r is white spaceRob Pike1-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27397 CL=27400
2009-04-13fix error return in RemoveRuss Cox2-5/+5
change canexec to canExec. R=r DELTA=7 (0 added, 0 deleted, 7 changed) OCL=27393 CL=27398
2009-04-13lib miscRuss Cox6-0/+100
* exec.LookPath * flag.Args * os.Remove * strings.HasPrefix * strings.HasSuffix * syscall.Rmdir TBR=r DELTA=100 (100 added, 0 deleted, 0 changed) OCL=27373 CL=27392
2009-04-13allow nil user mapRuss Cox1-2/+5
R=r DELTA=5 (3 added, 0 deleted, 2 changed) OCL=27371 CL=27389
2009-04-13add strconv.UnquoteRuss Cox2-2/+229
R=r DELTA=229 (227 added, 0 deleted, 2 changed) OCL=27200 CL=27366
2009-04-10fix typo breaking linux buildRob Pike1-1/+1
R=rsc OCL=27304 CL=27304
2009-04-09change representation of stringsKen Thompson1-4/+32
R=r OCL=27293 CL=27293
2009-04-09Start list of default formatters for template variables.Rob Pike5-7/+53
The HTML one here is just a stub - should use an HTML library to do the right thing. R=rsc DELTA=54 (47 added, 2 deleted, 5 changed) OCL=27250 CL=27250
2009-04-08move template into its own directory so it can have more filesRob Pike4-5/+59
R=rsc DELTA=1421 (736 added, 685 deleted, 0 changed) OCL=27249 CL=27249
2009-04-08add support for variable formattersRob Pike3-57/+91
R=rsc DELTA=134 (75 added, 41 deleted, 18 changed) OCL=27245 CL=27247
2009-04-08yet another attempt at auto-linkingRuss Cox1-2/+4
store only the original import path string (+ .a) if 6g resolves it to an archive file. let 6l re-resolve the .a at link time. this lets libraries build against an archive in the current directory but get used against an installed archive. R=r OCL=27244 CL=27244
2009-04-08undo workaround pending real fixRob Pike1-1/+0
R=rsc OCL=27243 CL=27243
2009-04-08work around link bugRob Pike1-0/+1
R=rsc OCL=27242 CL=27242
2009-04-08First cut at templating library for text generationRob Pike3-0/+668
R=rsc DELTA=663 (663 added, 0 deleted, 0 changed) OCL=27239 CL=27241
2009-04-08Add new functions to the iterable package:David Symonds2-24/+99
- Filter - Find - Partition R=rsc APPROVED=rsc DELTA=117 (92 added, 17 deleted, 8 changed) OCL=27135 CL=27240
2009-04-07fumbly fingers + non-working ^CRuss Cox2-9/+23
submitted CL without applying edits. make changes from CL 27142 review R=r DELTA=26 (17 added, 3 deleted, 6 changed) OCL=27155 CL=27199
2009-04-07throw away . and .. in directory listingsRuss Cox3-2/+13
R=r DELTA=13 (11 added, 0 deleted, 2 changed) OCL=27147 CL=27154
2009-04-07ChdirRuss Cox3-0/+17
R=r DELTA=17 (17 added, 0 deleted, 0 changed) OCL=27146 CL=27153
2009-04-07add path.Clean and other utilities.Russ Cox4-2/+290
use path.Clean in web server to sanitize URLs. http://triv/go/../../../etc/passwd no longer serves the password file. it redirects to http://triv/etc/passwd which then gets a 404. R=r DELTA=288 (286 added, 0 deleted, 2 changed) OCL=27142 CL=27152
2009-04-07add error case in doc for Index. simplify code slightly.Rob Pike1-4/+5
R=rsc DELTA=5 (1 added, 0 deleted, 4 changed) OCL=27148 CL=27151
2009-04-06make NewBufRead etc. idempotentRob Pike2-4/+63
R=rsc DELTA=63 (59 added, 0 deleted, 4 changed) OCL=27143 CL=27143
2009-04-06add method Value() Value to InterfaceValue.Russ Cox4-22/+28
use Value() in print to print underlying value from interface. before: package main import "fmt" func main() { x := []interface{} {1, "hello", 2.5}; fmt.Println(x[0], x[1], x[2], x); } 1 hello 2.5 [<non-nil interface> <non-nil interface> <non-nil interface>] after: 1 hello 2.5 [1 hello 2.5] R=r DELTA=44 (22 added, 16 deleted, 6 changed) OCL=27139 CL=27141
2009-04-06an early 6g limitation forced the use ofRuss Cox4-4/+4
string(b)[0:n] instead of the more direct string(b[0:n]). convert to the more direct form. R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=27082 CL=27140
2009-04-06Extremely minor fix to ByteBuffer.Peter McKenzie1-1/+1
R=r APPROVED=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27123 CL=27130
2009-04-05Add an Iterable package with handy functions like All, Any and Map.David Symonds4-3/+175
Add a Data method to vector.Vector. R=r,rsc APPROVED=rsc DELTA=173 (170 added, 0 deleted, 3 changed) OCL=26980 CL=27098
2009-04-03fix both of anton's bugs:Russ Cox1-1/+1
* make([100]int) was being compiled to make([]int), kind of. * []this = [100]that was working for any this, that. turned up a typo in pipe_test.go R=ken OCL=27081 CL=27081
2009-04-02change in negationRobert Griesemer1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27061 CL=27061
2009-04-02require ";" separator after function literalsRobert Griesemer1-0/+1
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=27057 CL=27059
2009-04-02- Ident node now takes a string Value instead of a []bytesRobert Griesemer2-11/+11
(this removes a lot of string() conversions down the road) - a few minor adjustments R=rsc DELTA=11 (0 added, 0 deleted, 11 changed) OCL=27029 CL=27038
2009-04-02Some AST tuning:Robert Griesemer2-89/+89
- have explicit XSpec nodes for declarations - have a general GenDecl node instead of DeclList R=rsc DELTA=164 (52 added, 52 deleted, 60 changed) OCL=27005 CL=27027
2009-04-01Add a DeepEqual function to the reflect packageDaniel Nadasi3-1/+168
R=r,rsc APPROVED=rsc DELTA=167 (166 added, 0 deleted, 1 changed) OCL=26982 CL=27017
2009-04-01use range in vector iteratorRob Pike1-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27003 CL=27003
2009-03-311) Move parser.go into src/lib/goRobert Griesemer5-25/+2054
- minor adjustments as suggested by rsc 2) Added parser_test fragment 3) Renamed some types in AST.go per rsc request R=rsc DELTA=2053 (2027 added, 0 deleted, 26 changed) OCL=26963 CL=26971
2009-03-30Separate the alignment of a field from the alignment of theIan Lance Taylor1-38/+111
type of the field. Use the field alignment to compute the size of a structure. This may help 8g but is mainly for gccgo. gccgo maintains the standard C/C++ ABI for structure field alignment. For the i386, this requires that a float64 field in a struct be aligned on a 32-bit boundary, although for efficiency a variable of type float64 or []float64 should be aligned on a 64-bit boundary. I also removed the unused size field from structField. R=r DELTA=117 (75 added, 2 deleted, 40 changed) OCL=26842 CL=26936
2009-03-30log.Stderr should actually go to stderr.David Symonds1-1/+1
R=r APPROVED=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=26926 CL=26928