]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years ago- fix regexp once more in doc.go:
Robert Griesemer [Fri, 22 May 2009 19:40:56 +0000 (12:40 -0700)]
- fix regexp once more in doc.go:
  comment markers must only be stripped if they are
  at the very beginning otherwise comments that contain
  code with comments get screwed up (the ast delivers clean
  comments with no junk before or after)

- fix indentation in google/net/rpc/rpc.go which screwed up
  godoc formatting

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

15 years agokey:value notation for composites
Robert Griesemer [Fri, 22 May 2009 17:25:06 +0000 (10:25 -0700)]
key:value notation for composites

R=rsc
DELTA=106  (69 added, 9 deleted, 28 changed)
OCL=29203
CL=29254

15 years agoshow subdirectories if present in a package dir
Robert Griesemer [Fri, 22 May 2009 17:24:28 +0000 (10:24 -0700)]
show subdirectories if present in a package dir

R=rsc
DELTA=184  (69 added, 73 deleted, 42 changed)
OCL=29178
CL=29253

15 years agoanother interface conversion test
Russ Cox [Fri, 22 May 2009 16:53:37 +0000 (09:53 -0700)]
another interface conversion test

R=r
DELTA=21  (21 added, 0 deleted, 0 changed)
OCL=29212
CL=29249

15 years agochannel direction tests
Russ Cox [Fri, 22 May 2009 16:53:25 +0000 (09:53 -0700)]
channel direction tests
(will submit with compiler fixes).

R=r
DELTA=44  (44 added, 0 deleted, 0 changed)
OCL=29211
CL=29248

15 years agofix regexp to strip comment markers
Robert Griesemer [Fri, 22 May 2009 03:29:22 +0000 (20:29 -0700)]
fix regexp to strip comment markers

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

15 years agoadjustments for relaxed composite literal syntax
Robert Griesemer [Fri, 22 May 2009 02:50:25 +0000 (19:50 -0700)]
adjustments for relaxed composite literal syntax

R=r
DELTA=41  (0 added, 21 deleted, 20 changed)
OCL=29219
CL=29219

15 years agoenforce channel direction
Russ Cox [Fri, 22 May 2009 00:32:44 +0000 (17:32 -0700)]
enforce channel direction

R=ken
OCL=29209
CL=29216

15 years agochannel direction fixes
Russ Cox [Fri, 22 May 2009 00:31:13 +0000 (17:31 -0700)]
channel direction fixes

R=dsymonds
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=29210
CL=29215

15 years agoallow type name as key to accomodate anonymous fields.
Russ Cox [Thu, 21 May 2009 23:31:10 +0000 (16:31 -0700)]
allow type name as key to accomodate anonymous fields.
update tests.

R=ken
OCL=29207
CL=29207

15 years agosome array init bugs
Ken Thompson [Thu, 21 May 2009 22:44:06 +0000 (15:44 -0700)]
some array init bugs
renamed 6g/(gen|align|obj).c

R=r
OCL=29205
CL=29205

15 years agotests for new initializer syntax
Russ Cox [Thu, 21 May 2009 21:46:13 +0000 (14:46 -0700)]
tests for new initializer syntax

R=r
DELTA=79  (79 added, 0 deleted, 0 changed)
OCL=29196
CL=29202

15 years agorelated reflect bug: make copies of big values
Russ Cox [Thu, 21 May 2009 21:06:43 +0000 (14:06 -0700)]
related reflect bug: make copies of big values
so that callers cannot edit large values inside interfaces.

R=r
DELTA=52  (42 added, 1 deleted, 9 changed)
OCL=29180
CL=29195

15 years agostricter rules for assignment.
Russ Cox [Thu, 21 May 2009 21:06:24 +0000 (14:06 -0700)]
stricter rules for assignment.
when assigning a multifield object
(structs or arrays of structs) they
must not contain any fields that could
not be assigned individually.

R=ken
OCL=29192
CL=29194

