]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agodeclared and not used; this time for sure
Russ Cox [Tue, 15 Sep 2009 21:11:43 +0000 (14:11 -0700)]
declared and not used; this time for sure

R=ken
OCL=34657
CL=34657

15 years agoconsider each case in a switch independent from the previous one for alignment purposes
Robert Griesemer [Tue, 15 Sep 2009 20:53:10 +0000 (13:53 -0700)]
consider each case in a switch independent from the previous one for alignment purposes

R=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=34654
CL=34656

15 years agofinal batch for "declared and not used"
Russ Cox [Tue, 15 Sep 2009 20:51:33 +0000 (13:51 -0700)]
final batch for "declared and not used"
 * update mksyscall.sh and rebuild syscall/z*.go
 * fix a few linux-only files

R=r
DELTA=455  (12 added, 1 deleted, 442 changed)
OCL=34637
CL=34655

15 years agofix build: added missing files
Robert Griesemer [Tue, 15 Sep 2009 20:33:16 +0000 (13:33 -0700)]
fix build: added missing files

TBR=rsc
DELTA=56  (56 added, 0 deleted, 0 changed)
OCL=34652
CL=34652

15 years agogo/printer:
Robert Griesemer [Tue, 15 Sep 2009 20:06:24 +0000 (13:06 -0700)]
go/printer:
- printing of expressions: put spaces only where "needed"
- printing of import statements: no double indentation if there are no renames
- print labels on separate lines
- added extra test files

go/ast:
- unified basic literal nodes and as a result deleted duplicated code
- added initial code to track scopes (not fully used yet)

replaces CL 34553

R=rsc
DELTA=881  (579 added, 223 deleted, 79 changed)
OCL=34623
CL=34651

15 years agolast round: non-package code
Russ Cox [Tue, 15 Sep 2009 19:42:24 +0000 (12:42 -0700)]
last round: non-package code

R=r
DELTA=127  (38 added, 3 deleted, 86 changed)
OCL=34640
CL=34650

15 years agoan attempt to define initialization order within a package.
Rob Pike [Tue, 15 Sep 2009 18:56:39 +0000 (11:56 -0700)]
an attempt to define initialization order within a package.

DELTA=23  (19 added, 1 deleted, 3 changed)
OCL=34646
CL=34649

15 years agominutiae: pass 1
Rob Pike [Tue, 15 Sep 2009 16:54:22 +0000 (09:54 -0700)]
minutiae: pass 1

DELTA=174  (65 added, 10 deleted, 99 changed)
OCL=34625
CL=34639

15 years agomore "declared and not used".
Russ Cox [Tue, 15 Sep 2009 16:41:59 +0000 (09:41 -0700)]
more "declared and not used".

the last round omitted := range and only
checked 1 out of N vars in a multi-var :=

R=r
OCL=34624
CL=34638

15 years agofix "declared and not used" in tests;
Russ Cox [Tue, 15 Sep 2009 04:03:53 +0000 (21:03 -0700)]
fix "declared and not used" in tests;
also template/template.go, missed last time.

R=r
DELTA=116  (61 added, 10 deleted, 45 changed)
OCL=34620
CL=34622

15 years agodeclared and not used error, but disabled.
Russ Cox [Tue, 15 Sep 2009 01:38:30 +0000 (18:38 -0700)]
declared and not used error, but disabled.
fix some bugs involving _.

R=ken
OCL=34621
CL=34621

15 years agomake SimpleStmt include EmptyStmt and the grammar simplifies a bit.
Rob Pike [Tue, 15 Sep 2009 00:39:17 +0000 (17:39 -0700)]
make SimpleStmt include EmptyStmt and the grammar simplifies a bit.
SimpleStmt was always used as an option.

fix bug: divide is a right shift

DELTA=8  (0 added, 0 deleted, 8 changed)
OCL=34612
CL=34614

15 years agofix "declared and not used" errors in non-test code.
Russ Cox [Tue, 15 Sep 2009 00:20:29 +0000 (17:20 -0700)]
fix "declared and not used" errors in non-test code.

