]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years ago- first (global) idents with proper links to declarations in html output
Robert Griesemer [Thu, 8 Jan 2009 22:43:56 +0000 (14:43 -0800)]
- first (global) idents with proper links to declarations in html output
(e.g. pretty -html source.go > source.html; then look at the html.file in a browser)

R=r
OCL=22331
CL=22331

16 years agotypo
Russ Cox [Thu, 8 Jan 2009 22:31:11 +0000 (14:31 -0800)]
typo

R=ken
OCL=22327
CL=22327

16 years agomany interface bug fixes.
Russ Cox [Thu, 8 Jan 2009 22:30:00 +0000 (14:30 -0800)]
many interface bug fixes.

also, after
func g() (int, int)
func f(int, int)
allow
f(g())
and
func h() (int, int) { return g() }

R=ken
DELTA=356  (252 added, 26 deleted, 78 changed)
OCL=22319
CL=22325

16 years ago- fixed a bug with building right-recursive trees iteratively
Robert Griesemer [Thu, 8 Jan 2009 20:04:00 +0000 (12:04 -0800)]
- fixed a bug with building right-recursive trees iteratively
- moving scope handling into parser (simpler)
- snapshot of work today so far

R=r
OCL=22301
CL=22301

16 years agoRemove duplicate typedef declarations.
Ian Lance Taylor [Thu, 8 Jan 2009 17:45:42 +0000 (09:45 -0800)]
Remove duplicate typedef declarations.

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

16 years ago- more steps towards tracking idents in scopes
Robert Griesemer [Thu, 8 Jan 2009 00:54:03 +0000 (16:54 -0800)]
- more steps towards tracking idents in scopes
- snapshot of today

R=r
OCL=22247
CL=22247

16 years agoCache *os.Error values across all users.
Rob Pike [Thu, 8 Jan 2009 00:37:43 +0000 (16:37 -0800)]
Cache *os.Error values across all users.

R=rsc
DELTA=27  (23 added, 0 deleted, 4 changed)
OCL=22245
CL=22245

16 years agomore
Ken Thompson [Wed, 7 Jan 2009 23:54:08 +0000 (15:54 -0800)]
more

R=r
OCL=22240
CL=22240

16 years agoconversion from closed array to slice
Ken Thompson [Wed, 7 Jan 2009 23:26:11 +0000 (15:26 -0800)]
conversion from closed array to slice

R=r
OCL=22236
CL=22236

16 years ago- enabling tracking of declarations
Robert Griesemer [Wed, 7 Jan 2009 21:58:56 +0000 (13:58 -0800)]
- enabling tracking of declarations
- removed dead code
- snapshot before making a lareger structural change

R=r
OCL=22226
CL=22226

16 years agocorrect signature generation decision
Russ Cox [Wed, 7 Jan 2009 21:29:03 +0000 (13:29 -0800)]
correct signature generation decision
for non-pointer types with methods.

R=r
DELTA=37  (13 added, 14 deleted, 10 changed)
OCL=22217
CL=22219

16 years ago[...] bug
Ken Thompson [Wed, 7 Jan 2009 21:20:10 +0000 (13:20 -0800)]
[...] bug

R=r
OCL=22218
CL=22218

16 years agoiscomposite test in OCONV is unnecessary
Russ Cox [Wed, 7 Jan 2009 20:39:48 +0000 (12:39 -0800)]
iscomposite test in OCONV is unnecessary
now that OCOMP exists

R=ken
OCL=22216
CL=22216

16 years agoclear automatic arrays created with literals
Ken Thompson [Wed, 7 Jan 2009 20:28:23 +0000 (12:28 -0800)]
clear automatic arrays created with literals

R=r
OCL=22215
CL=22215

16 years agouncomment a BUG that is now fixed
Rob Pike [Wed, 7 Jan 2009 18:35:43 +0000 (10:35 -0800)]
uncomment a BUG that is now fixed

R=rsc
DELTA=3  (1 added, 0 deleted, 2 changed)
OCL=22195
CL=22207

