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

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

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

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

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

R=r
OCL=25526
CL=25528

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

R=r
OCL=25518
CL=25518

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

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

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

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

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

R=ken
OCL=25448
CL=25448

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

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

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

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

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

OCL=25292
CL=25383

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

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

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

R=r
OCL=25356
CL=25356

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

R=gri
OCL=25353
CL=25353

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

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

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

R=r
OCL=25343
CL=25343

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

R=rsc
OCL=25293
CL=25293

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

R=r
OCL=25278
CL=25278

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

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

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

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

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

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

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

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

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

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

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

R=r
OCL=25223
CL=25223

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

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

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

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

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

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

R=ken
OCL=25151
CL=25151

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

TBR=rsc
OCL=25135
CL=25135

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

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

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

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

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

R=rsc
OCL=25105
CL=25105

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

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

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

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

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

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

16 years agoproposed XML parser design.
Russ Cox [Tue, 17 Feb 2009 04:14:21 +0000 (20:14 -0800)]
proposed XML parser design.
inspired by expat's callback interface,
but a bit simpler thanks to go interfaces.

also serves as reference notes about XML.

the parser itself is unimplemented.

not in Makefiles, though it does build.

R=r
DELTA=425  (425 added, 0 deleted, 0 changed)
OCL=25077
CL=25080

16 years agomake interface to the flags themselves more public.
Rob Pike [Tue, 17 Feb 2009 03:43:15 +0000 (19:43 -0800)]
make interface to the flags themselves more public.
add visitor functions to scan the flags.
add a way to set a flag.
add a flag test.

R=rsc
DELTA=169  (99 added, 19 deleted, 51 changed)
OCL=25076
CL=25078

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

R=ken
OCL=25075
CL=25075

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

TBR=r
OCL=25074
CL=25074

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

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

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

R=ken
OCL=25072
CL=25072

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

assorted underscore cleanup

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

16 years agoassorted changes:
Russ Cox [Mon, 16 Feb 2009 06:12:35 +0000 (22:12 -0800)]
assorted changes:
- use a lock instead of a thread in once
avoids deadlock in recursive once calls
- implement os.Setenv
- remove "export" from some scripts
- remove _ from names in time package
- fix time test for non-MTV machines

R=r
DELTA=265  (87 added, 58 deleted, 120 changed)
OCL=25057
CL=25057

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

R=rsc
OCL=25054
CL=25054

16 years agoadd os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.
Russ Cox [Mon, 16 Feb 2009 03:35:52 +0000 (19:35 -0800)]
add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.
as thread-safe as possible, given the surrounding system.
add stub RWLock implementation.

R=r
DELTA=852  (834 added, 6 deleted, 12 changed)
OCL=25046
CL=25053

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

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

16 years agocleanups:
Russ Cox [Sun, 15 Feb 2009 22:18:39 +0000 (14:18 -0800)]
cleanups:
get rid of _ on private names in net.
fix os_test file name list.
newline not needed on Errorf.

R=r
DELTA=305  (34 added, 2 deleted, 269 changed)
OCL=25047
CL=25047

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

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

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

R=ken
OCL=25044
CL=25044

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

R=r
OCL=25029
CL=25029

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

R=rsc
OCL=25026
CL=25026

16 years ago- vector package (identical to array except for names)
Robert Griesemer [Fri, 13 Feb 2009 23:07:56 +0000 (15:07 -0800)]
- vector package (identical to array except for names)
- updated some file (but not all - left array package in place for now)

R=rsc
DELTA=530  (483 added, 0 deleted, 47 changed)
OCL=25025
CL=25025

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

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

R=gri
OCL=25019
CL=25024

16 years agoadd composite literal ( ) syntax.
Russ Cox [Fri, 13 Feb 2009 22:48:16 +0000 (14:48 -0800)]
add composite literal ( ) syntax.
warn about composite literal { } syntax.

R=ken
OCL=25018
CL=25023

16 years agofix build
Russ Cox [Fri, 13 Feb 2009 22:35:36 +0000 (14:35 -0800)]
fix build

TBR=r
OCL=25021
CL=25021

16 years agolabel declarations not handled properly
Robert Griesemer [Fri, 13 Feb 2009 21:42:43 +0000 (13:42 -0800)]
label declarations not handled properly

R=rsc
DELTA=27  (27 added, 0 deleted, 0 changed)
OCL=25015
CL=25015

16 years ago- fixed bugs related to the empty statement
Robert Griesemer [Fri, 13 Feb 2009 00:06:21 +0000 (16:06 -0800)]
- fixed bugs related to the empty statement
  (now in sync with the spec and with 6g)
- fixed incorrect logging statement in gds