R=r
DELTA=112  (6 added, 57 deleted, 49 changed)
OCL=34610
CL=34610

15 years agodo not crash on nil data value
Russ Cox [Mon, 14 Sep 2009 23:46:48 +0000 (16:46 -0700)]
do not crash on nil data value

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

15 years agodo not crash printing the zero value for time.Time.
Russ Cox [Mon, 14 Sep 2009 23:45:35 +0000 (16:45 -0700)]
do not crash printing the zero value for time.Time.

R=r
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=34605
CL=34608

15 years agomake 5g, 8g build again by disabling init code.
Russ Cox [Mon, 14 Sep 2009 21:27:19 +0000 (14:27 -0700)]
make 5g, 8g build again by disabling init code.

R=ken
OCL=34604
CL=34604

15 years agoadd tests for the func()() case
Rob Pike [Mon, 14 Sep 2009 20:09:53 +0000 (13:09 -0700)]
add tests for the func()() case

R=gri
DELTA=12  (12 added, 0 deleted, 0 changed)
OCL=34601
CL=34601

15 years agofunctions
Rob Pike [Mon, 14 Sep 2009 17:40:44 +0000 (10:40 -0700)]
functions

R=rsc
DELTA=125  (103 added, 22 deleted, 0 changed)
OCL=34586
CL=34598

15 years agoWhen decoding a paletted PNG, require that a PLTE chunk is seen before
Nigel Tao [Mon, 14 Sep 2009 04:47:54 +0000 (21:47 -0700)]
When decoding a paletted PNG, require that a PLTE chunk is seen before
the first IDAT chunk.

R=rsc
APPROVED=rsc
DELTA=7  (2 added, 0 deleted, 5 changed)
OCL=34583
CL=34585

15 years agoAdd and AddByte
Rob Pike [Mon, 14 Sep 2009 04:35:18 +0000 (21:35 -0700)]
Add and AddByte

R=rsc
DELTA=83  (83 added, 0 deleted, 0 changed)
OCL=34584
CL=34584

15 years agocorrect and clarify the rules about integer conversions.
Rob Pike [Fri, 11 Sep 2009 18:51:00 +0000 (11:51 -0700)]
correct and clarify the rules about integer conversions.

DELTA=15  (6 added, 1 deleted, 8 changed)
OCL=34549
CL=34564

15 years agoPNG decoder for go.
Nigel Tao [Fri, 11 Sep 2009 04:33:44 +0000 (21:33 -0700)]
PNG decoder for go.

R=rsc
APPROVED=r
DELTA=694  (675 added, 3 deleted, 16 changed)
OCL=34427
CL=34554

15 years agofix build
Robert Griesemer [Fri, 11 Sep 2009 01:26:14 +0000 (18:26 -0700)]
fix build

TBR=rsc
OCL=34550
CL=34552

15 years agofix bug206.
Russ Cox [Fri, 11 Sep 2009 00:33:01 +0000 (17:33 -0700)]
fix bug206.
delay calls to savex as long as possible.

R=ken
OCL=34535
CL=34546

15 years agominor changes
Ken Thompson [Fri, 11 Sep 2009 00:32:48 +0000 (17:32 -0700)]
minor changes

R=rsc
OCL=34545
CL=34545

15 years agobetter gofmt formatting:
Robert Griesemer [Fri, 11 Sep 2009 00:27:06 +0000 (17:27 -0700)]
better gofmt formatting:
- first cut a better line breaks in expr lists
- trailing commas and semis printed where we tend to write them
- fixed a couple of minor spacing issues (interface{}, chan<-, map[x]y, x: y)
- removed some formatting flags from gofmt: no need to change default
- removed option to reverse declaration order when printing
- excluded files from test that cause trouble with idempotency test for now

R=rsc
DELTA=497  (364 added, 83 deleted, 50 changed)
OCL=34539
CL=34544

15 years agorename units -> units.txt.
Russ Cox [Thu, 10 Sep 2009 21:47:10 +0000 (14:47 -0700)]
rename units -> units.txt.
add makefile rules to build a binary named units as a demo.

R=r
DELTA=1257  (659 added, 597 deleted, 1 changed)
OCL=34528
CL=34530