16 years agoAdjusted language for literals:
Robert Griesemer [Wed, 7 Jan 2009 17:31:35 +0000 (09:31 -0800)]
Adjusted language for literals:
- now have struct, array, slice, and map literals

DELTA=34  (13 added, 6 deleted, 15 changed)
OCL=22180
CL=22204

16 years ago18 tests are behaving incorrectly
Rob Pike [Wed, 7 Jan 2009 04:17:58 +0000 (20:17 -0800)]
18 tests are behaving incorrectly
no more surprises - all caught up

R=rsc
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=22194
CL=22194

16 years agofixed and added more tests
Ken Thompson [Wed, 7 Jan 2009 01:44:59 +0000 (17:44 -0800)]
fixed and added more tests

R=r
OCL=22187
CL=22187

16 years ago- support for [...] parsing and pretty printing
Robert Griesemer [Wed, 7 Jan 2009 01:39:25 +0000 (17:39 -0800)]
- support for [...] parsing and pretty printing

R=r
OCL=22185
CL=22185

16 years agoclosed arrays including [...]
Ken Thompson [Wed, 7 Jan 2009 01:31:24 +0000 (17:31 -0800)]
closed arrays including [...]

R=r
OCL=22182
CL=22182

16 years ago- make code in gosrc compile again, check in all pending changes
Robert Griesemer [Wed, 7 Jan 2009 00:26:45 +0000 (16:26 -0800)]
- make code in gosrc compile again, check in all pending changes
  (this code doesn't match the existing language at this point,
  but it's a large code base which compiles - will eventually go
  away)
- enable compilation of it again in run.bash

R=r
DELTA=1147  (534 added, 311 deleted, 302 changed)
OCL=22176
CL=22176

16 years agomake the tutorial programs run again.
Rob Pike [Tue, 6 Jan 2009 23:49:27 +0000 (15:49 -0800)]
make the tutorial programs run again.
(the text still needs fixing)
add the tutorial programs to the test run.

R=rsc
DELTA=41  (6 added, 0 deleted, 35 changed)
OCL=22174
CL=22174

16 years agofix newfn
Russ Cox [Tue, 6 Jan 2009 23:39:28 +0000 (15:39 -0800)]
fix newfn

R=ken
OCL=22173
CL=22173

16 years ago- fix parse heuristic: make(x) must accept a type for x
Robert Griesemer [Tue, 6 Jan 2009 23:30:26 +0000 (15:30 -0800)]
- fix parse heuristic: make(x) must accept a type for x

R=r
OCL=22171
CL=22171

16 years agoupdate utf8_test.go
Rob Pike [Tue, 6 Jan 2009 23:30:07 +0000 (15:30 -0800)]
update utf8_test.go

R=rsc
OCL=22170
CL=22170

16 years agonew new &Point{1,2}
Russ Cox [Tue, 6 Jan 2009 23:24:12 +0000 (15:24 -0800)]
new new &Point{1,2}

R=ken
OCL=22168
CL=22168

16 years agonew new & make
Russ Cox [Tue, 6 Jan 2009 23:19:02 +0000 (15:19 -0800)]
new new & make

R=r
OCL=22166
CL=22166

16 years ago- adjusted pretty to use old new, make
Robert Griesemer [Tue, 6 Jan 2009 23:01:04 +0000 (15:01 -0800)]
- adjusted pretty to use old new, make

R=r
OCL=22160
CL=22160

16 years ago- steps towards augmenting ast with declaration info
Robert Griesemer [Tue, 6 Jan 2009 22:54:18 +0000 (14:54 -0800)]
- steps towards augmenting ast with declaration info
  (will help produce html output where we can click on identifiers and
  get to the declaration)
- snapshot before changing back to old new

R=r
OCL=22159
CL=22159

16 years agomake for slice/map/chan
Ken Thompson [Tue, 6 Jan 2009 22:52:26 +0000 (14:52 -0800)]
make for slice/map/chan
new for pointers

R=r
OCL=22158
CL=22158

