]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years ago- completed AST cleanup
Robert Griesemer [Sat, 21 Mar 2009 00:18:48 +0000 (17:18 -0700)]
- completed AST cleanup
- implemented support for type switches

R=r
OCL=26608
CL=26608

16 years agofix wording of &T{x}
Rob Pike [Sat, 21 Mar 2009 00:03:48 +0000 (17:03 -0700)]
fix wording of &T{x}

R=rsc
DELTA=5  (0 added, 2 deleted, 3 changed)
OCL=26607
CL=26607

16 years agoupdate 8a, 8c, 8l to use new object format.
Russ Cox [Fri, 20 Mar 2009 23:40:00 +0000 (16:40 -0700)]
update 8a, 8c, 8l to use new object format.

add "extern register" support to 8c.
extern register means allocate in the FS-relative segment.

make 8l generate segmented stack checks.

R=ken
OCL=26600
CL=26606

16 years agoembarassing bug in allocator:
Russ Cox [Fri, 20 Mar 2009 23:34:13 +0000 (16:34 -0700)]
embarassing bug in allocator:
was applying wrong waste check,
resulting in many more size classes
than necessary.

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=26602
CL=26605

16 years agoTest that interfaces work in type switches.
Ian Lance Taylor [Fri, 20 Mar 2009 23:30:54 +0000 (16:30 -0700)]
Test that interfaces work in type switches.

R=ken,rsc
DELTA=30  (30 added, 0 deleted, 0 changed)
OCL=26599
CL=26604

16 years agomake 8l generate Darwin Mach-O and Linux ELF binaries
Russ Cox [Fri, 20 Mar 2009 21:22:59 +0000 (14:22 -0700)]
make 8l generate Darwin Mach-O and Linux ELF binaries

R=ken
OCL=26584
CL=26589

16 years agodon't need two names for the same function (vputl and llputl).
Russ Cox [Fri, 20 Mar 2009 21:22:46 +0000 (14:22 -0700)]
don't need two names for the same function (vputl and llputl).
also use thechar, to make copy/paste easier.

R=ken
OCL=26583
CL=26588

16 years agomove pragtextflag into lexbody
Russ Cox [Fri, 20 Mar 2009 21:22:37 +0000 (14:22 -0700)]
move pragtextflag into lexbody

R=ken
OCL=26581
CL=26587

16 years agorange over channels.
Russ Cox [Fri, 20 Mar 2009 18:32:58 +0000 (11:32 -0700)]
range over channels.

also fix multiple-evaluation bug in range over arrays.

R=ken
OCL=26576
CL=26576

16 years agoMatch gccgo error messages.
Ian Lance Taylor [Fri, 20 Mar 2009 17:34:46 +0000 (10:34 -0700)]
Match gccgo error messages.

bug090.go:41:6: error: floating point constant truncated to integer
bug090.go:32:6: error: floating point constant truncated to integer
bug090.go:34:14: error: floating point constant truncated to integer
bug090.go:37:5: error: incompatible types in assignment
bug090.go:40:5: error: incompatible types in assignment

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=26564
CL=26574

16 years agoModify error regexps to match gccgo error messages.
Ian Lance Taylor [Fri, 20 Mar 2009 00:33:28 +0000 (17:33 -0700)]
Modify error regexps to match gccgo error messages.