15 years agoadd test for yesterday's interface rule change (interface/convert1.go).
Russ Cox [Thu, 21 May 2009 20:46:20 +0000 (13:46 -0700)]
add test for yesterday's interface rule change (interface/convert1.go).
move interface tests to subdirectory.

R=r
DELTA=1632  (827 added, 804 deleted, 1 changed)
OCL=29181
CL=29191

15 years agoadded key:val extension to
Ken Thompson [Thu, 21 May 2009 20:46:07 +0000 (13:46 -0700)]
added key:val extension to
structure and array literals

R=r
OCL=29190
CL=29190

15 years agoI guess I forgot there was a unary ^ operator.
Russ Cox [Thu, 21 May 2009 18:52:20 +0000 (11:52 -0700)]
I guess I forgot there was a unary ^ operator.

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

15 years agodirect all interface extraction to InterfaceValue.Get.
Russ Cox [Thu, 21 May 2009 18:50:20 +0000 (11:50 -0700)]
direct all interface extraction to InterfaceValue.Get.
delete unnecessary reflect. throughout

R=r
DELTA=124  (18 added, 0 deleted, 106 changed)
OCL=29173
CL=29175

15 years agofix build again; this time for sure.
Russ Cox [Thu, 21 May 2009 13:54:00 +0000 (06:54 -0700)]
fix build again; this time for sure.
(this time i ran g4 nothave)

TBR=r
OCL=29156
CL=29156

15 years agomissed Makefile before; fix build
Russ Cox [Thu, 21 May 2009 13:49:56 +0000 (06:49 -0700)]
missed Makefile before; fix build

TBR=dsymonds
OCL=29155
CL=29155

15 years agostricter interface conversion rule: i.(T)
Russ Cox [Thu, 21 May 2009 01:23:19 +0000 (18:23 -0700)]
stricter interface conversion rule: i.(T)
must have non-nil i.

R=ken
OCL=29136
CL=29136

15 years agohash reorg.
Russ Cox [Thu, 21 May 2009 01:16:38 +0000 (18:16 -0700)]
hash reorg.
* new package hash defining interfaces Hash and Hash32.
* adler32 and crc32 return Hash32 instead of specific types.
* adler32 and crc32 provide non-allocating methods for single slices.
* sha1 and md5 move to crypto, return Hash.
* sum.go, a simple test program, moves to /usr/rsc.
* refresh Make.deps

R=r
DELTA=1908  (935 added, 923 deleted, 50 changed)
OCL=29095
CL=29135

15 years agonew, stricter interface rule:
Russ Cox [Thu, 21 May 2009 01:16:04 +0000 (18:16 -0700)]
new, stricter interface rule:
in x.(T) x cannot be a nil (uninitialized) interface variable.

remove TODO per discussion.

DELTA=3  (1 added, 1 deleted, 1 changed)
OCL=29123
CL=29134

15 years agosemi-weekly snapshot:
Robert Griesemer [Thu, 21 May 2009 00:09:59 +0000 (17:09 -0700)]
semi-weekly snapshot:
- format.go implementation complete
- lots of documentation added (not quite complete)

TBR=r
OCL=29130
CL=29130

15 years agoxcode config files, self-describing
Robert Griesemer [Wed, 20 May 2009 23:09:34 +0000 (16:09 -0700)]
xcode config files, self-describing

R=r
DELTA=250  (250 added, 0 deleted, 0 changed)
OCL=29120
CL=29127

15 years agoreflect bug: NewZeroValue was refusing to create slices.
Russ Cox [Wed, 20 May 2009 22:42:14 +0000 (15:42 -0700)]
reflect bug: NewZeroValue was refusing to create slices.
as far as I can tell there's no reason not to.

the Nillable test was succeeding because NewZeroValue
returned the nil interface value and the type guard
was letting it through.  the only change in the test is
more detail in the print.

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