16 years agoA richer interface for regexps. Simple boolean matcher, a vector of strings rather...
Rob Pike [Tue, 6 Jan 2009 21:54:53 +0000 (13:54 -0800)]
A richer interface for regexps.  Simple boolean matcher, a vector of strings rather than
indexes, and a global boolean function for quick action.

R=rsc
DELTA=152  (127 added, 12 deleted, 13 changed)
OCL=22140
CL=22142

16 years agobug020 is fixed
Rob Pike [Tue, 6 Jan 2009 21:44:44 +0000 (13:44 -0800)]
bug020 is fixed

R=rsc
DELTA=40  (18 added, 22 deleted, 0 changed)
OCL=22134
CL=22139

16 years ago- documenting old "new()"
Robert Griesemer [Tue, 6 Jan 2009 21:23:20 +0000 (13:23 -0800)]
- documenting old "new()"
- adding "init()"
- fixing some bugs with slice documentation

DELTA=118  (45 added, 7 deleted, 66 changed)
OCL=22084
CL=22136

16 years agomake 8a, 8c, 8l build in go environment.
Russ Cox [Tue, 6 Jan 2009 19:34:02 +0000 (11:34 -0800)]
make 8a, 8c, 8l build in go environment.
,s/int32/long/g in 8a, 8c, 8l.
delete dead code.
move enam.c, 8.out.h, mkenam from 8c to 8l.

R=r
DELTA=1850  (581 added, 983 deleted, 286 changed)
OCL=22119
CL=22129

16 years agocomment sudoaddable;
Russ Cox [Tue, 6 Jan 2009 19:23:58 +0000 (11:23 -0800)]
comment sudoaddable;
remove unused second parameter.

R=ken
OCL=22126
CL=22126

16 years agodelete blyacc
Russ Cox [Tue, 6 Jan 2009 17:53:38 +0000 (09:53 -0800)]
delete blyacc

R=r
DELTA=3562  (0 added, 3560 deleted, 2 changed)
OCL=22112
CL=22114

16 years agomake acid build with bison.
Russ Cox [Tue, 6 Jan 2009 17:53:30 +0000 (09:53 -0800)]
make acid build with bison.
ask for bison explicitly in cc, gc to try to
avoid problems with other yaccs that
might be installed.

R=r
DELTA=29  (10 added, 2 deleted, 17 changed)
OCL=22110
CL=22113

16 years ago8a, 8c, and 8l from inferno distribution
Russ Cox [Tue, 6 Jan 2009 17:41:38 +0000 (09:41 -0800)]
8a, 8c, and 8l from inferno distribution

R=r
DELTA=19539  (19539 added, 0 deleted, 0 changed)
OCL=22109
CL=22109

16 years agoadd comments and delete dead code
Russ Cox [Tue, 6 Jan 2009 01:32:23 +0000 (17:32 -0800)]
add comments and delete dead code

R=ken
OCL=22078
CL=22080

16 years agoclean up some tests
Rob Pike [Mon, 5 Jan 2009 21:09:34 +0000 (13:09 -0800)]
clean up some tests

R=rsc
DELTA=10  (1 added, 2 deleted, 7 changed)
OCL=22033
CL=22033

16 years agochange time.Tick test to use 100ms intervals.
Russ Cox [Mon, 5 Jan 2009 19:18:20 +0000 (11:18 -0800)]
change time.Tick test to use 100ms intervals.
now passes even under loaded conditions on r45.

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=22019
CL=22022

16 years agofix 6a line number bug -
Russ Cox [Mon, 5 Jan 2009 19:18:15 +0000 (11:18 -0800)]
fix 6a line number bug -
was incrementing lineno twice for
the \n after a // comment.

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

16 years agoA first attempt to capture the type changes.
Robert Griesemer [Mon, 5 Jan 2009 19:17:26 +0000 (11:17 -0800)]
A first attempt to capture the type changes.

Instead of trying to make open arrays look like arrays (which they aren't,
they just look like them), I decided to call them "slice types". As a result
they have value semantics, and one can really talk about what they really are.