const1.go:23:13: error: integer constant overflow
const1.go:25:13: error: integer constant overflow
const1.go:26:14: error: integer constant overflow
const1.go:27:18: error: integer constant overflow
const1.go:28:19: error: integer constant overflow
const1.go:29:16: error: integer constant overflow
const1.go:29:25: error: integer constant overflow
const1.go:30:13: error: integer constant overflow
const1.go:33:14: error: integer constant overflow
const1.go:34:14: error: integer constant overflow
const1.go:36:22: error: integer constant overflow
const1.go:37:7: error: integer constant overflow
const1.go:38:8: error: integer constant overflow
const1.go:39:7: error: integer constant overflow
const1.go:40:7: error: integer constant overflow
const1.go:41:8: error: integer constant overflow
const1.go:44:23: error: integer constant overflow
const1.go:46:13: error: integer constant overflow
const1.go:47:24: error: integer constant overflow
const1.go:48:24: error: integer constant overflow
const1.go:49:22: error: integer constant overflow
const1.go:51:23: error: integer constant overflow
const1.go:52:19: error: division by zero
const1.go:58:11: error: division by zero
const1.go:43:17: error: integer constant overflow
const1.go:45:13: error: integer constant overflow
const1.go:55:19: error: floating point overflow
const1.go:56:28: error: floating point overflow
const1.go:57:11: error: floating point overflow
const1.go:64:2: error: argument 0 has wrong type
const1.go:65:2: error: argument 0 has wrong type
const1.go:66:2: error: argument 0 has wrong type
const1.go:68:2: error: argument 0 has wrong type
const1.go:69:2: error: argument 0 has wrong type
const1.go:70:4: error: floating point constant truncated to integer
const1.go:72:2: error: argument 0 has wrong type
const1.go:73:2: error: argument 0 has wrong type
const1.go:74:2: error: argument 0 has wrong type

R=rsc
DELTA=34  (0 added, 0 deleted, 34 changed)
OCL=26560
CL=26560

16 years agominor adjustments to switches text
Robert Griesemer [Thu, 19 Mar 2009 15:39:40 +0000 (08:39 -0700)]
minor adjustments to switches text

R=r
DELTA=16  (5 added, 1 deleted, 10 changed)
OCL=26530
CL=26543

16 years ago&Foo{x,y} wasn't in the spec. This gets it in, dependent on a proper section regarding
Rob Pike [Thu, 19 Mar 2009 05:58:36 +0000 (22:58 -0700)]
&Foo{x,y} wasn't in the spec.  This gets it in, dependent on a proper section regarding
address operators, to follow.

R=rsc
DELTA=11  (10 added, 0 deleted, 1 changed)
OCL=26529
CL=26532

16 years agodrop the ,ok switch; keep the straight type switch.
Rob Pike [Thu, 19 Mar 2009 02:23:59 +0000 (19:23 -0700)]
drop the ,ok switch; keep the straight type switch.

R=rsc,gri
DELTA=97  (26 added, 42 deleted, 29 changed)
OCL=26436
CL=26527

16 years agofix b/1722502
Russ Cox [Thu, 19 Mar 2009 02:20:54 +0000 (19:20 -0700)]
fix b/1722502

BUG=1722502
R=ken
OCL=26526
CL=26526

16 years agoMake adler32 cleaner.
Tom Szymanski [Wed, 18 Mar 2009 21:57:55 +0000 (14:57 -0700)]
Make adler32 cleaner.

R=rsc
APPROVED=rsc
DELTA=22  (9 added, 6 deleted, 7 changed)
OCL=26498
CL=26500

16 years agoremove print() from the tutorial, generating a little clumsiness around "import"
Rob Pike [Wed, 18 Mar 2009 21:09:16 +0000 (14:09 -0700)]
remove print() from the tutorial, generating a little clumsiness around "import"

R=rsc,gri
DELTA=103  (36 added, 33 deleted, 34 changed)
OCL=26442
CL=26491

16 years agosimplify test to eliminate now-deprecated forms of switch.
Rob Pike [Wed, 18 Mar 2009 21:05:05 +0000 (14:05 -0700)]
simplify test to eliminate now-deprecated forms of switch.

R=rsc
DELTA=76  (0 added, 63 deleted, 13 changed)
OCL=26439
CL=26490

16 years agoremove assignment cases from switch
Ken Thompson [Wed, 18 Mar 2009 19:13:42 +0000 (12:13 -0700)]
remove assignment cases from switch

R=r
OCL=26480
CL=26480

16 years agoadd value checks to the other switch - should have done this in prior round
Rob Pike [Wed, 18 Mar 2009 03:57:54 +0000 (20:57 -0700)]
add value checks to the other switch - should have done this in prior round

R=rsc
OCL=26438
CL=26438

16 years agoadd test for type switches
Rob Pike [Wed, 18 Mar 2009 03:55:42 +0000 (20:55 -0700)]
add test for type switches