15 years agoifaceop was being called with integers
Russ Cox [Wed, 20 May 2009 22:09:50 +0000 (15:09 -0700)]
ifaceop was being called with integers
that came from two different enums.
spilt into ifacecvt and ifaceop depending
on which enum the argument is.

R=ken
OCL=29122
CL=29122

15 years agochange representation of interface values.
Russ Cox [Wed, 20 May 2009 21:57:55 +0000 (14:57 -0700)]
change representation of interface values.

this is not a user-visible change.

before, all interface values were

struct Itype {
Sigt *type;
Sigi *inter;
void *method[n];
}

struct Iface {
void *addr;
Itype *itype;
}

the itype is basically a vtable, but it's unnecessary
if the static type is interface{ }.
for interface values with static type empty, the
new representation is

struct Eface {
void *addr;
Sigt *type;
}

this complicates the code somewhat, but
it reduces the number of Itypes that
have to be computed and cached,
it opens up opportunities to avoid function
calls in a few common cases,
and it will make it possible to lay out
interface{} values at compile time,
which i think i'll need for the new reflection.

R=ken
OCL=28701
CL=29121

15 years agofix implicit star for range on *map, *[].
Russ Cox [Wed, 20 May 2009 21:24:23 +0000 (14:24 -0700)]
fix implicit star for range on *map, *[].
do not update lineno from ONAME nodes,
because they have declaration lineno not use.
show actual name in top-level statement error.

before
runtime.a:7: x.go:5: walkstate: NAME not a top level statement

after
x.go:14: walkstate: runtime.Goexit not a top level statement

R=ken
OCL=29113
CL=29116

15 years agoclear out pkg tree in clean.bash.
Russ Cox [Wed, 20 May 2009 18:12:05 +0000 (11:12 -0700)]
clear out pkg tree in clean.bash.
rename place-holder to _place_holder_ so it can be avoided.

R=r
DELTA=5  (2 added, 2 deleted, 1 changed)
OCL=29093
CL=29097

15 years agoremoved TODO
Robert Griesemer [Wed, 20 May 2009 18:10:18 +0000 (11:10 -0700)]
removed TODO
(new rules on type compatibility cover this already)

DELTA=2  (0 added, 2 deleted, 0 changed)
OCL=29094
CL=29096

15 years agonew method set rules
Robert Griesemer [Wed, 20 May 2009 18:02:48 +0000 (11:02 -0700)]
new method set rules

DELTA=63  (27 added, 6 deleted, 30 changed)
OCL=29065
CL=29091

15 years agomore useful error string
Robert Griesemer [Wed, 20 May 2009 18:02:12 +0000 (11:02 -0700)]
more useful error string

R=r
DELTA=5  (4 added, 0 deleted, 1 changed)
OCL=29088
CL=29090

15 years agobuild crypto/block.
Russ Cox [Tue, 19 May 2009 22:42:00 +0000 (15:42 -0700)]
build crypto/block.
deps.bash tweak.

R=r
DELTA=95  (95 added, 0 deleted, 0 changed)
OCL=29046
CL=29059

15 years agofinal AES: CMAC authentication and EAX authenticated encryption
Russ Cox [Tue, 19 May 2009 22:41:37 +0000 (15:41 -0700)]
final AES: CMAC authentication and EAX authenticated encryption

R=r
DELTA=791  (779 added, 0 deleted, 12 changed)
OCL=29045
CL=29058

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 19 May 2009 22:23:43 +0000 (15:23 -0700)]
Match gccgo error messages.

bug117.go:13:12: error: reference to undefined field or method

import1.go:9:2: error: redefinition of '.main.bufio'
import1.go:8:2: note: previous definition of '.main.bufio' was here
import1.go:9:2: error: incompatible imported type 'bufio.Error'

interface9.go:25:5: error: incompatible types in assignment (method P requires a pointer)
interface9.go:30:5: error: incompatible types in assignment (method P requires a pointer)

R=rsc
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=29044
CL=29055

