]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agodocument once
Rob Pike [Fri, 6 Mar 2009 11:36:50 +0000 (03:36 -0800)]
document once

R=rsc
DELTA=14  (7 added, 5 deleted, 2 changed)
OCL=25818
CL=25834

16 years agodocument fmt.
Rob Pike [Fri, 6 Mar 2009 11:35:38 +0000 (03:35 -0800)]
document fmt.
the description of the format verbs still needs to be done.

R=rsc
DELTA=288  (88 added, 12 deleted, 188 changed)
OCL=25814
CL=25833

16 years agodocument unicode, such as it is
Rob Pike [Fri, 6 Mar 2009 11:22:02 +0000 (03:22 -0800)]
document unicode, such as it is

R=rsc
DELTA=18  (9 added, 0 deleted, 9 changed)
OCL=25817
CL=25832

16 years agodocument rand
Rob Pike [Fri, 6 Mar 2009 03:26:27 +0000 (19:26 -0800)]
document rand

R=rsc
DELTA=27  (16 added, 8 deleted, 3 changed)
OCL=25804
CL=25813

16 years agodocument container/intvector
Rob Pike [Fri, 6 Mar 2009 03:22:06 +0000 (19:22 -0800)]
document container/intvector

R=rsc
DELTA=15  (15 added, 0 deleted, 0 changed)
OCL=25794
CL=25812

16 years agodocument utf8
Rob Pike [Fri, 6 Mar 2009 03:15:13 +0000 (19:15 -0800)]
document utf8

R=rsc
DELTA=18  (12 added, 0 deleted, 6 changed)
OCL=25807
CL=25811

16 years ago- using doc template for gds now
Robert Griesemer [Fri, 6 Mar 2009 02:44:21 +0000 (18:44 -0800)]
- using doc template for gds now
- no interface extraction yet

R=r
OCL=25808
CL=25808

16 years agonew approach for generating sysimport.c
Russ Cox [Fri, 6 Mar 2009 02:26:12 +0000 (18:26 -0800)]
new approach for generating sysimport.c
(renamed to avoid any conflict with old p4 copies).

this approach doesn't require auto-generating
files also kept in p4, so it should be easier on
go users who don't sync very often.

this approach will be more work for go developers:
builtin.c needs to be copied to builtin.c.boot in p4
as new functions are added.  mkbuiltin does this
for certain $USERs to help us remember.

R=r
DELTA=343  (176 added, 162 deleted, 5 changed)
OCL=25803
CL=25805

16 years agodocument testing and incidentally gotest
Rob Pike [Fri, 6 Mar 2009 01:50:36 +0000 (17:50 -0800)]
document testing and incidentally gotest

R=rsc
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=25798
CL=25802

16 years agoLots of cleanups in prep. for checking in parser and ast into lib:
Robert Griesemer [Fri, 6 Mar 2009 01:15:36 +0000 (17:15 -0800)]
Lots of cleanups in prep. for checking in parser and ast into lib:
- removed any symbol table stuff
- some interface cleanup
- removed lot's of dead wood
- half the support for type switches (simple form)
- name capitalization
Several rounds to come.

R=r
OCL=25797
CL=25797

16 years agodocument strings
Rob Pike [Fri, 6 Mar 2009 01:02:34 +0000 (17:02 -0800)]
document strings

R=rsc
DELTA=9  (4 added, 0 deleted, 5 changed)
OCL=25793
CL=25795

16 years agobug085 bug129
Russ Cox [Thu, 5 Mar 2009 23:57:03 +0000 (15:57 -0800)]
bug085 bug129

R=ken
OCL=25787
CL=25791

16 years agonew switch implementation
Ken Thompson [Thu, 5 Mar 2009 23:49:34 +0000 (15:49 -0800)]
new switch implementation
in preparation of type switch.
no functional change (yet).

R=r
OCL=25784
CL=25788

16 years agonet: doc, doc-inspired cleanup
Russ Cox [Thu, 5 Mar 2009 23:48:12 +0000 (15:48 -0800)]
net: doc, doc-inspired cleanup