Note:
- There are lots of missing details
- There are probably lots of mistakes

Looking for some initial feedback.

R=r
DELTA=444  (180 added, 189 deleted, 75 changed)
OCL=21769
CL=22020

16 years agoTest for a go statement which calls a method on an interface.
Ian Lance Taylor [Tue, 30 Dec 2008 23:03:46 +0000 (15:03 -0800)]
Test for a go statement which calls a method on an interface.

R=ken
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=21889
CL=21929

16 years agoone bignum test fails
Ken Thompson [Tue, 30 Dec 2008 22:03:54 +0000 (14:03 -0800)]
one bignum test fails
has to do with printing
patched it out

R=r
OCL=21921
CL=21923

16 years agoallow slices (open arrays) to be
Ken Thompson [Tue, 30 Dec 2008 22:02:20 +0000 (14:02 -0800)]
allow slices (open arrays) to be
receivers in methods.
put back original code for hilbert/bignum

R=r
OCL=21910
CL=21920

16 years agodiagnostic to catch pointer to
Ken Thompson [Fri, 26 Dec 2008 22:42:20 +0000 (14:42 -0800)]
diagnostic to catch pointer to
rvalue promoted to method receiver.
fixes to bignum that failed.

R=r
OCL=21827
CL=21827

16 years agoput array test in table, with TODO to fix when arrays work in interfaces.
Rob Pike [Tue, 23 Dec 2008 17:34:38 +0000 (09:34 -0800)]
put array test in table, with TODO to fix when arrays work in interfaces.

TBR=rsc
OCL=21766
CL=21766

16 years agoprint array (not just *array) using %v
Rob Pike [Mon, 22 Dec 2008 19:04:17 +0000 (11:04 -0800)]
print array (not just *array) using %v

TBR=rsc
DELTA=34  (33 added, 0 deleted, 1 changed)
OCL=21718
CL=21718

16 years agohilbert now runs.
Rob Pike [Sun, 21 Dec 2008 02:15:34 +0000 (18:15 -0800)]
hilbert now runs.
it's 25% faster and runs with 40% less memory allocation than before

R=rsc
DELTA=20  (15 added, 0 deleted, 5 changed)
OCL=21690
CL=21690

16 years agoupdate to new regime.
Rob Pike [Sun, 21 Dec 2008 01:25:43 +0000 (17:25 -0800)]
update to new regime.
lines marked BUG are rewrites working around 6g bug.

R=rsc
DELTA=161  (42 added, 2 deleted, 117 changed)
OCL=21689
CL=21689

16 years agofix new(T) if type T []int.
Russ Cox [Sun, 21 Dec 2008 00:30:44 +0000 (16:30 -0800)]
fix new(T) if type T []int.
make sure type of expr is T not just []int

R=ken
OCL=21688
CL=21688

16 years agoregfree
Ken Thompson [Sun, 21 Dec 2008 00:07:56 +0000 (16:07 -0800)]
regfree

R=r
OCL=21685
CL=21687

16 years agoupdate map test.
Rob Pike [Sun, 21 Dec 2008 00:07:43 +0000 (16:07 -0800)]
update map test.
convert to printf.
increase count to 1000 - maps are faster now.
add cases for structure values as key and maps.

R=rsc
DELTA=197  (66 added, 18 deleted, 113 changed)
OCL=21683
CL=21686

16 years agoLEAQ bug
Ken Thompson [Sun, 21 Dec 2008 00:05:12 +0000 (16:05 -0800)]
LEAQ bug

R=r
OCL=21684
CL=21684

16 years agofix some tests. only 3 remain broken (complit, hilbert, initcomma).
Rob Pike [Sat, 20 Dec 2008 21:38:29 +0000 (13:38 -0800)]
fix some tests. only 3 remain broken (complit, hilbert, initcomma).
leaving golden.out alone for now.

R=ken
DELTA=13  (0 added, 0 deleted, 13 changed)
OCL=21682
CL=21682