15 years agodeps.bash tweak - no need to sort -u the $O files.
Russ Cox [Tue, 19 May 2009 22:22:42 +0000 (15:22 -0700)]
deps.bash tweak - no need to sort -u the $O files.

R=dsymonds
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=29048
CL=29053

15 years agoXor-based crypto modes: OFB and CTR stream encryption.
Russ Cox [Tue, 19 May 2009 21:58:49 +0000 (14:58 -0700)]
Xor-based crypto modes: OFB and CTR stream encryption.

R=r
DELTA=643  (643 added, 0 deleted, 0 changed)
OCL=29017
CL=29047

15 years agoCrypto modes: CBC, CFB, ECB.
Russ Cox [Tue, 19 May 2009 21:01:03 +0000 (14:01 -0700)]
Crypto modes: CBC, CFB, ECB.
Not ready to link into build yet.

Delta says 1272 lines but only 474
if you subtract the test files,
which are mostly data.

R=r
DELTA=1252  (1249 added, 0 deleted, 3 changed)
OCL=29013
CL=29037

15 years agostatic initialization of strings
Ken Thompson [Tue, 19 May 2009 20:37:36 +0000 (13:37 -0700)]
static initialization of strings

R=r
OCL=29036
CL=29036

15 years agotesting: add t.Failed() bool
Russ Cox [Tue, 19 May 2009 18:00:55 +0000 (11:00 -0700)]
testing: add t.Failed() bool

R=r
DELTA=18  (10 added, 4 deleted, 4 changed)
OCL=29000
CL=29034

15 years agostatic initialization of slices
Ken Thompson [Tue, 19 May 2009 05:11:22 +0000 (22:11 -0700)]
static initialization of slices

R=r
OCL=29016
CL=29016

15 years agoCreate dependencies automatically for top-level lib directory.
David Symonds [Tue, 19 May 2009 01:42:47 +0000 (18:42 -0700)]
Create dependencies automatically for top-level lib directory.

It caught a few missing dependencies (bufio/fmt -> utf8, fmt -> os, http -> strconv, etc.).

R=r,rsc
APPROVED=r
DELTA=126  (79 added, 45 deleted, 2 changed)
OCL=28983
CL=29014

15 years agofix typo
Robert Griesemer [Mon, 18 May 2009 23:48:38 +0000 (16:48 -0700)]
fix typo

TBR=rsc
OCL=29010
CL=29010

15 years ago- make godoc restart feature work properly
Robert Griesemer [Mon, 18 May 2009 23:26:34 +0000 (16:26 -0700)]
- make godoc restart feature work properly

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

15 years agotweaks to exvar.Map
Brendan O'Dea [Mon, 18 May 2009 22:42:09 +0000 (15:42 -0700)]
tweaks to exvar.Map

R=dsymonds,rsc
APPROVED=rsc
DELTA=88  (53 added, 17 deleted, 18 changed)
OCL=28452
CL=29008

15 years agoPublic AES block interface.
Russ Cox [Mon, 18 May 2009 22:27:20 +0000 (15:27 -0700)]
Public AES block interface.
The higher-level stream modes will be in crypto/block.

R=r
DELTA=205  (136 added, 7 deleted, 62 changed)
OCL=29002
CL=29006

15 years ago- changed parser to return os.Error, removed ErrorHandler
Robert Griesemer [Mon, 18 May 2009 21:59:16 +0000 (14:59 -0700)]
- changed parser to return os.Error, removed ErrorHandler
- added IsValid predicate to token.Position
- updated pretty, godoc, gobuild
- updated/expanded test cases

R=rsc
DELTA=265  (97 added, 78 deleted, 90 changed)
OCL=28961
CL=29005

15 years agoGetgroups max on Linux is bigger than I thought.
Russ Cox [Mon, 18 May 2009 21:56:25 +0000 (14:56 -0700)]
Getgroups max on Linux is bigger than I thought.