R=r
DELTA=368  (87 added, 14 deleted, 267 changed)
OCL=25773
CL=25786

16 years agostrconv: doc
Russ Cox [Thu, 5 Mar 2009 23:29:04 +0000 (15:29 -0800)]
strconv: doc

R=r
DELTA=110  (64 added, 19 deleted, 27 changed)
OCL=25761
CL=25782

16 years agorevert QualifiedIdent to old production
Robert Griesemer [Thu, 5 Mar 2009 23:01:54 +0000 (15:01 -0800)]
revert QualifiedIdent to old production

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=25732
CL=25777

16 years agomisc doc
Russ Cox [Thu, 5 Mar 2009 21:35:45 +0000 (13:35 -0800)]
misc doc

R=r
DELTA=50  (28 added, 0 deleted, 22 changed)
OCL=25763
CL=25770

16 years agodelete deprecated files.
Rob Pike [Thu, 5 Mar 2009 21:31:03 +0000 (13:31 -0800)]
delete deprecated files.
deletion beats documentation for deprecation.

R=rsc,gri
DELTA=509  (2 added, 490 deleted, 17 changed)
OCL=25737
CL=25768

16 years agomath: doc
Russ Cox [Thu, 5 Mar 2009 21:31:01 +0000 (13:31 -0800)]
math: doc

R=r
DELTA=173  (74 added, 14 deleted, 85 changed)
OCL=25753
CL=25767

16 years agodocument vector
Rob Pike [Thu, 5 Mar 2009 21:30:39 +0000 (13:30 -0800)]
document vector

R=rsc
DELTA=36  (30 added, 0 deleted, 6 changed)
OCL=25740
CL=25766

16 years agolog: document
Rob Pike [Thu, 5 Mar 2009 06:46:44 +0000 (22:46 -0800)]
log: document

R=rsc
DELTA=26  (17 added, 1 deleted, 8 changed)
OCL=25731
CL=25734

16 years agoflag: document
Rob Pike [Thu, 5 Mar 2009 06:43:51 +0000 (22:43 -0800)]
flag: document
also write to stderr not stdout

R=rsc
DELTA=48  (38 added, 2 deleted, 8 changed)
OCL=25729
CL=25733

16 years agodelete bogus vestige
Rob Pike [Thu, 5 Mar 2009 06:03:35 +0000 (22:03 -0800)]
delete bogus vestige

R=rsc
OCL=25730
CL=25730

16 years agotypos
Rob Pike [Thu, 5 Mar 2009 05:41:12 +0000 (21:41 -0800)]
typos

R=gri
DELTA=3  (0 added, 1 deleted, 2 changed)
OCL=25728
CL=25728

16 years agosync: add documentation
Russ Cox [Thu, 5 Mar 2009 05:30:07 +0000 (21:30 -0800)]
sync: add documentation

R=r
DELTA=63  (57 added, 1 deleted, 5 changed)
OCL=25727
CL=25727

16 years agoremove some incorrect capitalizations.
Rob Pike [Thu, 5 Mar 2009 05:06:38 +0000 (21:06 -0800)]
remove some incorrect capitalizations.
add commentary.

R=rsc
DELTA=231  (41 added, 24 deleted, 166 changed)
OCL=25724
CL=25726

16 years agofix an HTML glitch.
Rob Pike [Thu, 5 Mar 2009 04:39:39 +0000 (20:39 -0800)]
fix an HTML glitch.
say a little more about package main.

R=rsc
DELTA=7  (4 added, 0 deleted, 3 changed)
OCL=25725
CL=25725

16 years agoreject invalid map key types at compile time
Russ Cox [Thu, 5 Mar 2009 01:38:37 +0000 (17:38 -0800)]
reject invalid map key types at compile time

R=ken
OCL=25720
CL=25720

16 years agofix build
Russ Cox [Thu, 5 Mar 2009 01:37:47 +0000 (17:37 -0800)]
fix build

TBR=gri
OCL=25719
CL=25719

