]>
Cypherpunks repositories - gostls13.git/log
Robert Griesemer [Sat, 25 Apr 2009 23:52:30 +0000 (16:52 -0700)]
- minor formatting and capitalization (export) changes
TBR=rsc
OCL=27861
CL=27861
Robert Griesemer [Sat, 25 Apr 2009 23:48:00 +0000 (16:48 -0700)]
- renamed docprinter.go -> doc.go
- adjusted dependent files
(no changes in doc.go)
TBR=rsc
OCL=27860
CL=27860
Robert Griesemer [Sat, 25 Apr 2009 23:36:17 +0000 (16:36 -0700)]
daily snapshot:
- more work on template-driven ast formatting
- added preliminary test suite
- added documentation
TBR=r
OCL=27858
CL=27858
Robert Griesemer [Sat, 25 Apr 2009 20:41:56 +0000 (13:41 -0700)]
cannot declare a variable in new scope with same name as type in outer scope
(same as bug144.go but for types instead of constants)
TBR=ken
DELTA=17 (17 added, 0 deleted, 0 changed)
OCL=27855
CL=27855
Robert Griesemer [Sat, 25 Apr 2009 00:22:58 +0000 (17:22 -0700)]
daily snapshot:
- more work on template-driven ast printing
R=r
OCL=27851
CL=27851
Ken Thompson [Fri, 24 Apr 2009 23:43:31 +0000 (16:43 -0700)]
recognize a defined constant
as a new name in a later declaration
(bug 144)
R=r
OCL=27850
CL=27850
Robert Griesemer [Fri, 24 Apr 2009 19:59:09 +0000 (12:59 -0700)]
- fixed a couple of potential end-less loops
(no progress in presence of syntax errors)
- end parsing early if source doesn't start
proper package clause
R=iant
DELTA=18 (7 added, 6 deleted, 5 changed)
OCL=27840
CL=27842
Robert Griesemer [Fri, 24 Apr 2009 04:54:07 +0000 (21:54 -0700)]
- cannot declare local variable named like a constant in outer scope
- submitted per discussion w/ ken
TBR=ken
DELTA=25 (25 added, 0 deleted, 0 changed)
OCL=27824
CL=27826
Robert Griesemer [Fri, 24 Apr 2009 04:53:01 +0000 (21:53 -0700)]
daily snapshot:
- minor bug fixes in pretty, godoc
- first cut at template-driven printing of ast
TBR=r
OCL=27825
CL=27825
Ben Eitzen [Fri, 24 Apr 2009 01:23:34 +0000 (18:23 -0700)]
Clear upper bits of 64-bit indexing register when using types smaller than 64 bits.
APPROVED=ken
OCL=27811
CL=27823
Robert Griesemer [Thu, 23 Apr 2009 21:42:21 +0000 (14:42 -0700)]
fixed typo in EBNF of ENBF
R=iant
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=27801
CL=27806
Rob Pike [Wed, 22 Apr 2009 07:53:35 +0000 (00:53 -0700)]
add {.tab}
fix a couple of comments
TBR=rsc
OCL=27716
CL=27716
Rob Pike [Wed, 22 Apr 2009 05:46:19 +0000 (22:46 -0700)]
allow godoc to match on regular expressions.
if the name contains a metacharacter, use regexp matching;
otherwise require strict equality.
now
godoc flag '.*Var'
can give you all the FooVar functions.
R=gri
DELTA=19 (19 added, 0 deleted, 0 changed)
OCL=27711
CL=27713
Rob Pike [Wed, 22 Apr 2009 05:26:08 +0000 (22:26 -0700)]
fix template.
.or works in .repeated so remove the comment.
the bug was in the template: .section executes iff the field is non-empty.
R=gri
DELTA=13 (6 added, 7 deleted, 0 changed)
OCL=27710
CL=27712
David Symonds [Wed, 22 Apr 2009 03:26:26 +0000 (20:26 -0700)]
Extend fixedbugs/bug143.go with function return values,
as a regression test for the fix made in s2/27706.
R=r
APPROVED=r
DELTA=14 (13 added, 0 deleted, 1 changed)
OCL=27707
CL=27709
David Symonds [Wed, 22 Apr 2009 03:24:28 +0000 (20:24 -0700)]
Clean up some more code after bug143 was fixed.
R=r
APPROVED=r
DELTA=6 (0 added, 5 deleted, 1 changed)
OCL=27708
CL=27708
Ken Thompson [Wed, 22 Apr 2009 02:52:13 +0000 (19:52 -0700)]
2 minor bugs.
lv context for some [] operations
calling implicit(*map) before walk.
R=r
OCL=27706
CL=27706
Ken Thompson [Wed, 22 Apr 2009 02:38:58 +0000 (19:38 -0700)]
bug in shift of longer operand
by a shorter operand. the bits
in the difference were not cheared.
R=r
OCL=27705
CL=27705
Robert Griesemer [Wed, 22 Apr 2009 01:37:48 +0000 (18:37 -0700)]
remove lots of accumulated crud:
- delete utility files which contained functionality that is now elsewhere
(or saved the files away for now)
- cleanup Makefile (remove unnecessary deps)
- minor adjustments to godoc, fixed a couple of bugs
- make pretty.go self-contained
TBR=r
DELTA=625 (81 added, 510 deleted, 34 changed)
OCL=27700
CL=27702
David Symonds [Wed, 22 Apr 2009 01:36:53 +0000 (18:36 -0700)]
Bug 143 is fixed, so clean up some of exvar.
R=r
APPROVED=r
DELTA=8 (3 added, 1 deleted, 4 changed)
OCL=27699
CL=27701
Rob Pike [Wed, 22 Apr 2009 01:11:34 +0000 (18:11 -0700)]
bug143 is fixed
R=dsymonds
DELTA=58 (26 added, 32 deleted, 0 changed)
OCL=27698
CL=27698
Ken Thompson [Wed, 22 Apr 2009 00:00:08 +0000 (17:00 -0700)]
supply default indirection to
map indexing - bug 143
R=r
OCL=27695
CL=27695
David Symonds [Tue, 21 Apr 2009 23:50:09 +0000 (16:50 -0700)]
Change exvar to use a goroutine channel worker instead of a mutex for synchronisation.
Also it should be more testable, as there's less global state.
R=r
APPROVED=r
DELTA=113 (38 added, 12 deleted, 63 changed)
OCL=27653
CL=27694
Robert Griesemer [Tue, 21 Apr 2009 22:30:17 +0000 (15:30 -0700)]
minor adjustment to comment formatting for better godoc output
R=r
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=27687
CL=27689
Robert Griesemer [Tue, 21 Apr 2009 22:14:34 +0000 (15:14 -0700)]
minor adjustments to comments for better godoc output
R=r
DELTA=6 (0 added, 0 deleted, 6 changed)
OCL=27686
CL=27688
Robert Griesemer [Tue, 21 Apr 2009 17:52:00 +0000 (10:52 -0700)]
- documentation for bignum package
- removed some constants from public interface
R=r
DELTA=375 (238 added, 14 deleted, 123 changed)
OCL=27636
CL=27668
Rob Pike [Tue, 21 Apr 2009 07:05:19 +0000 (00:05 -0700)]
update golden for bug 143
R=dsymonds
DELTA=6 (6 added, 0 deleted, 0 changed)
OCL=27654
CL=27654
David Symonds [Tue, 21 Apr 2009 05:38:14 +0000 (22:38 -0700)]
Refactor exvar to use interface types, and add mapVar.
R=r
APPROVED=r
DELTA=170 (136 added, 6 deleted, 28 changed)
OCL=27628
CL=27652
David Symonds [Tue, 21 Apr 2009 04:03:38 +0000 (21:03 -0700)]
Add bug143 to demonstrate bug with "v, ok :=" on pointers to maps.
R=r
APPROVED=r
DELTA=26 (26 added, 0 deleted, 0 changed)
OCL=27651
CL=27651
Rob Pike [Tue, 21 Apr 2009 01:51:13 +0000 (18:51 -0700)]
rewrite template library:
- separate parsing from execution
- rearrange code for organizational clarity
- provide execution errors and parse-time errors
- implement .or for repeated
TBR=rsc
OCL=27650
CL=27650
David Symonds [Tue, 21 Apr 2009 01:13:14 +0000 (18:13 -0700)]
Move iterable package to usr/dsymonds/.
R=r
APPROVED=r
DELTA=598 (330 added, 266 deleted, 2 changed)
OCL=27627
CL=27649
Robert Griesemer [Mon, 20 Apr 2009 22:32:20 +0000 (15:32 -0700)]
- book-keeping in the TODO section:
- removed closed, resolved, or off-the-table items
- consolidated remaining items
- no changes to the spec
R=r
DELTA=116 (1 added, 102 deleted, 13 changed)
OCL=27596
CL=27640
Robert Griesemer [Mon, 20 Apr 2009 22:23:21 +0000 (15:23 -0700)]
missing '}' (found by pretty)
R=r
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=27633
CL=27639
David Symonds [Mon, 20 Apr 2009 07:43:10 +0000 (00:43 -0700)]
Oops, forgot to commit this change.
R=r
APPROVED=r
DELTA=3 (1 added, 0 deleted, 2 changed)
OCL=27624
CL=27626
David Symonds [Mon, 20 Apr 2009 07:42:08 +0000 (00:42 -0700)]
Use the mutex in exvar.Set since map access is not atomic.
Imagine your var has a value of zero. If you have a goroutine calling Set(5),
and another calling Increment(+1), then you only want one of these outcomes:
- Set completes first, and then Increment occurs => 6
- Increment completes first, and then Set occurs => 5
However, you could get a sequence:
- read (for Increment) 0
- set (for Set) 5
- write (for Increment) 1
This results in a value of 1, which is undesirable.
Kudos to dnadasi for catching this.
R=r
APPROVED=r
DELTA=3 (3 added, 0 deleted, 0 changed)
OCL=27625
CL=27625
David Symonds [Mon, 20 Apr 2009 06:52:29 +0000 (23:52 -0700)]
Add Inject function to iterable package.
Fix a couple of style mistakes.
R=r,rsc
APPROVED=r
DELTA=34 (30 added, 1 deleted, 3 changed)
OCL=27623
CL=27623
David Symonds [Mon, 20 Apr 2009 04:17:27 +0000 (21:17 -0700)]
Initial cut at an "exported variables" (exvar) package.
This handles integer-valued vars in a singleton struct, and exports functions
for incrementing, setting and getting those vars, as well as rendering all the
vars in a standard format.
Demonstrate the use of the exvar package in the http/triv server.
R=dcross,r
APPROVED=r
DELTA=122 (122 added, 0 deleted, 0 changed)
OCL=27617
CL=27622
Rob Pike [Mon, 20 Apr 2009 04:12:48 +0000 (21:12 -0700)]
typo in message
R=ken
OCL=27621
CL=27621
Rob Pike [Mon, 20 Apr 2009 04:12:13 +0000 (21:12 -0700)]
add another test to decl to see that result vars are redeclarable.
R=ken
OCL=27620
CL=27620
Rob Pike [Mon, 20 Apr 2009 04:02:29 +0000 (21:02 -0700)]
Readn is a silly name when there's no n. Change to FullRead.
R=gri
DELTA=15 (0 added, 0 deleted, 15 changed)
OCL=27619
CL=27619
Rob Pike [Mon, 20 Apr 2009 03:04:15 +0000 (20:04 -0700)]
spec change for redeclaration
R=iant,gri
DELTA=14 (14 added, 0 deleted, 0 changed)
OCL=27615
CL=27618
Rob Pike [Sun, 19 Apr 2009 00:21:00 +0000 (17:21 -0700)]
tests for redeclaration in :=
R=ken
DELTA=71 (71 added, 0 deleted, 0 changed)
OCL=27616
CL=27616
Rob Pike [Sat, 18 Apr 2009 23:44:13 +0000 (16:44 -0700)]
the Big Error Shift applied to lib/time/zoneinfo.go.
R=gri
DELTA=22 (5 added, 0 deleted, 17 changed)
OCL=27608
CL=27614
Ken Thompson [Sat, 18 Apr 2009 20:58:04 +0000 (13:58 -0700)]
mixed old/new declaration
exact spec:
a) must be a multi-assignment w :=
b) a proper subset of the lhs
can be declared in same block
with the same type with no
"redeclaration" error
R=r
OCL=27610
CL=27610
Rob Pike [Sat, 18 Apr 2009 02:39:45 +0000 (19:39 -0700)]
add -P pkgdir option to 6l to have it look first in pkgdir for a package.
this allows gotest to find the locally built package when doing
make
gotest
without this option, one would have to say
make install
gotest
which kinda defeats the purpose
based on discussions with rsc.
R=ken,rsc
DELTA=12 (10 added, 1 deleted, 1 changed)
OCL=27606
CL=27606
Rob Pike [Fri, 17 Apr 2009 07:36:15 +0000 (00:36 -0700)]
Step 2 of the Big Error Shift.
Change the representation of errors in "os" to be cleaner.
(But they are not really representative of the power of the new scheme.)
Step 3 will be to remove all references to os.NewError.
Step 4 will be to delete the second half of lib/os/error.go.
R=rsc
OCL=27587
CL=27587
Rob Pike [Fri, 17 Apr 2009 07:08:24 +0000 (00:08 -0700)]
Step 1 of the Big Error Shift: make os.Error an interface and replace *os.Errors with os.Errors.
lib/template updated to use new setup; its clients also updated.
Step 2 will make os's error support internally much cleaner.
R=rsc
OCL=27586
CL=27586
Russ Cox [Fri, 17 Apr 2009 06:07:30 +0000 (23:07 -0700)]
make string(array) take []byte only (and thus *[10]byte but not [10]byte)
R=ken
OCL=27581
CL=27585
Russ Cox [Fri, 17 Apr 2009 06:07:15 +0000 (23:07 -0700)]
make string take []byte only, so have to use *[10]byte to convert
R=r
DELTA=4 (0 added, 0 deleted, 4 changed)
OCL=27578
CL=27584
Russ Cox [Fri, 17 Apr 2009 06:07:00 +0000 (23:07 -0700)]
regenerate makefile with installed gobuild
R=r
DELTA=23 (8 added, 0 deleted, 15 changed)
OCL=27577
CL=27583
Russ Cox [Fri, 17 Apr 2009 06:06:48 +0000 (23:06 -0700)]
spec edits for array slice change
R=r
DELTA=6 (0 added, 2 deleted, 4 changed)
OCL=27532
CL=27582
Rob Pike [Fri, 17 Apr 2009 05:43:34 +0000 (22:43 -0700)]
fix linux build
R=rsc
OCL=27579
CL=27579
Russ Cox [Fri, 17 Apr 2009 03:52:37 +0000 (20:52 -0700)]
Convert go tree to hierarchical pkg directory:
import (
"vector" -> "container/vector"
"ast" -> "go/ast"
"sha1" -> "hash/sha1"
etc.
)
and update Makefiles. Because I did the conversion
semi-automatically, I sorted all the import blocks
as a post-processing. Some files have therefore
changed that didn't strictly need to.
Rename local packages to lower case.
The upper/lower distinction doesn't work on OS X
and complicates the "single-package directories
with the same package name as directory name"
heuristic used by gobuild and godoc to create
the correlation between source and binary locations.
Now that we have a plan to avoid globally unique
names, the upper/lower is unnecessary.
The renamings will cause trouble for a few users,
but so will the change in import paths.
This way, the two maintenance fixes are rolled into
one inconvenience.
R=r
OCL=27573
CL=27575
Russ Cox [Fri, 17 Apr 2009 03:52:13 +0000 (20:52 -0700)]
build packages in obj/ subdirectory that mimics $GOROOT/pkg.
for example, if building in src/lib/container,
objects go in obj/container/, so that 6g -Iobj
will find "container/vector".
install packages in hierarchy in $GOROOT.
this change only updates gobuild.
another change will have to update all
the sources to refer to "container/vector" etc
and regenerate all the Makefiles.
there are some pretty lame functions here
(e.g., Mkdir, Remove, the Getenv("PWD"))
but i will implement better ones in another CL.
R=r
DELTA=117 (99 added, 2 deleted, 16 changed)
OCL=27550
CL=27574
Rob Pike [Fri, 17 Apr 2009 00:44:23 +0000 (17:44 -0700)]
document template
R=rsc
DELTA=92 (73 added, 0 deleted, 19 changed)
OCL=27566
CL=27572
Russ Cox [Thu, 16 Apr 2009 07:18:37 +0000 (00:18 -0700)]
regenerate Makefiles.
fix bug in RPC.go (import "RPC" not "rpc.pb")
R=r
DELTA=483 (261 added, 64 deleted, 158 changed)
OCL=27547
CL=27549
Russ Cox [Thu, 16 Apr 2009 07:18:11 +0000 (00:18 -0700)]
rewrite gobuild in go.
R=r
DELTA=1305 (704 added, 590 deleted, 11 changed)
OCL=27546
CL=27548
Russ Cox [Thu, 16 Apr 2009 05:38:09 +0000 (22:38 -0700)]
panicln: emit just one newline
R=ken
OCL=27537
CL=27545
Rob Pike [Thu, 16 Apr 2009 04:57:55 +0000 (21:57 -0700)]
fix gotest by fixing nm -s to print in file order by storing a sequence number
as the .6 file is read. now tests will be run in file order.
R=rsc
DELTA=9 (6 added, 1 deleted, 2 changed)
OCL=27542
CL=27544
Rob Pike [Thu, 16 Apr 2009 04:49:50 +0000 (21:49 -0700)]
fix one word for consistency.
R=gri
OCL=27543
CL=27543
Rob Pike [Thu, 16 Apr 2009 03:53:07 +0000 (20:53 -0700)]
update tutorial for new slicing rules.
R=rsc
DELTA=13 (6 added, 0 deleted, 7 changed)
OCL=27539
CL=27541
Rob Pike [Thu, 16 Apr 2009 03:51:17 +0000 (20:51 -0700)]
tweak grammar and associated prose to permit things like x.y in range clauses.
R=rsc
DELTA=5 (3 added, 0 deleted, 2 changed)
OCL=27536
CL=27540
Rob Pike [Thu, 16 Apr 2009 03:28:25 +0000 (20:28 -0700)]
spec for range on strings
R=rsc,iant
DELTA=17 (11 added, 0 deleted, 6 changed)
OCL=27529
CL=27535
Russ Cox [Thu, 16 Apr 2009 03:27:45 +0000 (20:27 -0700)]
code changes for array conversion.
as a reminder, the old conversion
was that you could write
var arr [10]byte;
var slice []byte;
slice = arr;
but now you have to write
slice = &arr;
the change eliminates an implicit &, so that
the only implicit &s left are in the . operator
and in string(arr).
also, removed utf8.EncodeRuneToString
in favor of string(rune).
R=r
DELTA=83 (1 added, 23 deleted, 59 changed)
OCL=27531
CL=27534
Russ Cox [Thu, 16 Apr 2009 03:27:22 +0000 (20:27 -0700)]
compiler implementation of array slice change
R=ken
OCL=27533
CL=27533
Russ Cox [Thu, 16 Apr 2009 02:01:48 +0000 (19:01 -0700)]
document and partially fix a race
R=r
DELTA=24 (21 added, 0 deleted, 3 changed)
OCL=27527
CL=27527
Russ Cox [Thu, 16 Apr 2009 01:53:43 +0000 (18:53 -0700)]
godoc: use data-driven templates for html, text generation
R=gri
DELTA=1341 (668 added, 282 deleted, 391 changed)
OCL=27485
CL=27526
Russ Cox [Thu, 16 Apr 2009 01:52:28 +0000 (18:52 -0700)]
fix traceback prints - %S was not advancing pointer enough
R=r
DELTA=6 (5 added, 1 deleted, 0 changed)
OCL=27500
CL=27525
Russ Cox [Thu, 16 Apr 2009 01:40:55 +0000 (18:40 -0700)]
make Location translate relative path to absolute
(HTTP requires absolute in protocol).
add URL tests
R=r
DELTA=243 (242 added, 0 deleted, 1 changed)
OCL=27472
CL=27523
Russ Cox [Thu, 16 Apr 2009 01:39:35 +0000 (18:39 -0700)]
tweak flag comment
R=r
DELTA=36 (1 added, 0 deleted, 35 changed)
OCL=27484
CL=27522
Russ Cox [Thu, 16 Apr 2009 01:38:37 +0000 (18:38 -0700)]
godoc: supporting data
R=gri
DELTA=252 (240 added, 3 deleted, 9 changed)
OCL=27482
CL=27521
Russ Cox [Wed, 15 Apr 2009 07:55:58 +0000 (00:55 -0700)]
check for type equality in deepequal
R=r,dnadasi
DELTA=9 (8 added, 0 deleted, 1 changed)
OCL=27473
CL=27486
Russ Cox [Wed, 15 Apr 2009 07:26:49 +0000 (00:26 -0700)]
treat "" as empty
R=r
DELTA=10 (10 added, 0 deleted, 0 changed)
OCL=27479
CL=27481
Russ Cox [Wed, 15 Apr 2009 07:05:47 +0000 (00:05 -0700)]
better html support.
turn on error reporting; not enough info otherwise.
R=r
DELTA=49 (43 added, 6 deleted, 0 changed)
OCL=27476
CL=27478
Rob Pike [Wed, 15 Apr 2009 05:35:18 +0000 (22:35 -0700)]
configurable delimiters.
R=rsc
DELTA=139 (90 added, 7 deleted, 42 changed)
OCL=27475
CL=27477
Russ Cox [Wed, 15 Apr 2009 04:25:33 +0000 (21:25 -0700)]
test & fix template used twice
R=r
DELTA=30 (30 added, 0 deleted, 0 changed)
OCL=27470
CL=27474
Russ Cox [Wed, 15 Apr 2009 03:31:31 +0000 (20:31 -0700)]
http additions
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
Rob Pike [Wed, 15 Apr 2009 03:10:49 +0000 (20:10 -0700)]
add a section about order of evaluation
DELTA=32 (29 added, 2 deleted, 1 changed)
OCL=27197
CL=27469
Russ Cox [Wed, 15 Apr 2009 02:57:27 +0000 (19:57 -0700)]
tweak interface warning heuristic.
some day i will fix this for real.
R=ken
OCL=27468
CL=27468
Russ Cox [Wed, 15 Apr 2009 02:03:57 +0000 (19:03 -0700)]
do not create interfaces containing interfaces
R=r
DELTA=16 (14 added, 0 deleted, 2 changed)
OCL=27464
CL=27466
Russ Cox [Wed, 15 Apr 2009 01:52:39 +0000 (18:52 -0700)]
fix infinite loop in Readdirnames: bufp > nbuf can happen
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
Ian Lance Taylor [Tue, 14 Apr 2009 13:46:01 +0000 (06:46 -0700)]
Make the reflection library match the reflection string which
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
Russ Cox [Tue, 14 Apr 2009 08:12:20 +0000 (01:12 -0700)]
add type in not-found error messages.
delay indirection so that values passed to
formatters preserve pointer-ness.
R=r
OCL=27410
CL=27414
Rob Pike [Tue, 14 Apr 2009 07:06:49 +0000 (00:06 -0700)]
add (stub) parser to template code, enabling rewrite.
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
Rob Pike [Tue, 14 Apr 2009 03:37:24 +0000 (20:37 -0700)]
enable test and fix bug in white space before {
R=rsc
DELTA=6 (0 added, 0 deleted, 6 changed)
OCL=27404
CL=27404
Russ Cox [Tue, 14 Apr 2009 02:29:38 +0000 (19:29 -0700)]
template bug
--- 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
Russ Cox [Tue, 14 Apr 2009 02:29:23 +0000 (19:29 -0700)]
change template function interface to
func(w io.Write, value interface{}, format string)
R=r
DELTA=16 (3 added, 3 deleted, 10 changed)
OCL=27399
CL=27401
Rob Pike [Tue, 14 Apr 2009 02:27:35 +0000 (19:27 -0700)]
\r is white space
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=27397
CL=27400
Russ Cox [Tue, 14 Apr 2009 02:14:09 +0000 (19:14 -0700)]
fix error return in Remove
change canexec to canExec.
R=r
DELTA=7 (0 added, 0 deleted, 7 changed)
OCL=27393
CL=27398
Russ Cox [Mon, 13 Apr 2009 23:50:42 +0000 (16:50 -0700)]
lib misc
* 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
Russ Cox [Mon, 13 Apr 2009 22:25:50 +0000 (15:25 -0700)]
godoc: switch to go library template system
R=gri
DELTA=272 (38 added, 139 deleted, 95 changed)
OCL=27372
CL=27390
Russ Cox [Mon, 13 Apr 2009 22:23:57 +0000 (15:23 -0700)]
allow nil user map
R=r
DELTA=5 (3 added, 0 deleted, 2 changed)
OCL=27371
CL=27389
Russ Cox [Mon, 13 Apr 2009 22:22:36 +0000 (15:22 -0700)]
runtime nits: variable name and comments
R=r
DELTA=10 (0 added, 0 deleted, 10 changed)
OCL=27374
CL=27388
Russ Cox [Mon, 13 Apr 2009 20:28:53 +0000 (13:28 -0700)]
working checkpoint.
add comment describing new web server tree.
make room for command line interface.
use new path package to get rid of doubled slashes.
use new Chdir function to avoid goroot + everything.
implement new /pkg/ tree instead of using regexps.
R=gri
DELTA=267 (103 added, 72 deleted, 92 changed)
OCL=27150
CL=27367
Russ Cox [Mon, 13 Apr 2009 20:27:39 +0000 (13:27 -0700)]
add strconv.Unquote
R=r
DELTA=229 (227 added, 0 deleted, 2 changed)
OCL=27200
CL=27366
Russ Cox [Mon, 13 Apr 2009 12:31:44 +0000 (05:31 -0700)]
fix stringrange test
R=ken
OCL=27353
CL=27353
Ken Thompson [Mon, 13 Apr 2009 05:34:36 +0000 (22:34 -0700)]
tweak
R=r
OCL=27344
CL=27344
Rob Pike [Mon, 13 Apr 2009 00:01:17 +0000 (17:01 -0700)]
fix string range to have full unicode range (up to 10FFFF).
add test for string range.
test has minor failure: after loop the index == len(s); should be len(s)-1
in this case. according to spec, vars are left at position at last
iteration.
R=ken,rsc
DELTA=259 (161 added, 96 deleted, 2 changed)
OCL=27343
CL=27343
Rob Pike [Sun, 12 Apr 2009 23:13:34 +0000 (16:13 -0700)]
change replacement rune to its correct value, fffd
R=ken
OCL=27342
CL=27342
Ken Thompson [Sat, 11 Apr 2009 02:49:31 +0000 (19:49 -0700)]
range over strings
R=r
OCL=27332
CL=27332