R=iant
DELTA=3  (2 added, 0 deleted, 1 changed)
OCL=28994
CL=29003

15 years agoadd io.ByteReader.
Russ Cox [Mon, 18 May 2009 20:31:56 +0000 (13:31 -0700)]
add io.ByteReader.
add testing/iotest package.
make bufio return error on short write.

R=r
DELTA=423  (208 added, 154 deleted, 61 changed)
OCL=28997
CL=28999

15 years agorewrote initialization to save space.
Ken Thompson [Mon, 18 May 2009 19:11:46 +0000 (12:11 -0700)]
rewrote initialization to save space.
fixed bug in seeding. top 11 bits were
not changed by different seeds.

R=r
OCL=28998
CL=28998

15 years agomove ShortWrite error into io so that other packages can use it.
Russ Cox [Mon, 18 May 2009 18:47:35 +0000 (11:47 -0700)]
move ShortWrite error into io so that other packages can use it.

R=r
DELTA=15  (7 added, 1 deleted, 7 changed)
OCL=28996
CL=28996

15 years agoadd Getwd, Fchdir, tests
Russ Cox [Mon, 18 May 2009 17:49:34 +0000 (10:49 -0700)]
add Getwd, Fchdir, tests

R=r
DELTA=215  (186 added, 0 deleted, 29 changed)
OCL=28968
CL=28995

15 years agostatic initialization with DATA statements
Ken Thompson [Mon, 18 May 2009 02:16:16 +0000 (19:16 -0700)]
static initialization with DATA statements
structs and arrays are done
slices and maps are yet to do

R=r
OCL=28977
CL=28977

15 years agoDon't bother to import "os" just so that we can call
Ian Lance Taylor [Sun, 17 May 2009 06:12:28 +0000 (23:12 -0700)]
Don't bother to import "os" just so that we can call
os.Exit(0) at the end of main.

R=rsc
DELTA=6  (0 added, 6 deleted, 0 changed)
OCL=28967
CL=28969

15 years agostatic initialization
Ken Thompson [Sat, 16 May 2009 20:29:08 +0000 (13:29 -0700)]
static initialization
structure set up - no change yet

R=r
OCL=28966
CL=28966

15 years agomake Len() == 0 for nil vector.Vector
Robert Griesemer [Sat, 16 May 2009 04:59:08 +0000 (21:59 -0700)]
make Len() == 0 for nil vector.Vector
(mimic behavior of slices)

R=r
DELTA=12  (12 added, 0 deleted, 0 changed)
OCL=28960
CL=28962

15 years agoget rid of unused files in my home dir
Robert Griesemer [Sat, 16 May 2009 02:15:45 +0000 (19:15 -0700)]
get rid of unused files in my home dir

TBR=r
DELTA=9270  (0 added, 9270 deleted, 0 changed)
OCL=28958
CL=28958

15 years agodon't require ()'s around composite literals if the
Robert Griesemer [Sat, 16 May 2009 01:59:09 +0000 (18:59 -0700)]
don't require ()'s around composite literals if the
literal type is not a type name

R=rsc
DELTA=41  (2 added, 7 deleted, 32 changed)
OCL=28955
CL=28957

15 years agoweekly snapshot:
Robert Griesemer [Sat, 16 May 2009 01:52:59 +0000 (18:52 -0700)]
weekly snapshot:
format.go:
- better error handling, indentation, support for defaults,
  environments for custom formatters, cleanups (more functionality, less code)

pretty.go:
- better comment printing using format.go

made test script more robust

TBR=r
DELTA=622  (175 added, 305 deleted, 142 changed)
OCL=28956
CL=28956

15 years agofix handling of line numbers for first function
Russ Cox [Sat, 16 May 2009 00:26:08 +0000 (17:26 -0700)]
fix handling of line numbers for first function

R=r
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=28949
CL=28951

15 years agos/NewLogger/New/
Rob Pike [Sat, 16 May 2009 00:22:30 +0000 (17:22 -0700)]
s/NewLogger/New/

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