16 years agoSuggested tweaks up to package section.
Russ Cox [Thu, 5 Mar 2009 01:19:21 +0000 (17:19 -0800)]
Suggested tweaks up to package section.

Major ones:
* Be consistent: "numeric type" and "arithmetic operator".
* if/swtch take "simple statement" not "short variable declaration".
* There was a comment that implied for x,y := range z() might
  evaluate z() multiple times.  I deleted it.

R=r,gri
DELTA=124  (24 added, 4 deleted, 96 changed)
OCL=25706
CL=25715

16 years ago- missing makefile
Robert Griesemer [Thu, 5 Mar 2009 01:16:58 +0000 (17:16 -0800)]
- missing makefile

R=r
OCL=25714
CL=25714

16 years agoCreated new directory lib/lang:
Robert Griesemer [Thu, 5 Mar 2009 01:13:12 +0000 (17:13 -0800)]
Created new directory lib/lang:
- 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

16 years agodisallow ordinary-type.(T), as in spec.
Russ Cox [Wed, 4 Mar 2009 22:50:25 +0000 (14:50 -0800)]
disallow ordinary-type.(T), as in spec.

R=ken
OCL=25705
CL=25705

16 years agochange Go logo to link to home page
Russ Cox [Wed, 4 Mar 2009 22:44:51 +0000 (14:44 -0800)]
change Go logo to link to home page

fix grammar for forward declaration of interface, struct.

move array down next to slice.

fix type equal example for structs.

R=r,gri
DELTA=247  (122 added, 114 deleted, 11 changed)
OCL=25694
CL=25704

16 years agoPreparation for moving scanner into a lib:
Robert Griesemer [Wed, 4 Mar 2009 02:25:07 +0000 (18:25 -0800)]
Preparation for moving scanner into a lib:
- separated out token definition from scanner
- cleaned up token and scanner implementation
- added comments to exported interfaces

R=r
OCL=25665
CL=25665

16 years agorephrase redundancy.
Rob Pike [Wed, 4 Mar 2009 00:10:15 +0000 (16:10 -0800)]
rephrase redundancy.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=25652
CL=25656

16 years agoenable pretty in run.bash
Rob Pike [Wed, 4 Mar 2009 00:09:40 +0000 (16:09 -0800)]
enable pretty in run.bash

R=rsc
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=25651
CL=25655

16 years agoupdate missed test case to {}
Rob Pike [Wed, 4 Mar 2009 00:09:12 +0000 (16:09 -0800)]
update missed test case to {}

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=25648
CL=25654

16 years ago- allow ()'s and {}'s for now when parsing calls/composite literals
Robert Griesemer [Wed, 4 Mar 2009 00:00:06 +0000 (16:00 -0800)]
- allow ()'s and {}'s for now when parsing calls/composite literals
- require ()'s around composite literals at the if/for/switch control clause level
- fixed a nasty bug: passing a value instead of a pointer to a value to an interface
  variable - and not noticing that the value is copied

R=r
OCL=25649
CL=25649

16 years agoThe final piece of the alternative to my parens proposal
Russ Cox [Tue, 3 Mar 2009 23:40:30 +0000 (15:40 -0800)]
The final piece of the alternative to my parens proposal
(i.e., the status quo with braces in composite literals).

DELTA=20  (16 added, 0 deleted, 4 changed)
OCL=25640
CL=25646

16 years agoback to T{x}, stricter handling of T(x) vs x.(T)
Russ Cox [Tue, 3 Mar 2009 16:41:02 +0000 (08:41 -0800)]
back to T{x}, stricter handling of T(x) vs x.(T)

R=ken
DELTA=131  (60 added, 41 deleted, 30 changed)
OCL=25617
CL=25633

16 years agoAutomated g4 rollback of changelist 25024,
Russ Cox [Tue, 3 Mar 2009 16:39:12 +0000 (08:39 -0800)]
Automated g4 rollback of changelist 25024,
plus significant hand editing.

Back to T{x} for composite literals.

R=r
OCL=25612
CL=25632