15 years agofix indentation
Russ Cox [Thu, 10 Sep 2009 21:18:53 +0000 (14:18 -0700)]
fix indentation

R=r
DELTA=166  (0 added, 0 deleted, 166 changed)
OCL=34521
CL=34527

15 years agosample goyacc program
Ken Thompson [Thu, 10 Sep 2009 20:53:35 +0000 (13:53 -0700)]
sample goyacc program

R=rsc
OCL=34526
CL=34526

15 years agofix bug206 output on different platforms
Russ Cox [Thu, 10 Sep 2009 20:43:15 +0000 (13:43 -0700)]
fix bug206 output on different platforms

TBR=r
OCL=34524
CL=34524

15 years agogoyacc command
Ken Thompson [Thu, 10 Sep 2009 20:19:46 +0000 (13:19 -0700)]
goyacc command
written in (c-style) go
produces go source parser

R=rsc
OCL=34522
CL=34522

15 years agogccgo does not yet implement _
Rob Pike [Thu, 10 Sep 2009 17:47:11 +0000 (10:47 -0700)]
gccgo does not yet implement _

OCL=34517
CL=34517

15 years agobug206
Robert Griesemer [Thu, 10 Sep 2009 17:30:36 +0000 (10:30 -0700)]
bug206

R=rsc
DELTA=51  (51 added, 0 deleted, 0 changed)
OCL=34516
CL=34516

15 years ago- blank identifier
Robert Griesemer [Thu, 10 Sep 2009 17:14:00 +0000 (10:14 -0700)]
- blank identifier
- fixed some links

DELTA=51  (32 added, 1 deleted, 18 changed)
OCL=34497
CL=34515

15 years agocomposit literal under
Ken Thompson [Thu, 10 Sep 2009 00:48:55 +0000 (17:48 -0700)]
composit literal under
init function context.
also moved composit literal
code from walk.c to sinit.c

R=rsc
OCL=34503
CL=34503

15 years agoa few more blank tests
Russ Cox [Wed, 9 Sep 2009 23:59:41 +0000 (16:59 -0700)]
a few more blank tests

R=ken
OCL=34500
CL=34500

15 years agoexit with non-zero status for incompatible pointer type warnings
Russ Cox [Wed, 9 Sep 2009 23:45:23 +0000 (16:45 -0700)]
exit with non-zero status for incompatible pointer type warnings

R=r
DELTA=9  (7 added, 0 deleted, 2 changed)
OCL=34499
CL=34499

15 years agouse the new type switch multicase to clean up a little.
Rob Pike [Wed, 9 Sep 2009 17:32:26 +0000 (10:32 -0700)]
use the new type switch multicase to clean up a little.

R=rsc
DELTA=28  (7 added, 16 deleted, 5 changed)
OCL=34487
CL=34487

15 years agocheck type of string/map/array index expressions
Russ Cox [Wed, 9 Sep 2009 08:31:10 +0000 (01:31 -0700)]
check type of string/map/array index expressions

R=ken
OCL=34478
CL=34480

15 years agoerror message fixes
Russ Cox [Wed, 9 Sep 2009 08:21:20 +0000 (01:21 -0700)]
error message fixes

x == nil
x.go:5: cannot use nil as bool

c := x.(type);
x.go:88: use of .(type) outside type switch

R=ken
OCL=34476
CL=34476

15 years agodefining package block names must override
Russ Cox [Wed, 9 Sep 2009 08:01:39 +0000 (01:01 -0700)]
defining package block names must override
universe block names.

BUG=2097244
R=ken
OCL=34295
CL=34473

15 years agoupdate type switch to match spec.
Russ Cox [Wed, 9 Sep 2009 07:18:16 +0000 (00:18 -0700)]
update type switch to match spec.

R=ken
OCL=34471
CL=34471

15 years agowrite-only variable _
Russ Cox [Wed, 9 Sep 2009 06:16:19 +0000 (23:16 -0700)]
write-only variable _

R=ken
OCL=34465
CL=34470