R=rsc
DELTA=169  (169 added, 0 deleted, 0 changed)
OCL=26433
CL=26437

16 years agoswitch on false error
Ken Thompson [Wed, 18 Mar 2009 02:10:32 +0000 (19:10 -0700)]
switch on false error

R=r
OCL=26434
CL=26434

16 years agodaily snapshot:
Robert Griesemer [Wed, 18 Mar 2009 01:41:35 +0000 (18:41 -0700)]
daily snapshot:
- first part of AST cleaned up and documented
- tons of related cleanups and adjustments

R=r
OCL=26430
CL=26430

16 years agotype switches
Rob Pike [Tue, 17 Mar 2009 23:48:35 +0000 (16:48 -0700)]
type switches

R=rsc,gri
DELTA=107  (90 added, 1 deleted, 16 changed)
OCL=26420
CL=26427

16 years agobinary search on type switches.
Ken Thompson [Tue, 17 Mar 2009 20:58:38 +0000 (13:58 -0700)]
binary search on type switches.
new feature 'case nil:' in type switch
will match iff the interface is nil.

R=r
OCL=26404
CL=26404

16 years agochange the tutorial to use File, file rather than FD, fd.
Rob Pike [Tue, 17 Mar 2009 05:53:23 +0000 (22:53 -0700)]
change the tutorial to use File, file rather than FD, fd.
also make the default input for makehtml be go_tutorial.txt.

R=rsc
DELTA=176  (58 added, 58 deleted, 60 changed)
OCL=26374
CL=26374

16 years agoRecognize gccgo error message.
Ian Lance Taylor [Tue, 17 Mar 2009 04:48:07 +0000 (21:48 -0700)]
Recognize gccgo error message.

const2.go:7:9: error: expected '='

Uses '.' to recognize the quotation marks, as the actual
characters printed depend on the user's locale.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=26360
CL=26373

16 years agoDon't try to define the same label twice, as that produces a
Ian Lance Taylor [Tue, 17 Mar 2009 04:47:38 +0000 (21:47 -0700)]
Don't try to define the same label twice, as that produces a
label redefinition error.

R=gri
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=26357
CL=26372

16 years agodaily snapshot:
Robert Griesemer [Tue, 17 Mar 2009 03:29:31 +0000 (20:29 -0700)]
daily snapshot:
- use explicit expression lists instead of binary trees to represent lists of the form a, b, c
(per discussion w/ Russ)
- use explicit nodes for various language constructs for better readability
- various adjustments in parsing and printing

next steps:
- clean up AST fully so it can be checked in as library

R=r
OCL=26371
CL=26371

16 years agoinstead of unlabeled statements, have a single labeled statement
Robert Griesemer [Tue, 17 Mar 2009 00:36:52 +0000 (17:36 -0700)]
instead of unlabeled statements, have a single labeled statement
- no syntactic or semantic change

R=r
DELTA=45  (24 added, 18 deleted, 3 changed)
OCL=26349
CL=26368

16 years agochange format of Sigt and Sigi
Ken Thompson [Mon, 16 Mar 2009 22:27:08 +0000 (15:27 -0700)]
change format of Sigt and Sigi
to allow room for type hash
needed for log-time type switch.

R=r
OCL=26354
CL=26354

16 years agoadded &^ and &^=
Robert Griesemer [Mon, 16 Mar 2009 21:20:08 +0000 (14:20 -0700)]
added &^ and &^=

R=rsc
DELTA=14  (12 added, 0 deleted, 2 changed)
OCL=26278
CL=26348

16 years agospec and implementation disagree with respect to label declarations
Robert Griesemer [Mon, 16 Mar 2009 18:21:58 +0000 (11:21 -0700)]
spec and implementation disagree with respect to label declarations

R=rsc
DELTA=19  (19 added, 0 deleted, 0 changed)
OCL=26284
CL=26336

16 years agodaily snapshot:
Robert Griesemer [Fri, 13 Mar 2009 23:59:51 +0000 (16:59 -0700)]
daily snapshot:
- various parser fixes to match updated spec (&&, &^=, label decls, const decls)
- using html template for directory and error page in doc server
- show compile errors inplace in the source
- cleanups