16 years ago[] and struct in interfaces.
Russ Cox [Sat, 20 Dec 2008 01:11:54 +0000 (17:11 -0800)]
[] and struct in interfaces.
other [] cleanup.

convert() is gone.

R=r
DELTA=352  (144 added, 68 deleted, 140 changed)
OCL=21660
CL=21662

16 years agoallow Listen on ":9999" as an alias for "0.0.0.0:9999"
Russ Cox [Fri, 19 Dec 2008 23:52:21 +0000 (15:52 -0800)]
allow Listen on ":9999" as an alias for "0.0.0.0:9999"

R=r
DELTA=21  (12 added, 0 deleted, 9 changed)
OCL=21653
CL=21653

16 years agoUpdate for source code changes.
Ian Lance Taylor [Fri, 19 Dec 2008 22:32:00 +0000 (14:32 -0800)]
Update for source code changes.

R=gri
DELTA=15  (13 added, 1 deleted, 1 changed)
OCL=21632
CL=21639

16 years agoarray compare (except = != nil) are illegal
Ken Thompson [Fri, 19 Dec 2008 22:26:52 +0000 (14:26 -0800)]
array compare (except = != nil) are illegal

R=r
OCL=21637
CL=21637

16 years agoportability bug
Ken Thompson [Fri, 19 Dec 2008 22:04:25 +0000 (14:04 -0800)]
portability bug
cant assign to closed array

R=r
OCL=21634
CL=21634

16 years agofix new(bool) error message
Russ Cox [Fri, 19 Dec 2008 20:18:44 +0000 (12:18 -0800)]
fix new(bool) error message

R=ken
OCL=21616
CL=21616

16 years agochan and map of [] and struct
Russ Cox [Fri, 19 Dec 2008 20:05:22 +0000 (12:05 -0800)]
chan and map of [] and struct

R=r
DELTA=192  (145 added, 8 deleted, 39 changed)
OCL=21609
CL=21614

16 years agog4 open sysimport.c before writing it
Russ Cox [Fri, 19 Dec 2008 17:03:44 +0000 (09:03 -0800)]
g4 open sysimport.c before writing it

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

16 years agonew error messages
Russ Cox [Fri, 19 Dec 2008 17:03:24 +0000 (09:03 -0800)]
new error messages

x.go:11: illegal types for operand: AS
*I
*T
(*interface vs *struct)

R=r
DELTA=10  (8 added, 0 deleted, 2 changed)
OCL=21457
CL=21602

16 years agomalloc bug fixes.
Russ Cox [Fri, 19 Dec 2008 11:13:39 +0000 (03:13 -0800)]
malloc bug fixes.

use malloc by default.
free stacks.

R=r
DELTA=424  (333 added, 29 deleted, 62 changed)
OCL=21553
CL=21584

16 years agofmt and reflect updates for recent changes
Russ Cox [Fri, 19 Dec 2008 11:06:19 +0000 (03:06 -0800)]
fmt and reflect updates for recent changes

TBR=r
OCL=21580
CL=21583

16 years agocompiler changes for *chan -> chan; *map -> map; new(T) -> new(*T)
Russ Cox [Fri, 19 Dec 2008 11:05:54 +0000 (03:05 -0800)]
compiler changes for *chan -> chan; *map -> map; new(T) -> new(*T)
mainly a syntactic change: the compiler representations don't change
(chan and map are now hidden pointers like string).

R=ken
OCL=21578
CL=21582

16 years agochange *map to map; *chan to chan; new(T) to new(*T)
Russ Cox [Fri, 19 Dec 2008 11:05:37 +0000 (03:05 -0800)]
change *map to map; *chan to chan; new(T) to new(*T)
fix bugs left over from *[] to [] conversion.

TBR=r
OCL=21576
CL=21581

16 years agoconvert *[] to [].
Russ Cox [Fri, 19 Dec 2008 06:37:22 +0000 (22:37 -0800)]
convert *[] to [].

R=r
OCL=21563
CL=21571

16 years agoprint(array)
Ken Thompson [Fri, 19 Dec 2008 06:17:05 +0000 (22:17 -0800)]
print(array)