15 years agostring range
Rob Pike [Wed, 9 Sep 2009 00:11:57 +0000 (17:11 -0700)]
string range

R=rsc
DELTA=22  (19 added, 0 deleted, 3 changed)
OCL=34463
CL=34463

15 years agoinit context for composit literals
Ken Thompson [Tue, 8 Sep 2009 22:52:27 +0000 (15:52 -0700)]
init context for composit literals

R=rsc
OCL=34462
CL=34462

15 years agocosmetic changes:
Robert Griesemer [Tue, 8 Sep 2009 22:41:14 +0000 (15:41 -0700)]
cosmetic changes:
- fixed a couple of broken links
- changed some explicit section references into implicit ones

R=r
DELTA=27  (0 added, 2 deleted, 25 changed)
OCL=34461
CL=34461

15 years agoadd -S flag to print size of symbol
Russ Cox [Tue, 8 Sep 2009 21:40:27 +0000 (14:40 -0700)]
add -S flag to print size of symbol

R=r
DELTA=24  (15 added, 0 deleted, 9 changed)
OCL=34447
CL=34458

15 years ago- clarify vector comment
Robert Griesemer [Tue, 8 Sep 2009 21:29:41 +0000 (14:29 -0700)]
- clarify vector comment
- adjusted a test to check claim

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

15 years agocompound literal test
Ken Thompson [Tue, 8 Sep 2009 21:26:39 +0000 (14:26 -0700)]
compound literal test

R=rsc
OCL=34453
CL=34455

15 years agopass Type* to makechan and makemap so that
Russ Cox [Tue, 8 Sep 2009 20:46:54 +0000 (13:46 -0700)]
pass Type* to makechan and makemap so that
they can get the official alignment out of there
instead of guessing.

R=ken
OCL=34450
CL=34450

15 years agodocumentation edits:
Russ Cox [Tue, 8 Sep 2009 19:27:09 +0000 (12:27 -0700)]
documentation edits:
add comments showing Go syntax for each token.
move doc comments below hidden begin constants

R=gri
DELTA=66  (3 added, 3 deleted, 60 changed)
OCL=34334
CL=34445

15 years agomaps in static initialization
Ken Thompson [Tue, 8 Sep 2009 00:36:47 +0000 (17:36 -0700)]
maps in static initialization

R=rsc
OCL=34434
CL=34434

15 years agomore static init
Ken Thompson [Sun, 6 Sep 2009 22:03:51 +0000 (15:03 -0700)]
more static init
almost done

R=rsc
OCL=34422
CL=34422

15 years agocomposit literals
Ken Thompson [Sun, 6 Sep 2009 03:32:24 +0000 (20:32 -0700)]
composit literals
plateau - more to come

R=rsc
OCL=34413
CL=34413

15 years agoDon't crash in Sym.ReceiverName for symbols like "x.x"
Austin Clements [Fri, 4 Sep 2009 23:12:50 +0000 (16:12 -0700)]
Don't crash in Sym.ReceiverName for symbols like "x.x"

R=rsc
APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=34404
CL=34406

15 years agoscript for running test programs in interpreter.
Russ Cox [Fri, 4 Sep 2009 20:04:11 +0000 (13:04 -0700)]
script for running test programs in interpreter.
tweak test/literal.go to give more information.

R=austin
DELTA=45  (43 added, 0 deleted, 2 changed)
OCL=34381
CL=34398

15 years agoMake world.Define{Const,Var} indicate if the definition was
Austin Clements [Fri, 4 Sep 2009 19:55:25 +0000 (12:55 -0700)]
Make world.Define{Const,Var} indicate if the definition was
successful.

R=rsc
APPROVED=rsc
DELTA=43  (31 added, 0 deleted, 12 changed)
OCL=34375
CL=34397

15 years agoUpdate debugger to use Abort interface
Austin Clements [Fri, 4 Sep 2009 18:58:00 +0000 (11:58 -0700)]
Update debugger to use Abort interface

R=rsc
APPROVED=rsc
DELTA=314  (132 added, 2 deleted, 180 changed)
OCL=34376
CL=34396