R=rsc
OCL=26287
CL=26287

16 years agoclose/closed on chans
Ken Thompson [Fri, 13 Mar 2009 23:47:54 +0000 (16:47 -0700)]
close/closed on chans

R=r
OCL=26281
CL=26285

16 years ago5a 5c 5l from inferno distribution
Kai Backman [Fri, 13 Mar 2009 22:03:07 +0000 (15:03 -0700)]
5a 5c 5l from inferno distribution

R=rsc
APPROVED=rsc
DELTA=19042  (19042 added, 0 deleted, 0 changed)
OCL=26268
CL=26270

16 years agointernal compiler error
Robert Griesemer [Fri, 13 Mar 2009 21:14:50 +0000 (14:14 -0700)]
internal compiler error

R=rsc
DELTA=18  (18 added, 0 deleted, 0 changed)
OCL=26266
CL=26266

16 years agowarn -> yyerror in mparith.
Russ Cox [Fri, 13 Mar 2009 02:57:30 +0000 (19:57 -0700)]
warn -> yyerror in mparith.
close two more bugs.

R=ken
OCL=26226
CL=26226

16 years agomem.html: nit
Russ Cox [Fri, 13 Mar 2009 02:04:56 +0000 (19:04 -0700)]
mem.html: nit
go_spec.html: document const type propagation

R=ken
OCL=26223
CL=26225

16 years agomake 6g constants behave as ken proposes. (i hope.)
Russ Cox [Fri, 13 Mar 2009 02:04:38 +0000 (19:04 -0700)]
make 6g constants behave as ken proposes.  (i hope.)
various bug fixes and tests involving constants.

test/const1.go is the major new test case.

R=ken
OCL=26216
CL=26224

16 years agos/expressios/expressions/
Rob Pike [Fri, 13 Mar 2009 01:47:49 +0000 (18:47 -0700)]
s/expressios/expressions/

OCL=26222
CL=26222

16 years agoweasel words about types in shift expressions suggested by rsc
Rob Pike [Fri, 13 Mar 2009 01:40:07 +0000 (18:40 -0700)]
weasel words about types in shift expressions suggested by rsc

R=rsc
OCL=26220
CL=26220

16 years agochan flags close/closed installed
Ken Thompson [Fri, 13 Mar 2009 00:55:11 +0000 (17:55 -0700)]
chan flags close/closed installed
runtime not finished.

R=r
OCL=26217
CL=26217

16 years agodaily snapshot:
Robert Griesemer [Fri, 13 Mar 2009 00:24:03 +0000 (17:24 -0700)]
daily snapshot:
- correctly associate comments with declarations
  (available through AST)
- very raw printing of interface
- much more functionality, now needs some formatting, sorting, etc.

R=r
OCL=26213
CL=26213

16 years agofix language regarding type of numeric literals
Rob Pike [Fri, 13 Mar 2009 00:08:47 +0000 (17:08 -0700)]
fix language regarding type of numeric literals

R=rsc
DELTA=4  (0 added, 2 deleted, 2 changed)
OCL=26208
CL=26212

16 years agowhat is the name for "&^". let's go with bit clear (and not)
Rob Pike [Thu, 12 Mar 2009 22:53:56 +0000 (15:53 -0700)]
what is the name for "&^". let's go with bit clear (and not)

R=rsc
DELTA=14  (0 added, 0 deleted, 14 changed)
OCL=26159
CL=26206