16 years agoclarify conversions vs type guards.
Russ Cox [Tue, 3 Mar 2009 16:10:25 +0000 (08:10 -0800)]
clarify conversions vs type guards.
allow conversions between equal types.

R=r
DELTA=15  (4 added, 4 deleted, 7 changed)
OCL=25618
CL=25630

16 years agoscanner cleanup - getting it ready to as a library
Robert Griesemer [Tue, 3 Mar 2009 04:27:09 +0000 (20:27 -0800)]
scanner cleanup - getting it ready to as a library
- removed unneeded code that accumulated over time
- change src from string to []byte (perhaps should be io.Read
but that has some other disadvantages)
- simplified interface

R=r
OCL=25615
CL=25615

16 years agoredo poor example of slices.
Rob Pike [Tue, 3 Mar 2009 04:17:12 +0000 (20:17 -0800)]
redo poor example of slices.

R=rsc
OCL=25614
CL=25614

16 years agoaddress most of the editorial comments through "types"
Rob Pike [Tue, 3 Mar 2009 03:13:40 +0000 (19:13 -0800)]
address most of the editorial comments through "types"

R=rsc
DELTA=41  (9 added, 4 deleted, 28 changed)
OCL=25611
CL=25611

16 years ago- itob
Robert Griesemer [Tue, 3 Mar 2009 01:52:58 +0000 (17:52 -0800)]
- itob
- more test cases

R=rsc
DELTA=97  (52 added, 4 deleted, 41 changed)
OCL=25585
CL=25607

16 years agodelete paragraph about unimplemented select-on-type feature.
Rob Pike [Tue, 3 Mar 2009 01:52:52 +0000 (17:52 -0800)]
delete paragraph about unimplemented select-on-type feature.
change () to {} in all composite literals

DELTA=20  (0 added, 7 deleted, 13 changed)
OCL=25604
CL=25606

16 years agoPackages.
Rob Pike [Tue, 3 Mar 2009 00:17:29 +0000 (16:17 -0800)]
Packages.

DELTA=170  (73 added, 21 deleted, 76 changed)
OCL=25556
CL=25594

16 years agofix names: s/fd/r/
Russ Cox [Tue, 3 Mar 2009 00:12:04 +0000 (16:12 -0800)]
fix names: s/fd/r/

R=r
DELTA=9  (0 added, 0 deleted, 9 changed)
OCL=25593
CL=25593

16 years agomost of the rest.
Rob Pike [Sat, 28 Feb 2009 00:47:48 +0000 (16:47 -0800)]
most of the rest.
only the package section is untouched.

R=gri
DELTA=542  (186 added, 70 deleted, 286 changed)
OCL=25485
CL=25532

16 years agofix a bug: do not print a ';' after a label if there wasn't one
Robert Griesemer [Sat, 28 Feb 2009 00:28:36 +0000 (16:28 -0800)]
fix a bug: do not print a ';' after a label if there wasn't one

R=r
OCL=25526
CL=25528

16 years agoSteps towards a general scanner/parser library for Go:
Robert Griesemer [Fri, 27 Feb 2009 23:40:17 +0000 (15:40 -0800)]
Steps towards a general scanner/parser library for Go:
- converted more of AST and parser to use interfaces and explicit
structs for individual Go constructs (can be replaced now with
interface calls such that the parser becomes AST structure
independent, as suggested by rsc)
- added more tests (find all .go files under GOROOT)
- (temporarily) lost html links for identifiers when generating
html output
- TODO: lots of cleanups

R=r
OCL=25518
CL=25518

16 years agofinish types.
Rob Pike [Fri, 27 Feb 2009 00:37:23 +0000 (16:37 -0800)]
finish types.
expressions.  (they were in pretty good shape; mostly cosmetic and HTML edits)

R=gri
DELTA=655  (226 added, 97 deleted, 332 changed)
OCL=25459
CL=25481

16 years agofixed a typo
Robert Griesemer [Thu, 26 Feb 2009 00:58:57 +0000 (16:58 -0800)]
fixed a typo

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=25449
CL=25449