15 years agos/Thread/Goroutine/
Austin Clements [Fri, 4 Sep 2009 00:41:25 +0000 (17:41 -0700)]
s/Thread/Goroutine/

R=rsc
APPROVED=rsc
DELTA=328  (112 added, 110 deleted, 106 changed)
OCL=34356
CL=34356

15 years agotop-level func
Russ Cox [Fri, 4 Sep 2009 00:22:20 +0000 (17:22 -0700)]
top-level func

R=austin
DELTA=21  (5 added, 10 deleted, 6 changed)
OCL=34355
CL=34355

15 years agoThread Thread into Value Get/Set/Assign so other Value
Austin Clements [Fri, 4 Sep 2009 00:14:49 +0000 (17:14 -0700)]
Thread Thread into Value Get/Set/Assign so other Value
implementations can abort.  Make genConstant get values lazily
since we need the Thread now.

R=rsc
APPROVED=rsc
DELTA=299  (8 added, 19 deleted, 272 changed)
OCL=34353
CL=34353

15 years agoadd ParseDeclList
Russ Cox [Fri, 4 Sep 2009 00:01:10 +0000 (17:01 -0700)]
add ParseDeclList

R=austin
DELTA=34  (34 added, 0 deleted, 0 changed)
OCL=34280
CL=34352

15 years agoImplement Go threads. Implement a general event system
Austin Clements [Thu, 3 Sep 2009 23:59:41 +0000 (16:59 -0700)]
Implement Go threads.  Implement a general event system
including breakpoints and Go thread create/exit.

R=rsc
APPROVED=rsc
DELTA=751  (729 added, 6 deleted, 16 changed)
OCL=34345
CL=34351

15 years agoparse expression statements beginning with
Russ Cox [Thu, 3 Sep 2009 23:37:02 +0000 (16:37 -0700)]
parse expression statements beginning with
arithmetic unary operators + - ^

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

15 years agoconvert testing to World.
Russ Cox [Thu, 3 Sep 2009 23:20:49 +0000 (16:20 -0700)]
convert testing to World.
start on Decl, but not working yet

R=austin
DELTA=762  (201 added, 205 deleted, 356 changed)
OCL=34335
CL=34349

15 years agomissed in last compiler change
Russ Cox [Thu, 3 Sep 2009 23:18:03 +0000 (16:18 -0700)]
missed in last compiler change

R=ken
OCL=34348
CL=34348

15 years agofix linux 386 build
Russ Cox [Thu, 3 Sep 2009 23:17:21 +0000 (16:17 -0700)]
fix linux 386 build

R=austin
DELTA=140  (128 added, 0 deleted, 12 changed)
OCL=34344
CL=34347

15 years agocorrected bug187; dropped on the floor somehow
Russ Cox [Thu, 3 Sep 2009 23:17:06 +0000 (16:17 -0700)]
corrected bug187; dropped on the floor somehow

R=austin
DELTA=23  (23 added, 0 deleted, 0 changed)
OCL=34340
CL=34346

15 years agonil in DeepEqual
Russ Cox [Thu, 3 Sep 2009 22:45:43 +0000 (15:45 -0700)]
nil in DeepEqual

R=r
DELTA=13  (5 added, 6 deleted, 2 changed)
OCL=34337
CL=34343

15 years agostop using filename for disambiguation within a package.
Russ Cox [Thu, 3 Sep 2009 22:23:21 +0000 (15:23 -0700)]
stop using filename for disambiguation within a package.

R=ken
OCL=34339
CL=34341

15 years agofix range on invalid utf8 bug
Russ Cox [Thu, 3 Sep 2009 20:56:06 +0000 (13:56 -0700)]
fix range on invalid utf8 bug

R=r
DELTA=42  (21 added, 20 deleted, 1 changed)
OCL=34328
CL=34333

15 years agopartial rune at end makes string range loop forever
Rob Pike [Thu, 3 Sep 2009 20:33:16 +0000 (13:33 -0700)]
partial rune at end makes string range loop forever

R=rsc
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=34330
CL=34332

