]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years ago- lowercase non-exported functions in bignum
Robert Griesemer [Thu, 15 Jan 2009 22:46:31 +0000 (14:46 -0800)]
- lowercase non-exported functions in bignum

R=r
DELTA=117  (1 added, 0 deleted, 116 changed)
OCL=22764
CL=22863

16 years ago- added mechanism to detect capitalization issues
Robert Griesemer [Thu, 15 Jan 2009 22:19:35 +0000 (14:19 -0800)]
- added mechanism to detect capitalization issues
Use: pretty -naming files

R=r
OCL=22859
CL=22859

16 years agoprintf->Printf etc.
Rob Pike [Thu, 15 Jan 2009 21:48:11 +0000 (13:48 -0800)]
printf->Printf etc.
the raw fmt routines will be another, smaller but subtler pass.

R=rsc
DELTA=157  (0 added, 0 deleted, 157 changed)
OCL=22851
CL=22851

16 years agoTest that a const with an explicit type is not treated as
Ian Lance Taylor [Thu, 15 Jan 2009 19:23:35 +0000 (11:23 -0800)]
Test that a const with an explicit type is not treated as
having an abstract type.

R=gri
DELTA=11  (11 added, 0 deleted, 0 changed)
OCL=22829
CL=22832

16 years agoTest that interfaces are correctly handled by pointer and by
Ian Lance Taylor [Thu, 15 Jan 2009 18:15:34 +0000 (10:15 -0800)]
Test that interfaces are correctly handled by pointer and by
value for large and small objects.  Currently one case fails
with 6g.

R=rsc
DELTA=150  (150 added, 0 deleted, 0 changed)
OCL=22823
CL=22827

16 years agoRecognize gccgo error messages:
Ian Lance Taylor [Thu, 15 Jan 2009 18:15:23 +0000 (10:15 -0800)]
Recognize gccgo error messages:

interface5.go:15:5: error: incompatible types in assignment
interface5.go:16:5: error: incompatible types in assignment

(Yes, these could be better).

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=22821
CL=22826

16 years ago- use new letter definition for pretty
Robert Griesemer [Wed, 14 Jan 2009 23:19:34 +0000 (15:19 -0800)]
- use new letter definition for pretty
- fixed a bug with error column reporting in the presence of utf-8 chars
- fixed an assertion failure

R=r
OCL=22762
CL=22762

16 years agoadd unicode library stub with just
Russ Cox [Wed, 14 Jan 2009 22:05:00 +0000 (14:05 -0800)]
add unicode library stub with just
IsUpper and IsLetter.

R=r
DELTA=746  (746 added, 0 deleted, 0 changed)
OCL=22743
CL=22750

16 years agorestore "os" identifier to keep consistent with text.
Rob Pike [Wed, 14 Jan 2009 16:43:32 +0000 (08:43 -0800)]
restore "os" identifier to keep consistent with text.

R=presotto
OCL=22733
CL=22733

16 years agoAdd cgo2c program to translate mixed Go/C code into C. This
Ian Lance Taylor [Wed, 14 Jan 2009 16:21:25 +0000 (08:21 -0800)]
Add cgo2c program to translate mixed Go/C code into C.  This
lets us use a single source file for both 6c and gcc, handling
the incompatible handling of return values.

R=rsc
DELTA=649  (613 added, 35 deleted, 1 changed)
OCL=22682
CL=22730

16 years agochange another yacc reference to bison.
Russ Cox [Wed, 14 Jan 2009 00:32:46 +0000 (16:32 -0800)]
change another yacc reference to bison.

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

16 years agodelete playpen copy of malloc
Russ Cox [Wed, 14 Jan 2009 00:32:40 +0000 (16:32 -0800)]
delete playpen copy of malloc

R=r
DELTA=905  (0 added, 905 deleted, 0 changed)
OCL=22663
CL=22690

16 years agoin 6g -r (the rsc flag),
Russ Cox [Tue, 13 Jan 2009 21:46:09 +0000 (13:46 -0800)]
in 6g -r (the rsc flag),
rewrite heap pointer moves as xchg.

R=ken
OCL=22665
CL=22665

16 years agoAdd USED declarations for SysUnused parameters.
Ian Lance Taylor [Tue, 13 Jan 2009 18:24:06 +0000 (10:24 -0800)]
Add USED declarations for SysUnused parameters.

R=rsc
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=22640
CL=22642

16 years agoTweak code to make it easier to compile with gcc.
Ian Lance Taylor [Tue, 13 Jan 2009 17:55:24 +0000 (09:55 -0800)]
Tweak code to make it easier to compile with gcc.
  + Use macros to name symbols with non-ASCII characters.
  + Make some variables unsigned, because they are compared
    against unsigned values.
  + Fix a few void* pointers to be MLink*.

R=rsc
DELTA=94  (44 added, 3 deleted, 47 changed)
OCL=22303
CL=22638

16 years ago- removed an unnecessary field from AST.Expr nodes
Robert Griesemer [Tue, 13 Jan 2009 01:44:10 +0000 (17:44 -0800)]
- removed an unnecessary field from AST.Expr nodes

R=r
OCL=22601
CL=22601