16 years agobug130 is fixed
Rob Pike [Thu, 26 Feb 2009 00:31:42 +0000 (16:31 -0800)]
bug130 is fixed

R=ken
OCL=25448
CL=25448

16 years agoContinue editing types section.
Rob Pike [Thu, 26 Feb 2009 00:20:44 +0000 (16:20 -0800)]
Continue editing types section.
Do a little work polishing the "zero value" discussion.

R=gri
DELTA=486  (129 added, 120 deleted, 237 changed)
OCL=25392
CL=25444

16 years agocomplete types
Rob Pike [Wed, 25 Feb 2009 01:47:45 +0000 (17:47 -0800)]
complete types

R=gri
DELTA=29  (0 added, 12 deleted, 17 changed)
OCL=25388
CL=25391

16 years agotext and formatting are now folded into go_spec; delete
Rob Pike [Tue, 24 Feb 2009 23:18:21 +0000 (15:18 -0800)]
text and formatting are now folded into go_spec; delete

OCL=25292
CL=25383

16 years agoUpdated the section on Types.
Rob Pike [Tue, 24 Feb 2009 23:17:59 +0000 (15:17 -0800)]
Updated the section on Types.
Moved assignment compatibility to its own small section. Although most rules are type-specific,
some are not and it reduces redundancy to combine them.
Also, more experimentally, wrote a section on comparison compatibility.

R=gri
DELTA=382  (125 added, 122 deleted, 135 changed)
OCL=25355
CL=25382

16 years agobug 130 (go/defer) interface.method()
Ken Thompson [Tue, 24 Feb 2009 06:43:04 +0000 (22:43 -0800)]
bug 130 (go/defer) interface.method()

R=r
OCL=25356
CL=25356

16 years agoMove Types before Declarations and Scopes.
Rob Pike [Tue, 24 Feb 2009 03:26:07 +0000 (19:26 -0800)]
Move Types before Declarations and Scopes.
This is the only change in this CL: only rearrangement, no content change, so subsequent edits will be easier to understand.

R=gri
OCL=25353
CL=25353

16 years agoWork on declarations, unsafe, alignment.
Rob Pike [Tue, 24 Feb 2009 03:22:05 +0000 (19:22 -0800)]
Work on declarations, unsafe, alignment.
Change <tt> to <code>

R=gri
DELTA=664  (222 added, 189 deleted, 253 changed)
OCL=25294
CL=25352

16 years ago- fixed a bug with //-comment parsing
Robert Griesemer [Tue, 24 Feb 2009 01:16:55 +0000 (17:16 -0800)]
- fixed a bug with //-comment parsing

R=r
OCL=25343
CL=25343

16 years agoadd logo to documentation directory.
Rob Pike [Sun, 22 Feb 2009 23:39:50 +0000 (15:39 -0800)]
add logo to documentation directory.

R=rsc
OCL=25293
CL=25293

16 years agobug with select :=
Ken Thompson [Sat, 21 Feb 2009 20:41:34 +0000 (12:41 -0800)]
bug with select :=

R=r
OCL=25278
CL=25278

16 years agodraft of memory model.
Russ Cox [Fri, 20 Feb 2009 23:35:20 +0000 (15:35 -0800)]
draft of memory model.

R=tgs
DELTA=545  (545 added, 0 deleted, 0 changed)
OCL=25212
CL=25268

16 years agoRewrite lexical section.
Rob Pike [Fri, 20 Feb 2009 21:36:14 +0000 (13:36 -0800)]
Rewrite lexical section.
Put grammar productions into a box with a separate background color.

R=gri
DELTA=397  (132 added, 49 deleted, 216 changed)
OCL=25235
CL=25258

16 years agoautogenerate the table of contents
Rob Pike [Fri, 20 Feb 2009 03:49:56 +0000 (19:49 -0800)]
autogenerate the table of contents

R=rsc
DELTA=149  (1 added, 145 deleted, 3 changed)
OCL=25231
CL=25234