15 years agonew benchmark results.
Rob Pike [Thu, 3 Sep 2009 18:41:01 +0000 (11:41 -0700)]
new benchmark results.
main changes:
gccgo is much slower on  binary-tree and fannkuch
6g seems to struggle with alignment of loops in nbody (dignosis uncertain)
6g is a little faster at regexps and concurrency

R=rsc
DELTA=93  (93 added, 0 deleted, 0 changed)
OCL=34320
CL=34322

15 years agofix bug187 (itself buggy)
Russ Cox [Thu, 3 Sep 2009 17:59:52 +0000 (10:59 -0700)]
fix bug187 (itself buggy)

R=austin
DELTA=26  (0 added, 26 deleted, 0 changed)
OCL=34294
CL=34317

15 years agoFix uninstalling of breakpoints when a process exits. Process
Austin Clements [Thu, 3 Sep 2009 17:55:20 +0000 (10:55 -0700)]
Fix uninstalling of breakpoints when a process exits.  Process
exit is still handled poorly.

R=rsc
APPROVED=rsc
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=34288
CL=34315

15 years agosimplify extractEBNF code
Robert Griesemer [Thu, 3 Sep 2009 17:53:27 +0000 (10:53 -0700)]
simplify extractEBNF code

R=rsc
DELTA=15  (3 added, 2 deleted, 10 changed)
OCL=34307
CL=34314

15 years agosilence hlint
Robert Griesemer [Thu, 3 Sep 2009 17:35:09 +0000 (10:35 -0700)]
silence hlint

R=r
DELTA=7  (0 added, 4 deleted, 3 changed)
OCL=34310
CL=34312

15 years agouse %L in listings so we see source line number in easy format
Rob Pike [Thu, 3 Sep 2009 17:24:38 +0000 (10:24 -0700)]
use %L in listings so we see source line number in easy format

R=ken
DELTA=9  (0 added, 0 deleted, 9 changed)
OCL=34309
CL=34311

15 years agolinkify EBNF sections in spec when served via godoc
Robert Griesemer [Thu, 3 Sep 2009 16:58:13 +0000 (09:58 -0700)]
linkify EBNF sections in spec when served via godoc

R=rsc
DELTA=217  (216 added, 0 deleted, 1 changed)
OCL=34279
CL=34306

15 years agounsafe is not declared in the outermost scope
Russ Cox [Thu, 3 Sep 2009 16:46:24 +0000 (09:46 -0700)]
unsafe is not declared in the outermost scope

R=gri
DELTA=3  (0 added, 3 deleted, 0 changed)
OCL=34305
CL=34305

15 years agofix one bug involving [...] constructors.
Russ Cox [Thu, 3 Sep 2009 06:26:13 +0000 (23:26 -0700)]
fix one bug involving [...] constructors.

added iant's bug202 (in main code)
and ken's bug203 (in init function).
bug187 remains at large.

R=ken
OCL=34293
CL=34293

15 years agoUpdate restriction on declarations of methods.
Stephen Ma [Thu, 3 Sep 2009 03:09:25 +0000 (20:09 -0700)]
Update restriction on declarations of methods.

APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=34289
CL=34289

15 years agoconvenience wrapper
Russ Cox [Thu, 3 Sep 2009 00:15:43 +0000 (17:15 -0700)]
convenience wrapper

R=austin
DELTA=142  (128 added, 4 deleted, 10 changed)
OCL=34275
CL=34284

15 years agofix initialization of noreturn
Rob Pike [Thu, 3 Sep 2009 00:14:30 +0000 (17:14 -0700)]
fix initialization of noreturn

R=ken
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=34283
CL=34283

15 years agofor loops
Rob Pike [Wed, 2 Sep 2009 23:41:41 +0000 (16:41 -0700)]
for loops
comment out incomplete stuff

R=rsc
DELTA=61  (58 added, 0 deleted, 3 changed)
OCL=34278
CL=34281

15 years agomove abortChan into Thread.
Russ Cox [Wed, 2 Sep 2009 21:11:40 +0000 (14:11 -0700)]
move abortChan into Thread.
reuse Thread in function calls.

R=austin
DELTA=59  (8 added, 7 deleted, 44 changed)
OCL=34266
CL=34266