16 years ago- remove obsolete files (missed before)
Robert Griesemer [Sat, 10 Jan 2009 00:30:00 +0000 (16:30 -0800)]
- remove obsolete files (missed before)

R=r
OCL=22475
CL=22475

16 years ago- preparation to add type info to ast
Robert Griesemer [Sat, 10 Jan 2009 00:28:09 +0000 (16:28 -0800)]
- preparation to add type info to ast
- consolidation of files, cleanup
- more success producing idempotent output for some files with comments
  containing tabs
- snapshot of the day

R=r
OCL=22474
CL=22474

16 years agofree(nil)
Russ Cox [Sat, 10 Jan 2009 00:22:13 +0000 (16:22 -0800)]
free(nil)

R=iant
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=22467
CL=22471

16 years agoadd sys.caller
Russ Cox [Fri, 9 Jan 2009 23:52:43 +0000 (15:52 -0800)]
add sys.caller

R=r
DELTA=139  (101 added, 38 deleted, 0 changed)
OCL=22462
CL=22466

16 years agotest of automatic indirect
Russ Cox [Fri, 9 Jan 2009 23:38:01 +0000 (15:38 -0800)]
test of automatic indirect

R=r
DELTA=93  (93 added, 0 deleted, 0 changed)
OCL=22458
CL=22461

16 years agoclean up automatic indirect, delete some dead code.
Russ Cox [Fri, 9 Jan 2009 23:21:41 +0000 (15:21 -0800)]
clean up automatic indirect, delete some dead code.

R=ken
OCL=22454
CL=22457

16 years agoupdate tutorial to new language.
Rob Pike [Fri, 9 Jan 2009 23:16:31 +0000 (15:16 -0800)]
update tutorial to new language.
add a section on printing
add a section on allocation

R=rsc
DELTA=500  (278 added, 15 deleted, 207 changed)
OCL=22381
CL=22456

16 years agoUse make instead of new to allocate a channel.
Ian Lance Taylor [Fri, 9 Jan 2009 23:13:26 +0000 (15:13 -0800)]
Use make instead of new to allocate a channel.

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=22452
CL=22455

16 years agonow that TCHAN, TMAP, and TSTRING are real types,
Russ Cox [Fri, 9 Jan 2009 21:50:58 +0000 (13:50 -0800)]
now that TCHAN, TMAP, and TSTRING are real types,
can do methods on them without pointer worries.

R=ken
OCL=22434
CL=22436

16 years agosimplify flag interface. no more BVal etc. you just get a pointer.
Rob Pike [Fri, 9 Jan 2009 21:42:46 +0000 (13:42 -0800)]
simplify flag interface. no more BVal etc. you just get a pointer.
fixed everything except the tutorial.

R=rsc
DELTA=404  (94 added, 139 deleted, 171 changed)
OCL=22414
CL=22422

16 years agotypo
Russ Cox [Fri, 9 Jan 2009 19:17:13 +0000 (11:17 -0800)]
typo

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

16 years agosilence gcc warnings.
Russ Cox [Fri, 9 Jan 2009 19:13:59 +0000 (11:13 -0800)]
silence gcc warnings.
not sure if the warning in reg.c was a real bug.

R=ken
OCL=22408
CL=22410

16 years ago6g cleanup suggested by ken.
Russ Cox [Fri, 9 Jan 2009 19:13:39 +0000 (11:13 -0800)]
6g cleanup suggested by ken.
remove TPTR wrapper around TMAP, TCHAN, TSTRING.

R=ken
OCL=22406
CL=22409

16 years agoupdate sys.reflect and sys.unreflect to accomodate
Russ Cox [Fri, 9 Jan 2009 08:17:46 +0000 (00:17 -0800)]
update sys.reflect and sys.unreflect to accomodate
the possibility of large objects in interface values.

R=r
DELTA=171  (97 added, 22 deleted, 52 changed)
OCL=22382
CL=22382

16 years agobug046 and bug080 are fixed
Russ Cox [Fri, 9 Jan 2009 04:06:37 +0000 (20:06 -0800)]
bug046 and bug080 are fixed

R=r
DELTA=72  (30 added, 42 deleted, 0 changed)
OCL=22373
CL=22378

16 years agosecond pass on interface fixes and tests.
Russ Cox [Fri, 9 Jan 2009 02:06:06 +0000 (18:06 -0800)]
second pass on interface fixes and tests.

R=ken
OCL=22370
CL=22372

16 years ago- removed temporary work-arounds from bignum_test, not needed anymore
Robert Griesemer [Fri, 9 Jan 2009 01:38:24 +0000 (17:38 -0800)]
- removed temporary work-arounds from bignum_test, not needed anymore

R=r
DELTA=93  (0 added, 61 deleted, 32 changed)
OCL=22348
CL=22366

16 years agonew sort interface - no structs, just slices.
Rob Pike [Thu, 8 Jan 2009 23:12:00 +0000 (15:12 -0800)]
new sort interface - no structs, just slices.

R=rsc
DELTA=37  (0 added, 7 deleted, 30 changed)
OCL=22330
CL=22342

16 years agofix:
Russ Cox [Thu, 8 Jan 2009 23:01:22 +0000 (15:01 -0800)]
fix:
type T []int
var a []int
var t = T(a)

R=ken
OCL=22341
CL=22341

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