16 years agoFix most HTML errors.
Rob Pike [Fri, 20 Feb 2009 01:31:36 +0000 (17:31 -0800)]
Fix most HTML errors.
Cut introduction.
Start rewrite.

R=gri
DELTA=201  (20 added, 118 deleted, 63 changed)
OCL=25226
CL=25229

16 years agogo_spec.txt formatted in html.
Robert Griesemer [Fri, 20 Feb 2009 00:49:10 +0000 (16:49 -0800)]
go_spec.txt formatted in html.
No textual changes except for html formatting.
Seems like a fine intermediate step.

R=r
DELTA=7638  (4079 added, 3559 deleted, 0 changed)
OCL=25211
CL=25224

16 years ago- permit ()'s in types (TODO: update spec)
Robert Griesemer [Fri, 20 Feb 2009 00:47:58 +0000 (16:47 -0800)]
- permit ()'s in types (TODO: update spec)
- accept embedded interfaces in interfaces
- missing: output incorrect, but at least all source code is accepted again

R=r
OCL=25223
CL=25223

16 years agoFinish the lexical section.
Rob Pike [Fri, 20 Feb 2009 00:20:00 +0000 (16:20 -0800)]
Finish the lexical section.

DELTA=176  (172 added, 0 deleted, 4 changed)
OCL=25182
CL=25222

16 years agoFirst piece of Go reference manual.
Rob Pike [Wed, 18 Feb 2009 23:39:51 +0000 (15:39 -0800)]
First piece of Go reference manual.

R=ken,gri,rsc
DELTA=185  (185 added, 0 deleted, 0 changed)
OCL=25133
CL=25169

16 years agoallow parens to disambiguate types.
Russ Cox [Wed, 18 Feb 2009 18:07:46 +0000 (10:07 -0800)]
allow parens to disambiguate types.
examples:

chan <- (chan int)
chan (<- chan int)
(map[string]func())("a": main)

R=ken
OCL=25151
CL=25151

16 years agodrop trailing slashes - missed comment from last review
Rob Pike [Wed, 18 Feb 2009 03:59:23 +0000 (19:59 -0800)]
drop trailing slashes - missed comment from last review

TBR=rsc
OCL=25135
CL=25135

16 years agomore fun with triv.go: flags and arguments
Rob Pike [Wed, 18 Feb 2009 03:35:01 +0000 (19:35 -0800)]
more fun with triv.go: flags and arguments

R=rsc
DELTA=23  (23 added, 0 deleted, 0 changed)
OCL=25088
CL=25134

16 years agofew more Sizeof.
Russ Cox [Tue, 17 Feb 2009 21:40:28 +0000 (13:40 -0800)]
few more Sizeof.

R=r
DELTA=3  (0 added, 1 deleted, 2 changed)
OCL=25106
CL=25106

16 years agofix unsafe.Sizeof("abc")
Ken Thompson [Tue, 17 Feb 2009 21:10:57 +0000 (13:10 -0800)]
fix unsafe.Sizeof("abc")

R=rsc
OCL=25105
CL=25105

16 years agouse proper strconv in string values.
Rob Pike [Tue, 17 Feb 2009 05:55:37 +0000 (21:55 -0800)]
use proper strconv in string values.
make test a little stronger.

R=rsc
DELTA=94  (27 added, 39 deleted, 28 changed)
OCL=25085
CL=25087

16 years agocomment nit
Russ Cox [Tue, 17 Feb 2009 04:44:29 +0000 (20:44 -0800)]
comment nit

R=r
DELTA=2  (0 added, 2 deleted, 0 changed)
OCL=25081
CL=25084

16 years agoallow hex, octal in Atoi, etc.
Russ Cox [Tue, 17 Feb 2009 04:44:21 +0000 (20:44 -0800)]
allow hex, octal in Atoi, etc.

R=r
DELTA=169  (79 added, 23 deleted, 67 changed)
OCL=25079
CL=25083

16 years agoproposed XML parser design.
Russ Cox [Tue, 17 Feb 2009 04:14:21 +0000 (20:14 -0800)]
proposed XML parser design.
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