15 years agofix build
Russ Cox [Wed, 2 Sep 2009 20:13:40 +0000 (13:13 -0700)]
fix build

TBR=gri
OCL=34264
CL=34264

15 years agoheap algorithm
Robert Griesemer [Wed, 2 Sep 2009 19:54:38 +0000 (12:54 -0700)]
heap algorithm

R=rsc
DELTA=196  (194 added, 0 deleted, 2 changed)
OCL=34234
CL=34263

15 years agoadd debug/gosym and debug/proc to build
Russ Cox [Wed, 2 Sep 2009 19:03:33 +0000 (12:03 -0700)]
add debug/gosym and debug/proc to build
(was waiting until after release)

R=austin
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=34222
CL=34261

15 years agos/vm/Thread/
Russ Cox [Wed, 2 Sep 2009 19:03:20 +0000 (12:03 -0700)]
s/vm/Thread/
change eval functions from taking *Frame to *Thread

R=austin
DELTA=500  (7 added, 4 deleted, 489 changed)
OCL=34256
CL=34260

15 years agoUpdate asInterface now that 6g type switch is fixed.
Austin Clements [Wed, 2 Sep 2009 18:59:53 +0000 (11:59 -0700)]
Update asInterface now that 6g type switch is fixed.

R=rsc
APPROVED=rsc
DELTA=31  (0 added, 4 deleted, 27 changed)
OCL=34251
CL=34259

15 years agofix bug introduced in 33293
Russ Cox [Wed, 2 Sep 2009 18:12:42 +0000 (11:12 -0700)]
fix bug introduced in 33293

R=r
OCL=34253
CL=34253

15 years agothe last bug involving type hashes
Russ Cox [Wed, 2 Sep 2009 16:09:32 +0000 (09:09 -0700)]
the last bug involving type hashes

R=ken
OCL=34244
CL=34249

15 years agotwo gob nits found with stricter 6g
Russ Cox [Wed, 2 Sep 2009 16:03:42 +0000 (09:03 -0700)]
two gob nits found with stricter 6g

(6g had a few pretty major bugs
where it was more lax than it should
have been when checking when things
satisfied interfaces; i fixed them and
this turned up.)

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=34243
CL=34248

15 years agoadd generator for expr1.go
Russ Cox [Wed, 2 Sep 2009 05:57:53 +0000 (22:57 -0700)]
add generator for expr1.go

R=austin
DELTA=959  (404 added, 99 deleted, 456 changed)
OCL=34214
CL=34237

15 years agotype switch bug involving function parameter names
Russ Cox [Wed, 2 Sep 2009 01:04:49 +0000 (18:04 -0700)]
type switch bug involving function parameter names

R=ken
OCL=34232
CL=34232

15 years agoInterpreter unit tests for statements and expressions
Austin Clements [Wed, 2 Sep 2009 00:21:44 +0000 (17:21 -0700)]
Interpreter unit tests for statements and expressions

R=rsc
APPROVED=rsc
DELTA=1003  (1003 added, 0 deleted, 0 changed)
OCL=34223
CL=34227

15 years agoDon't crash for regexps > 19 characters.
Austin Clements [Tue, 1 Sep 2009 23:46:16 +0000 (16:46 -0700)]
Don't crash for regexps > 19 characters.

R=r
APPROVED=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=34216
CL=34220

15 years agotemplate:
Russ Cox [Tue, 1 Sep 2009 23:31:49 +0000 (16:31 -0700)]
template:
  * do full lookup for {.section},
   so that it is always allowed to replace
{Foo} with {.section Foo}{@}{.end}
  * treat False as empty so that .section can
   be used to test bools

R=r
DELTA=29  (21 added, 0 deleted, 8 changed)
OCL=34215
CL=34219

15 years agomake debug/proc "build" on more architectures
Russ Cox [Tue, 1 Sep 2009 23:19:14 +0000 (16:19 -0700)]
make debug/proc "build" on more architectures

R=austin
DELTA=17  (0 added, 16 deleted, 1 changed)
OCL=34213
CL=34218