R=r
OCL=24970
CL=24970

16 years ago- syntax for composite literals use () instead of {}
Robert Griesemer [Thu, 12 Feb 2009 05:57:15 +0000 (21:57 -0800)]
- syntax for composite literals use () instead of {}
- do not permit + for array concatenation anymore
  (not implemented and not a good idea)
- document that unsafe function results are compile time constants
- fixed minor typos

DELTA=41  (7 added, 11 deleted, 23 changed)
OCL=24899
CL=24927

16 years agorequire type assertions when narrowing.
Russ Cox [Thu, 12 Feb 2009 01:57:29 +0000 (17:57 -0800)]
require type assertions when narrowing.

R=ken
OCL=24350
CL=24914

16 years agoinsert type assertions when narrowing.
Russ Cox [Thu, 12 Feb 2009 01:55:16 +0000 (17:55 -0800)]
insert type assertions when narrowing.

R=r
OCL=24349
CL=24913

16 years agofix gc bug. i think this is tgs's second bug.
Russ Cox [Thu, 12 Feb 2009 01:54:03 +0000 (17:54 -0800)]
fix gc bug.  i think this is tgs's second bug.
i stumbled across it in all.bash.

TBR=r
OCL=24912
CL=24912

16 years ago- language for embedded interfaces (as discussed this morning)
Robert Griesemer [Wed, 11 Feb 2009 23:09:15 +0000 (15:09 -0800)]
- language for embedded interfaces (as discussed this morning)
- fixed a syntax error

R=r
DELTA=17  (15 added, 0 deleted, 2 changed)
OCL=24876
CL=24889

16 years agoAdded section on package unsafe:
Robert Griesemer [Wed, 11 Feb 2009 21:46:30 +0000 (13:46 -0800)]
Added section on package unsafe:
- contains a (proposed) constant Maxalign
- contains some text re" alignment guarantees

R=ken,r
DELTA=97  (94 added, 1 deleted, 2 changed)
OCL=24791
CL=24871

16 years agochange DirInfo->dirInfo now that 6g export bug is fixed
Rob Pike [Wed, 11 Feb 2009 00:44:04 +0000 (16:44 -0800)]
change DirInfo->dirInfo now that 6g export bug is fixed

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

16 years agodrop the os_ prefix on the file names in os. os_test.go can stay.
Rob Pike [Wed, 11 Feb 2009 00:40:06 +0000 (16:40 -0800)]
drop the os_ prefix on the file names in os.  os_test.go can stay.

R=rsc
DELTA=793  (392 added, 392 deleted, 9 changed)
OCL=24777
CL=24804

16 years agofix export bug Rob tripped over.
Russ Cox [Tue, 10 Feb 2009 21:57:31 +0000 (13:57 -0800)]
fix export bug Rob tripped over.

the lexer is already hiding names,
so this clumsy hack is no longer necessary.

R=ken
OCL=24783
CL=24783

16 years agoMake Readdirnames work properly on Linux.
Rob Pike [Tue, 10 Feb 2009 19:55:48 +0000 (11:55 -0800)]
Make Readdirnames work properly on Linux.
Refactor so Readdir is portable code.

R=rsc
DELTA=192  (50 added, 130 deleted, 12 changed)
OCL=24770
CL=24772

16 years agoImplement unsafe.Alignof.
Ian Lance Taylor [Tue, 10 Feb 2009 19:46:26 +0000 (11:46 -0800)]
Implement unsafe.Alignof.

R=ken
DELTA=20  (19 added, 0 deleted, 1 changed)
OCL=24719
CL=24771

16 years agoFix Readdirnames to behave properly if reading in little pieces. Requires storing...
Rob Pike [Tue, 10 Feb 2009 19:27:45 +0000 (11:27 -0800)]
Fix Readdirnames to behave properly if reading in little pieces. Requires storing some
state in the FD.

This is Darwin only.  Next CL will make Readdir use Readdirnames to generate its files
and move Readdir into portable code, as well as fix Readdirnames for Linux.

R=rsc
DELTA=116  (79 added, 12 deleted, 25 changed)
OCL=24756
CL=24768

16 years ago- removed obsolete comments
Robert Griesemer [Tue, 10 Feb 2009 18:37:11 +0000 (10:37 -0800)]
- removed obsolete comments

R=r
DELTA=2  (0 added, 1 deleted, 1 changed)
OCL=24755
CL=24760