16 years agomake interface to the flags themselves more public.
Rob Pike [Tue, 17 Feb 2009 03:43:15 +0000 (19:43 -0800)]
make interface to the flags themselves more public.
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

16 years agobug123
Russ Cox [Tue, 17 Feb 2009 01:44:05 +0000 (17:44 -0800)]
bug123

R=ken
OCL=25075
CL=25075

16 years agofix build - missed this file before
Russ Cox [Tue, 17 Feb 2009 01:07:11 +0000 (17:07 -0800)]
fix build  - missed this file before

TBR=r
OCL=25074
CL=25074

16 years agouse embedded interface types
Russ Cox [Tue, 17 Feb 2009 00:37:49 +0000 (16:37 -0800)]
use embedded interface types

R=r
DELTA=205  (1 added, 157 deleted, 47 changed)
OCL=25071
CL=25073

16 years agoembedded interface types in interfaces.
Russ Cox [Tue, 17 Feb 2009 00:36:18 +0000 (16:36 -0800)]
embedded interface types in interfaces.

R=ken
OCL=25072
CL=25072

16 years agoio.Pipe
Russ Cox [Tue, 17 Feb 2009 00:32:30 +0000 (16:32 -0800)]
io.Pipe

assorted underscore cleanup

R=r
DELTA=488  (410 added, 3 deleted, 75 changed)
OCL=25070
CL=25070

16 years agoassorted changes:
Russ Cox [Mon, 16 Feb 2009 06:12:35 +0000 (22:12 -0800)]
assorted changes:
- 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

16 years agochange the URL in the test to avoid a redirection that breaks it in sydney.
Rob Pike [Mon, 16 Feb 2009 03:58:00 +0000 (19:58 -0800)]
change the URL in the test to avoid a redirection that breaks it in sydney.

R=rsc
OCL=25054
CL=25054

16 years agoadd os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.
Russ Cox [Mon, 16 Feb 2009 03:35:52 +0000 (19:35 -0800)]
add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.
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

16 years agoinsert ${GOOS} and ${GOARCH} in
Russ Cox [Mon, 16 Feb 2009 03:20:35 +0000 (19:20 -0800)]
insert ${GOOS} and ${GOARCH} in
command-line comment.

R=r
DELTA=11  (6 added, 0 deleted, 5 changed)
OCL=25051
CL=25051

16 years agocleanups:
Russ Cox [Sun, 15 Feb 2009 22:18:39 +0000 (14:18 -0800)]
cleanups:
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

16 years agobuild nits
Russ Cox [Sun, 15 Feb 2009 21:41:48 +0000 (13:41 -0800)]
build nits

R=r
DELTA=8  (0 added, 6 deleted, 2 changed)
OCL=25045
CL=25045

16 years agobug fix for &x[0] when x is slice
Russ Cox [Sun, 15 Feb 2009 21:15:46 +0000 (13:15 -0800)]
bug fix for &x[0] when x is slice

R=ken
OCL=25044
CL=25044

16 years ago- accept new composite literal syntax
Robert Griesemer [Sat, 14 Feb 2009 00:27:53 +0000 (16:27 -0800)]
- accept new composite literal syntax
- remove all parsing heuristics
- as a result, accept a wider syntax, but parser is simpler

R=r
OCL=25029
CL=25029

16 years ago- added Makefile change again (lost due to to p4 misuse)
Robert Griesemer [Fri, 13 Feb 2009 23:10:35 +0000 (15:10 -0800)]
- added Makefile change again (lost due to to p4 misuse)

R=rsc
OCL=25026
CL=25026

16 years ago- vector package (identical to array except for names)
Robert Griesemer [Fri, 13 Feb 2009 23:07:56 +0000 (15:07 -0800)]
- vector package (identical to array except for names)
- 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

16 years agoconvert composite literals from { } to ( ).
Russ Cox [Fri, 13 Feb 2009 22:48:32 +0000 (14:48 -0800)]
convert composite literals from { } to ( ).

only non-trivial changes are in
convlit1.go
golden.out

R=gri
OCL=25019
CL=25024