15 years agoclose TODO
Russ Cox [Fri, 15 May 2009 22:51:41 +0000 (15:51 -0700)]
close TODO

R=r
DELTA=42  (0 added, 26 deleted, 16 changed)
OCL=28940
CL=28942

15 years agorestart functionality
Robert Griesemer [Fri, 15 May 2009 22:45:35 +0000 (15:45 -0700)]
restart functionality

R=rsc
DELTA=21  (19 added, 0 deleted, 2 changed)
OCL=28938
CL=28941

15 years agoimplement %#o %#x %#X formats
Rob Pike [Fri, 15 May 2009 22:18:09 +0000 (15:18 -0700)]
implement %#o %#x %#X formats

R=rsc
OCL=28936
CL=28936

15 years agoos: MkdirAll, RemoveAll, Chmod, Chown, Truncate, Getgroups.
Russ Cox [Fri, 15 May 2009 21:11:24 +0000 (14:11 -0700)]
os: MkdirAll, RemoveAll, Chmod, Chown, Truncate, Getgroups.

Getuid, etc drop their errors -- they cannot error

R=r
DELTA=605  (547 added, 12 deleted, 46 changed)
OCL=28919
CL=28929

15 years agobug152: literal []slice{ } as range expression
Russ Cox [Fri, 15 May 2009 20:17:07 +0000 (13:17 -0700)]
bug152: literal []slice{ } as range expression

R=ken
OCL=28918
CL=28918

15 years agoStringVector specialization of Vector
Rob Pike [Fri, 15 May 2009 18:52:58 +0000 (11:52 -0700)]
StringVector specialization of Vector

R=gri,rsc
DELTA=197  (194 added, 0 deleted, 3 changed)
OCL=28900
CL=28911

15 years agomake Stat indicate whether it followed a symlink.
Russ Cox [Fri, 15 May 2009 18:04:49 +0000 (11:04 -0700)]
make Stat indicate whether it followed a symlink.

R=r
DELTA=61  (34 added, 0 deleted, 27 changed)
OCL=28904
CL=28906

15 years agoReturn error from WriteByte, to match bufio.Writer.
Russ Cox [Fri, 15 May 2009 17:46:14 +0000 (10:46 -0700)]
Return error from WriteByte, to match bufio.Writer.

R=gri
DELTA=4  (1 added, 0 deleted, 3 changed)
OCL=28868
CL=28899

15 years ago- Remove IntVector methods that are "inherited" with correct type
Robert Griesemer [Fri, 15 May 2009 17:43:00 +0000 (10:43 -0700)]
- Remove IntVector methods that are "inherited" with correct type
- Faster vector.Delete, removed result value (easy to get via At(i))

R=r
DELTA=40  (6 added, 30 deleted, 4 changed)
OCL=28866
CL=28897

15 years agoadd directory argument to os.ForkExec
Russ Cox [Fri, 15 May 2009 17:32:05 +0000 (10:32 -0700)]
add directory argument to os.ForkExec

R=iant
DELTA=41  (35 added, 0 deleted, 6 changed)
OCL=28892
CL=28895

15 years agoAES key setup and block ciphers.
Russ Cox [Fri, 15 May 2009 00:11:11 +0000 (17:11 -0700)]
AES key setup and block ciphers.
AES mode wrappers not implemented, so no public interface yet.

R=r
DELTA=918  (918 added, 0 deleted, 0 changed)
OCL=28848
CL=28863

15 years agoByteBuffer.WriteByte
Robert Griesemer [Fri, 15 May 2009 00:03:47 +0000 (17:03 -0700)]
ByteBuffer.WriteByte

R=r
DELTA=17  (10 added, 0 deleted, 7 changed)
OCL=28860
CL=28862

15 years agoGetuid etc.
Rob Pike [Thu, 14 May 2009 23:45:24 +0000 (16:45 -0700)]
Getuid etc.