16 years agoSome real GDS functionality:
Robert Griesemer [Tue, 10 Feb 2009 05:05:14 +0000 (21:05 -0800)]
Some real GDS functionality:
- directory listings w/ working links
- some links working in source code (most don't do the right thing yet)
- use of logging

R=r
OCL=24728
CL=24728

16 years agofix Getdirentries: base comes back in r2.
Rob Pike [Tue, 10 Feb 2009 04:04:36 +0000 (20:04 -0800)]
fix Getdirentries: base comes back in r2.

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

16 years agosimple accessors for Dir mode bits
Rob Pike [Mon, 9 Feb 2009 20:50:54 +0000 (12:50 -0800)]
simple accessors for Dir mode bits

R=rsc
DELTA=71  (71 added, 0 deleted, 0 changed)
OCL=24687
CL=24694

16 years agotypo. this split-os building thing is frustrating.
Rob Pike [Mon, 9 Feb 2009 19:25:47 +0000 (11:25 -0800)]
typo. this split-os building thing is frustrating.

R=rsc
OCL=24681
CL=24681

16 years agoadd Readdir: returns an array of Dir structures
Rob Pike [Mon, 9 Feb 2009 19:24:35 +0000 (11:24 -0800)]
add Readdir: returns an array of Dir structures

R=rsc
DELTA=200  (176 added, 12 deleted, 12 changed)
OCL=24680
CL=24680

16 years agofix int64/int error - build broken
Rob Pike [Mon, 9 Feb 2009 18:20:15 +0000 (10:20 -0800)]
fix int64/int error - build broken

R=gri
OCL=24678
CL=24678

16 years agoadd error to catch 6g alignment bug.
Russ Cox [Sun, 8 Feb 2009 19:19:45 +0000 (11:19 -0800)]
add error to catch 6g alignment bug.
the fix appears to be to align the
out struct on an 8 boundary, but that
is a bit involved.

R=ken
OCL=24657
CL=24657

16 years agogc funarg return fix.
Russ Cox [Sun, 8 Feb 2009 19:01:52 +0000 (11:01 -0800)]
gc funarg return fix.
change type (to satisfy OAS) after nodarg:
nodarg uses offset from type too,
and must use correct offset.

R=ken
OCL=24656
CL=24656

16 years agoFirst pass at reading directories.
Rob Pike [Sun, 8 Feb 2009 18:18:50 +0000 (10:18 -0800)]
First pass at reading directories.
Syscall support.
Readdirnames returns array of strings of contents of directory.

R=rsc
DELTA=216  (201 added, 0 deleted, 15 changed)
OCL=24642
CL=24655

16 years agoa few small cleanups
Rob Pike [Sun, 8 Feb 2009 18:17:23 +0000 (10:17 -0800)]
a few small cleanups

R=rsc
DELTA=21  (2 added, 2 deleted, 17 changed)
OCL=24638
CL=24654

16 years agouse unsafe.Sizeof
Rob Pike [Sun, 8 Feb 2009 18:16:32 +0000 (10:16 -0800)]
use unsafe.Sizeof

R=rsc
DELTA=9  (3 added, 3 deleted, 3 changed)
OCL=24640
CL=24653

16 years agoupdate sysimport.c for unsafe.Offset and Sizeof
Rob Pike [Sat, 7 Feb 2009 22:48:32 +0000 (14:48 -0800)]
update sysimport.c for unsafe.Offset and Sizeof

R=ken
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=24643
CL=24643

16 years agochange array padding in structures
Ken Thompson [Sat, 7 Feb 2009 21:31:34 +0000 (13:31 -0800)]
change array padding in structures
to pad to size of element rather
than size of array.

R=r
OCL=24641
CL=24641

16 years agounsafe.Sizeof and unsafe.Offsetof
Ken Thompson [Sat, 7 Feb 2009 20:34:45 +0000 (12:34 -0800)]
unsafe.Sizeof and unsafe.Offsetof

R=r
OCL=24639
CL=24639

16 years agofix up syscall for darwin after StringToBytes change
Rob Pike [Sat, 7 Feb 2009 02:03:13 +0000 (18:03 -0800)]
fix up syscall for darwin after StringToBytes change

R=rsc
DELTA=30  (0 added, 18 deleted, 12 changed)
OCL=24628
CL=24628

16 years agoportable stat for os
Rob Pike [Sat, 7 Feb 2009 01:54:26 +0000 (17:54 -0800)]
portable stat for os
add name to os.FD
clean up some interfaces

R=rsc
DELTA=318  (231 added, 44 deleted, 43 changed)
OCL=24624
CL=24627

16 years agofstat used wrong system call, lstat used wrong type of name
Rob Pike [Sat, 7 Feb 2009 01:10:30 +0000 (17:10 -0800)]
fstat used wrong system call, lstat used wrong type of name

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

16 years ago- removed todo and restriction from spec (closures)
Robert Griesemer [Sat, 7 Feb 2009 01:01:10 +0000 (17:01 -0800)]
- removed todo and restriction from spec (closures)
- fixed typos, added a reminder for a todo

R=r
DELTA=23  (6 added, 4 deleted, 13 changed)
OCL=24611
CL=24615

16 years agobug: empty statement not properly recognized in conjunction w/ labels
Robert Griesemer [Sat, 7 Feb 2009 00:45:37 +0000 (16:45 -0800)]
bug: empty statement not properly recognized in conjunction w/ labels

R=r
DELTA=14  (14 added, 0 deleted, 0 changed)
OCL=24610
CL=24610

16 years agoRecognize gccgo error messages:
Ian Lance Taylor [Fri, 6 Feb 2009 23:57:02 +0000 (15:57 -0800)]
Recognize gccgo error messages:

func4.go:8:11: error: invalid operand for unary '&'
func4.go:9:8: error: invalid left hand side of assignment

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=24294
CL=24603

16 years agosnapshot:
Robert Griesemer [Fri, 6 Feb 2009 23:26:30 +0000 (15:26 -0800)]
snapshot:
- first stab at a Go Documentation Server (gds)
- various fixes to make initial version of gds work

R=r
OCL=24588
CL=24588

16 years agopowser cleanup.
Rob Pike [Fri, 6 Feb 2009 23:03:14 +0000 (15:03 -0800)]
powser cleanup.
- don't need *struct
- don't need item/rat both
- closures make the inner slaves easier
- delete some old BUG comments

powser2 is left mostly alone, for variety.

R=rsc
DELTA=134  (2 added, 20 deleted, 112 changed)
OCL=24579
CL=24581

16 years agotgs's gc bug.
Russ Cox [Fri, 6 Feb 2009 22:41:21 +0000 (14:41 -0800)]
tgs's gc bug.

R=r
DELTA=10  (7 added, 0 deleted, 3 changed)
OCL=24577
CL=24577

16 years agoadd a trivial visitor method, just for fun
Rob Pike [Fri, 6 Feb 2009 22:32:09 +0000 (14:32 -0800)]
add a trivial visitor method, just for fun

R=gri
DELTA=31  (30 added, 1 deleted, 0 changed)
OCL=24568
CL=24575

16 years agoclosures - 6g support
Russ Cox [Fri, 6 Feb 2009 21:47:10 +0000 (13:47 -0800)]
closures - 6g support

R=ken
OCL=24501
CL=24566

16 years agoclosures - runtime and debugger support, test case
Russ Cox [Fri, 6 Feb 2009 21:46:56 +0000 (13:46 -0800)]
closures - runtime and debugger support, test case

R=r
DELTA=257  (250 added, 1 deleted, 6 changed)
OCL=24509
CL=24565

16 years ago- preparation for setting up types
Robert Griesemer [Fri, 6 Feb 2009 19:10:25 +0000 (11:10 -0800)]
- preparation for setting up types
  - moved Object, Type, Scope  out of AST into symboltable
  - moved universe into symboltable
  - removed dead code
- fixed dependency computation (pretty -d filename.go)
- lots of cleanups
- removed tocken channel connection between parser and scanner
  (was cute, but not really needed)

R=r
OCL=24545
CL=24545

16 years ago6c: byte* - byte* should be int64, not int32.
Russ Cox [Fri, 6 Feb 2009 03:09:04 +0000 (19:09 -0800)]
6c: byte* - byte* should be int64, not int32.

R=ken
OCL=24507
CL=24507

16 years agomaking go-spec conform with 6g:
Robert Griesemer [Fri, 6 Feb 2009 00:11:14 +0000 (16:11 -0800)]
making go-spec conform with 6g:
- equality of struct types requires equality of field names

DELTA=4  (0 added, 1 deleted, 3 changed)
OCL=24478
CL=24487

16 years agofurther pedagogy: a channel that satisfies the HTTP server interface
Rob Pike [Thu, 5 Feb 2009 23:56:31 +0000 (15:56 -0800)]
further pedagogy: a channel that satisfies the HTTP server interface

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

16 years agobug064
Russ Cox [Thu, 5 Feb 2009 23:22:49 +0000 (15:22 -0800)]
bug064

make f(g()) work when g returns multiple
args with names different than f expects.

func swap(a, b int) (c, d int) {
return b, a
}

swap(swap(1,2))

R=ken
OCL=24474
CL=24476

16 years agotake advantage of methods on funcs
Russ Cox [Thu, 5 Feb 2009 23:09:08 +0000 (15:09 -0800)]
take advantage of methods on funcs

R=r
DELTA=14  (0 added, 13 deleted, 1 changed)
OCL=24458
CL=24470