R=r
OCL=21570
CL=21570

16 years agobug in [const]
Ken Thompson [Fri, 19 Dec 2008 06:01:46 +0000 (22:01 -0800)]
bug in [const]

R=r
OCL=21569
CL=21569

16 years agonew []int literal
Russ Cox [Fri, 19 Dec 2008 05:59:12 +0000 (21:59 -0800)]
new []int literal

R=ken
OCL=21568
CL=21568

16 years agocmp [] to nil
Ken Thompson [Fri, 19 Dec 2008 05:33:45 +0000 (21:33 -0800)]
cmp [] to nil

R=r
OCL=21567
CL=21567

16 years agoanother [] fix
Russ Cox [Fri, 19 Dec 2008 05:15:26 +0000 (21:15 -0800)]
another [] fix

R=ken
OCL=21566
CL=21566

16 years ago[] fixes
Russ Cox [Fri, 19 Dec 2008 05:11:56 +0000 (21:11 -0800)]
[] fixes

R=ken
OCL=21565
CL=21565

16 years agoarrays
Ken Thompson [Fri, 19 Dec 2008 04:06:28 +0000 (20:06 -0800)]
arrays

R=r
OCL=21564
CL=21564

16 years agolibmach: always print 0x on hex numbers
Russ Cox [Fri, 19 Dec 2008 02:23:48 +0000 (18:23 -0800)]
libmach: always print 0x on hex numbers

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=21558
CL=21558

16 years agohost and port name lookup
Russ Cox [Thu, 18 Dec 2008 23:42:39 +0000 (15:42 -0800)]
host and port name lookup

R=r,presotto
DELTA=1239  (935 added, 281 deleted, 23 changed)
OCL=21041
CL=21539

16 years agomalloc in runtime (not used by default)
Russ Cox [Thu, 18 Dec 2008 23:42:28 +0000 (15:42 -0800)]
malloc in runtime (not used by default)

R=r
DELTA=1551  (1550 added, 0 deleted, 1 changed)
OCL=21404
CL=21538

16 years ago- receiver ident may be optional
Robert Griesemer [Thu, 18 Dec 2008 21:29:11 +0000 (13:29 -0800)]
- receiver ident may be optional

R=r
DELTA=5  (2 added, 0 deleted, 3 changed)
OCL=21508
CL=21510

16 years ago- fixed a bug in Natural.And()
Robert Griesemer [Thu, 18 Dec 2008 17:55:33 +0000 (09:55 -0800)]
- fixed a bug in Natural.And()
- removed some non-beneficial factorization and reduced number of array slices per
  operations significantly
- reduced line count
- benchhil benchmark time reduced by ~2%

R=r
DELTA=313  (106 added, 163 deleted, 44 changed)
OCL=21473
CL=21497

16 years ago- ripped out excessively fancy way of describing grammar
Robert Griesemer [Wed, 17 Dec 2008 23:39:15 +0000 (15:39 -0800)]
- ripped out excessively fancy way of describing grammar
  in favor of explicit constructs
- simpler, clearer, and shorter overall
- no spec changes

(in retrospect it was just a (my) mistake to put it in in the first place)

R=r
DELTA=55  (13 added, 28 deleted, 14 changed)
OCL=21434
CL=21462

16 years agosmall bug
Ken Thompson [Wed, 17 Dec 2008 20:13:19 +0000 (12:13 -0800)]
small bug
new printarray

R=r
OCL=21429
CL=21429

16 years agotrailing white space
Russ Cox [Wed, 17 Dec 2008 18:14:29 +0000 (10:14 -0800)]
trailing white space

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

16 years agofix syntax error (syntax accepted by 6g, but not by pretty printer)
Robert Griesemer [Wed, 17 Dec 2008 02:08:16 +0000 (18:08 -0800)]
fix syntax error (syntax accepted by 6g, but not by pretty printer)

R=r
OCL=21385
CL=21385