16 years ago- remove special handling of '\n' characters (used to be treated as comments
Robert Griesemer [Thu, 12 Mar 2009 18:04:11 +0000 (11:04 -0700)]
- remove special handling of '\n' characters (used to be treated as comments
for pretty printer purposes - now properly ignored as white space since we
have line/col information)
- changed sample use in comment to an actually compiled function to make sure
sample is actually working
- added extra tests (checking line and column values, and the tokenize function)

R=rsc
DELTA=253  (61 added, 67 deleted, 125 changed)
OCL=26143
CL=26181

16 years agofix unqouted &
Rob Pike [Thu, 12 Mar 2009 05:02:18 +0000 (22:02 -0700)]
fix unqouted &

R=gri
OCL=26158
CL=26158

16 years agobit clear: &^ and &^=
Rob Pike [Thu, 12 Mar 2009 04:59:05 +0000 (21:59 -0700)]
bit clear: &^ and &^=

R=gri
DELTA=5  (3 added, 0 deleted, 2 changed)
OCL=26155
CL=26157

16 years agoadded bitclear operators &^ and &^=
Ken Thompson [Thu, 12 Mar 2009 02:59:35 +0000 (19:59 -0700)]
added bitclear operators &^ and &^=

R=r
OCL=26152
CL=26152

16 years agobug 125
Ken Thompson [Thu, 12 Mar 2009 00:37:04 +0000 (17:37 -0700)]
bug 125

R=r
OCL=26146
CL=26146

16 years agobug 137
Ken Thompson [Wed, 11 Mar 2009 23:25:45 +0000 (16:25 -0700)]
bug 137

R=r
OCL=26142
CL=26142

16 years agocomplain when trying to put T into an interface
Russ Cox [Wed, 11 Mar 2009 23:06:17 +0000 (16:06 -0700)]
complain when trying to put T into an interface
if T has pointer methods.  this is just a heuristic
but it catches the problem robert ran into and
lets me put the larger interface issues aside for
now.  found one bug in pretty.

R=ken
OCL=26141
CL=26141

16 years ago- update pretty sources to match new scanner interface
Robert Griesemer [Wed, 11 Mar 2009 19:52:11 +0000 (12:52 -0700)]
- update pretty sources to match new scanner interface

R=r
OCL=26129
CL=26131

16 years agoRename os.FD to os.File.
Russ Cox [Wed, 11 Mar 2009 19:51:10 +0000 (12:51 -0700)]
Rename os.FD to os.File.

Make Fstat, Readdirnames, and Readdir methods
on os.File.

R=r
DELTA=281  (79 added, 3 deleted, 199 changed)
OCL=25891
CL=26130

16 years agodocument json
Russ Cox [Wed, 11 Mar 2009 19:50:58 +0000 (12:50 -0700)]
document json

R=r
DELTA=115  (102 added, 0 deleted, 13 changed)
OCL=25953
CL=26128

16 years ago- scanner to track line/col number instead of byte position only
Robert Griesemer [Wed, 11 Mar 2009 19:48:45 +0000 (12:48 -0700)]
- scanner to track line/col number instead of byte position only
- fixed a parameter name in tabwriter

R=rsc
DELTA=110  (21 added, 17 deleted, 72 changed)
OCL=26123
CL=26127

16 years agodocument http
Russ Cox [Wed, 11 Mar 2009 19:45:53 +0000 (12:45 -0700)]
document http

R=r
DELTA=84  (63 added, 4 deleted, 17 changed)
OCL=25950
CL=26126

16 years agofix old-style print call in constant
Rob Pike [Wed, 11 Mar 2009 03:47:42 +0000 (20:47 -0700)]
fix old-style print call in constant

R=rsc
OCL=26093
CL=26093

16 years agoAdd support for a -I option. -I DIR searches for packages in
Ian Lance Taylor [Wed, 11 Mar 2009 03:03:31 +0000 (20:03 -0700)]
Add support for a -I option.  -I DIR searches for packages in
DIR.

R=ken,rsc
DELTA=49  (41 added, 2 deleted, 6 changed)
OCL=26057
CL=26092

16 years agobug086
Ken Thompson [Wed, 11 Mar 2009 02:16:31 +0000 (19:16 -0700)]
bug086

R=r
OCL=26090
CL=26090

16 years agosnapshot of today
Robert Griesemer [Wed, 11 Mar 2009 01:20:08 +0000 (18:20 -0700)]
snapshot of today
(little progress with interface printing, but now shows a
list of exported function names)

R=r
OCL=26082
CL=26082

16 years ago- fixing (internal) capitalization
Robert Griesemer [Wed, 11 Mar 2009 01:09:13 +0000 (18:09 -0700)]
- fixing (internal) capitalization

R=rsc
DELTA=7  (0 added, 0 deleted, 7 changed)
OCL=26080
CL=26080

16 years ago- allow unicode digits in identifiers
Robert Griesemer [Wed, 11 Mar 2009 00:08:05 +0000 (17:08 -0700)]
- allow unicode digits in identifiers
- fixed a bug with character escapes (before: allowed arbitrary long sequences)

R=r
DELTA=63  (33 added, 19 deleted, 11 changed)
OCL=26010
CL=26070

16 years agobug with interaction of variables
Ken Thompson [Tue, 10 Mar 2009 23:49:34 +0000 (16:49 -0700)]
bug with interaction of variables
declared in cases and heap allocation

R=r
OCL=26064
CL=26064

16 years agoconstant conversion of int (non-ideal) constant doesn't work
Robert Griesemer [Tue, 10 Mar 2009 23:39:23 +0000 (16:39 -0700)]
constant conversion of int (non-ideal) constant doesn't work

R=rsc
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=26054
CL=26062

16 years ago- adjustments due to changed tabwriter interface
Robert Griesemer [Tue, 10 Mar 2009 23:31:19 +0000 (16:31 -0700)]
- adjustments due to changed tabwriter interface
- more comments in parser

R=r
OCL=26060
CL=26060

16 years agoadd unicode data for decimal digit, preparatory to allowing them in identifiers.
Rob Pike [Tue, 10 Mar 2009 23:30:27 +0000 (16:30 -0700)]
add unicode data for decimal digit, preparatory to allowing them in identifiers.

R=rsc
DELTA=431  (430 added, 0 deleted, 1 changed)
OCL=25975
CL=26059

16 years ago- incorporate suggestions from previous code review
Robert Griesemer [Tue, 10 Mar 2009 23:30:26 +0000 (16:30 -0700)]
- incorporate suggestions from previous code review

R=rsc
DELTA=64  (18 added, 3 deleted, 43 changed)
OCL=26046
CL=26058

16 years agotabwriter documentation
Robert Griesemer [Tue, 10 Mar 2009 21:55:04 +0000 (14:55 -0700)]
tabwriter documentation

R=rsc
DELTA=62  (31 added, 5 deleted, 26 changed)
OCL=26022
CL=26040

16 years agoconversions are mostly cleaned up; bring the spec in line.
Rob Pike [Tue, 10 Mar 2009 05:35:06 +0000 (22:35 -0700)]
conversions are mostly cleaned up; bring the spec in line.

R=gri
DELTA=31  (12 added, 18 deleted, 1 changed)
OCL=25974
CL=25976

16 years ago- more documentation adjustments
Robert Griesemer [Tue, 10 Mar 2009 01:53:11 +0000 (18:53 -0700)]
- more documentation adjustments

R=rsc
DELTA=6  (0 added, 1 deleted, 5 changed)
OCL=25970
CL=25973

16 years agodelete float80 from libraries
Rob Pike [Tue, 10 Mar 2009 01:00:41 +0000 (18:00 -0700)]
delete float80 from libraries

R=rsc
DELTA=40  (0 added, 38 deleted, 2 changed)
OCL=25969
CL=25969

16 years agodocument reflect.
Rob Pike [Tue, 10 Mar 2009 00:47:15 +0000 (17:47 -0700)]
document reflect.

R=rsc
DELTA=201  (90 added, 0 deleted, 111 changed)
OCL=25904
CL=25966

16 years agoFixing comment.
Robert Griesemer [Tue, 10 Mar 2009 00:30:38 +0000 (17:30 -0700)]
Fixing comment.

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=25956
CL=25960

16 years agoscanner.go documentation
Robert Griesemer [Tue, 10 Mar 2009 00:16:42 +0000 (17:16 -0700)]
scanner.go documentation

R=r
DELTA=22  (8 added, 3 deleted, 11 changed)
OCL=25947
CL=25955

16 years agotoken.go documentation
Robert Griesemer [Tue, 10 Mar 2009 00:13:15 +0000 (17:13 -0700)]
token.go documentation

R=r
DELTA=34  (24 added, 2 deleted, 8 changed)
OCL=25946
CL=25954

16 years ago- directory rename lang -> go
Robert Griesemer [Mon, 9 Mar 2009 19:41:53 +0000 (12:41 -0700)]
- directory rename lang -> go

R=rsc
DELTA=2070  (1035 added, 1035 deleted, 0 changed)
OCL=25939
CL=25939

16 years agobinary search for constant case statements.
Ken Thompson [Sun, 8 Mar 2009 01:33:42 +0000 (17:33 -0800)]
binary search for constant case statements.

R=r
OCL=25890
CL=25890

16 years agodocument bufio
Rob Pike [Sun, 8 Mar 2009 00:57:01 +0000 (16:57 -0800)]
document bufio

R=rsc
DELTA=61  (27 added, 2 deleted, 32 changed)
OCL=25877
CL=25889

16 years agodocument os
Rob Pike [Sun, 8 Mar 2009 00:56:44 +0000 (16:56 -0800)]
document os

R=rsc
DELTA=143  (96 added, 0 deleted, 47 changed)
OCL=25876
CL=25888

16 years agodocument hash
Rob Pike [Sun, 8 Mar 2009 00:56:21 +0000 (16:56 -0800)]
document hash

R=rsc
DELTA=50  (33 added, 4 deleted, 13 changed)
OCL=25878
CL=25887

16 years agodocument time
Rob Pike [Sun, 8 Mar 2009 00:56:05 +0000 (16:56 -0800)]
document time

R=rsc
DELTA=42  (23 added, 1 deleted, 18 changed)
OCL=25881
CL=25886

16 years agodocument Conn interface better, in preparation
Russ Cox [Sat, 7 Mar 2009 01:51:31 +0000 (17:51 -0800)]
document Conn interface better, in preparation
for per-method interface documentation
by mkdoc.pl.

implement timeouts on network reads
and use them in dns client.

also added locks on i/o to ensure writes
are not interlaced.

R=r
DELTA=340  (272 added, 25 deleted, 43 changed)
OCL=25799
CL=25874

16 years ago1. type switches
Ken Thompson [Sat, 7 Mar 2009 01:50:43 +0000 (17:50 -0800)]
1. type switches
2. fixed fault on bug128
3. got rid of typeof
4. fixed bug in t,ok = I2T

R=r
OCL=25873
CL=25873

16 years agodocument sort
Rob Pike [Sat, 7 Mar 2009 01:29:25 +0000 (17:29 -0800)]
document sort

R=rsc
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=25869
CL=25872

16 years agodocument syscall. all we do is redirect elsewhere.
Rob Pike [Sat, 7 Mar 2009 01:20:53 +0000 (17:20 -0800)]
document syscall.  all we do is redirect elsewhere.

R=rsc
DELTA=7  (7 added, 0 deleted, 0 changed)
OCL=25859
CL=25871

16 years agoweekend snapshot
Robert Griesemer [Sat, 7 Mar 2009 00:54:26 +0000 (16:54 -0800)]
weekend snapshot
- fixed a minor bug
- some initial code to extract interface of a package

R=r
OCL=25866
CL=25866

16 years ago- wrote simple template substitution package
Robert Griesemer [Sat, 7 Mar 2009 00:11:40 +0000 (16:11 -0800)]
- wrote simple template substitution package
- use template in pretty printing now instead of hand-coded mechanism

R=r
OCL=25863
CL=25863

16 years agodelete vestigial references to package syscall
Rob Pike [Sat, 7 Mar 2009 00:03:59 +0000 (16:03 -0800)]
delete vestigial references to package syscall

R=rsc
DELTA=8  (0 added, 5 deleted, 3 changed)
OCL=25857
CL=25861

16 years agodocument io
Rob Pike [Fri, 6 Mar 2009 11:43:44 +0000 (03:43 -0800)]
document io

R=rsc
DELTA=44  (30 added, 4 deleted, 10 changed)
OCL=25819
CL=25835

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