R=rsc
DELTA=51  (49 added, 0 deleted, 2 changed)
OCL=28859
CL=28859

15 years agoHyphens are allowed in filenames. This allows this test to pass for me.
David Symonds [Thu, 14 May 2009 22:42:27 +0000 (15:42 -0700)]
Hyphens are allowed in filenames. This allows this test to pass for me.

R=r
APPROVED=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=28847
CL=28851

15 years agofix abstract unix domain sockets
Rob Pike [Thu, 14 May 2009 22:20:30 +0000 (15:20 -0700)]
fix abstract unix domain sockets

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

15 years agogodoc fix: relative paths were incorrect
Robert Griesemer [Thu, 14 May 2009 21:59:51 +0000 (14:59 -0700)]
godoc fix: relative paths were incorrect

R=r
DELTA=13  (1 added, 6 deleted, 6 changed)
OCL=28840
CL=28844

15 years agofix Truncate comment:
Russ Cox [Thu, 14 May 2009 20:39:17 +0000 (13:39 -0700)]
fix Truncate comment:
* make a complete sentence.
* eliminate reference to byte positions,
  which are not a concept exposed by the interface.

R=gri
DELTA=2  (0 added, 1 deleted, 1 changed)
OCL=28838
CL=28838

15 years agoByteBuffer.Truncate(n int)
Robert Griesemer [Thu, 14 May 2009 17:14:29 +0000 (10:14 -0700)]
ByteBuffer.Truncate(n int)

R=r
DELTA=22  (17 added, 0 deleted, 5 changed)
OCL=28781
CL=28815

15 years agofix spelling error in message
Rob Pike [Thu, 14 May 2009 16:59:16 +0000 (09:59 -0700)]
fix spelling error in message

R=ken
OCL=28814
CL=28814

15 years agoA comparison of two values with a type equivalent to string
Ian Lance Taylor [Thu, 14 May 2009 13:25:40 +0000 (06:25 -0700)]
A comparison of two values with a type equivalent to string
gives an type mismatch error, although both values appear to
have the same type.

R=ken,rsc
DELTA=23  (23 added, 0 deleted, 0 changed)
OCL=28786
CL=28805

16 years agobug150
Russ Cox [Thu, 14 May 2009 01:05:27 +0000 (18:05 -0700)]
bug150

R=ken
OCL=28785
CL=28785

16 years agoreflect: update comment (there is no BoolType)
Russ Cox [Thu, 14 May 2009 01:03:49 +0000 (18:03 -0700)]
reflect: update comment (there is no BoolType)

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=28756
CL=28784

16 years agoUnix domain socket support, Linux and Darwin.
Russ Cox [Thu, 14 May 2009 01:03:41 +0000 (18:03 -0700)]
Unix domain socket support, Linux and Darwin.

R=r
DELTA=534  (353 added, 99 deleted, 82 changed)
OCL=28783
CL=28783

16 years agoNew type compatibility rules:
Robert Griesemer [Wed, 13 May 2009 23:56:00 +0000 (16:56 -0700)]
New type compatibility rules:
- changed type equality to type compatibility, updated rules
- string literals have ideal string type
- conversion w/ relaxed type compatibilty

DELTA=123  (26 added, 22 deleted, 75 changed)
OCL=28763
CL=28780

16 years agoSimplified AST:
Robert Griesemer [Wed, 13 May 2009 22:18:05 +0000 (15:18 -0700)]
Simplified AST:
- one node for array and slice types
- one node for index and slice expressions
- simplified parser, astprinter, and ast.txt

R=r
DELTA=71  (0 added, 43 deleted, 28 changed)
OCL=28768
CL=28768

16 years agofix indentation
Rob Pike [Wed, 13 May 2009 17:34:11 +0000 (10:34 -0700)]
fix indentation

R=rsc
OCL=28752
CL=28752