16 years ago- added missing file
Robert Griesemer [Wed, 17 Dec 2008 02:03:18 +0000 (18:03 -0800)]
- added missing file

R=r
OCL=21384
CL=21384

16 years agoSnapshot.
Robert Griesemer [Wed, 17 Dec 2008 02:02:22 +0000 (18:02 -0800)]
Snapshot.

Preparations to track identifiers and declarations so that we can
generate good html links as pretty printer output:
- brought over old code and adjusted it
- initial hookups, nothing really running yet

R=r
OCL=21383
CL=21383

16 years agofix type/name thing, again
Russ Cox [Wed, 17 Dec 2008 01:45:28 +0000 (17:45 -0800)]
fix type/name thing, again

R=r
DELTA=8  (7 added, 0 deleted, 1 changed)
OCL=21379
CL=21379

16 years agoanother "want type got name" error case
Russ Cox [Wed, 17 Dec 2008 01:37:07 +0000 (17:37 -0800)]
another "want type got name" error case

R=ken
OCL=21377
CL=21377

16 years ago- Add introduction section (1 page), essentially a condensed form
Robert Griesemer [Tue, 16 Dec 2008 22:45:09 +0000 (14:45 -0800)]
- Add introduction section (1 page), essentially a condensed form
of an earlier intro.
- Updated contents section.
- Removed left-over text from earlier documents.

No spec changes.

R=r
DELTA=379  (147 added, 227 deleted, 5 changed)
OCL=21312
CL=21331

16 years agoclear flags so that %+v does not pass the +
Russ Cox [Tue, 16 Dec 2008 22:39:29 +0000 (14:39 -0800)]
clear flags so that %+v does not pass the +
to the first field it prints.

R=r
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=21324
CL=21328

16 years agoIf ByteBuffer has never been used, b.buf is nil but Data() should still work.
Rob Pike [Tue, 16 Dec 2008 21:01:39 +0000 (13:01 -0800)]
If ByteBuffer has never been used, b.buf is nil but Data() should still work.
Fix the bug using a (safe) shared global empty array.

R=rsc
DELTA=8  (8 added, 0 deleted, 0 changed)
OCL=21303
CL=21303

16 years agolanguage for range clause
Robert Griesemer [Tue, 16 Dec 2008 19:38:56 +0000 (11:38 -0800)]
language for range clause
(I have deliberately left away the forms w/ := or = and
the forms with :)

R=r
DELTA=106  (44 added, 13 deleted, 49 changed)
OCL=21192
CL=21283

16 years ago- fixed minor bug in example (found by ken)
Robert Griesemer [Tue, 16 Dec 2008 18:45:39 +0000 (10:45 -0800)]
- fixed minor bug in example (found by ken)

R=r
OCL=21272
CL=21272

16 years agoupdate tests - 119 is fixed
Rob Pike [Tue, 16 Dec 2008 18:31:08 +0000 (10:31 -0800)]
update tests - 119 is fixed

R=gri
DELTA=62  (28 added, 34 deleted, 0 changed)
OCL=21269
CL=21271

16 years agonew convention, direction bit is
Ken Thompson [Mon, 15 Dec 2008 23:07:35 +0000 (15:07 -0800)]
new convention, direction bit is
always left cleared. changed
compiler generated memcpy and
memset to assume CLD.

R=r
OCL=21215
CL=21215

16 years agorange clause must have = or :=
Ken Thompson [Mon, 15 Dec 2008 21:44:27 +0000 (13:44 -0800)]
range clause must have = or :=
:= illegal in for-increment

R=r
OCL=21204
CL=21204

16 years agooff-by-one error assigning src files to functions
Russ Cox [Mon, 15 Dec 2008 18:50:41 +0000 (10:50 -0800)]
off-by-one error assigning src files to functions

R=r
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=21178
CL=21187

16 years agocheck printf format strings
Russ Cox [Mon, 15 Dec 2008 18:50:33 +0000 (10:50 -0800)]
check printf format strings

R=r
DELTA=18  (16 added, 0 deleted, 2 changed)
OCL=21177
CL=21185