16 years agoAdd os.Link, os.Symlink, os.Readlink.
Ian Lance Taylor [Wed, 13 May 2009 17:16:46 +0000 (10:16 -0700)]
Add os.Link, os.Symlink, os.Readlink.

R=r,rsc
DELTA=161  (161 added, 0 deleted, 0 changed)
OCL=28745
CL=28747

16 years agoRename ParseError to Error
Rob Pike [Wed, 13 May 2009 17:01:55 +0000 (10:01 -0700)]
Rename ParseError to Error

R=rsc
DELTA=13  (6 added, 1 deleted, 6 changed)
OCL=28743
CL=28746

16 years agocleanup of unsafe documentation
Robert Griesemer [Wed, 13 May 2009 04:37:46 +0000 (21:37 -0700)]
cleanup of unsafe documentation

R=r
DELTA=19  (4 added, 7 deleted, 8 changed)
OCL=28723
CL=28732

16 years agochange name of reflect.NewInitValue to the more descriptive NewZeroValue.
Rob Pike [Tue, 12 May 2009 23:16:52 +0000 (16:16 -0700)]
change name of reflect.NewInitValue to the more descriptive NewZeroValue.

R=rsc
DELTA=10  (0 added, 0 deleted, 10 changed)
OCL=28717
CL=28720

16 years agono need for compiler to hard-code definition of runtime.
Russ Cox [Tue, 12 May 2009 23:15:52 +0000 (16:15 -0700)]
no need for compiler to hard-code definition of runtime.
use the actual go source instead.

R=r
DELTA=90  (66 added, 18 deleted, 6 changed)
OCL=28708
CL=28719

16 years agodescribe each interface test
Russ Cox [Tue, 12 May 2009 23:09:47 +0000 (16:09 -0700)]
describe each interface test

R=r
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=28707
CL=28716

16 years agoupdate reflect for upcoming interface representation change.
Russ Cox [Tue, 12 May 2009 23:08:16 +0000 (16:08 -0700)]
update reflect for upcoming interface representation change.
test case for new change.

both work with the current compiler too.

R=r
DELTA=150  (145 added, 2 deleted, 3 changed)
OCL=28703
CL=28715

16 years agofix build: proto depends on fmt now
Russ Cox [Tue, 12 May 2009 22:47:55 +0000 (15:47 -0700)]
fix build: proto depends on fmt now

TBR=r,dsymonds
OCL=28711
CL=28711

16 years agoAllow http.Redirect to do both temporary (307) and permanent (301) redirects.
David Symonds [Tue, 12 May 2009 22:41:19 +0000 (15:41 -0700)]
Allow http.Redirect to do both temporary (307) and permanent (301) redirects.
This also adds a missing 'return' when a malformed URL is passed to it.

R=rsc
APPROVED=rsc
DELTA=30  (13 added, 2 deleted, 15 changed)
OCL=28598
CL=28710

16 years agoimplement IsNil() bool for those types that can be nil. most of them, anyway.
Rob Pike [Tue, 12 May 2009 21:57:44 +0000 (14:57 -0700)]
implement IsNil() bool for those types that can be nil.  most of them, anyway.

R=rsc
DELTA=97  (96 added, 0 deleted, 1 changed)
OCL=28596
CL=28702

16 years agoA couple of godoc improvements:
Robert Griesemer [Mon, 11 May 2009 23:52:59 +0000 (16:52 -0700)]
A couple of godoc improvements:
- sort directories before printing
- apply filtering to factory functions and methods
- remove a couple of unused files

R=r
DELTA=84  (34 added, 40 deleted, 10 changed)
OCL=28657
CL=28657

16 years agochange utf8.FullRuneInString and utf8.DecodeRuneInString
Russ Cox [Mon, 11 May 2009 21:10:34 +0000 (14:10 -0700)]
change utf8.FullRuneInString and utf8.DecodeRuneInString
to use single string argument instead of string, index.

R=r
DELTA=136  (9 added, 7 deleted, 120 changed)
OCL=28642
CL=28644