- 02 Jul, 2009 8 commits
-
-
Rob Pike authored
fix a bug in delta encoding: only update the delta-base if something is marshaled. R=rsc DELTA=154 (94 added, 56 deleted, 4 changed) OCL=31069 CL=31071
-
Rob Pike authored
R=rsc DELTA=165 (145 added, 6 deleted, 14 changed) OCL=31051 CL=31056
-
Rob Pike authored
R=gri OCL=31047 CL=31047
-
Rob Pike authored
R=rsc DELTA=562 (8 added, 424 deleted, 130 changed) OCL=31039 CL=31045
-
Rob Pike authored
if there is an error, we will write one more value into the struct but in return we do fewer tests in the decode. R=rsc DELTA=56 (0 added, 42 deleted, 14 changed) OCL=31041 CL=31044
-
Rob Pike authored
write indirection test. next step: cut down scalar tests since indirection is centralized. R=rsc DELTA=114 (83 added, 3 deleted, 28 changed) OCL=31020 CL=31037
-
Rob Pike authored
R=rsc DELTA=574 (40 added, 149 deleted, 385 changed) OCL=31017 CL=31019
-
Rob Pike authored
R=rsc DELTA=468 (292 added, 18 deleted, 158 changed) OCL=31008 CL=31012
-
- 01 Jul, 2009 8 commits
-
-
Russ Cox authored
first field were not being handled correctly because the visited map did not include the type. R=r OCL=31006 CL=31006
-
David Symonds authored
R=rsc APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=30967 CL=30990
-
Russ Cox authored
R=r DELTA=23 (1 added, 12 deleted, 10 changed) OCL=30957 CL=30980
-
Russ Cox authored
input parameters, move output parameters into their own struct. R=ken OCL=30954 CL=30966
-
Russ Cox authored
(because they return values in the input parameters). R=iant DELTA=12 (0 added, 11 deleted, 1 changed) OCL=30952 CL=30965
-
Russ Cox authored
now that cgo2c can handle it, merge x.c and x_go.cgo into a single x.cgo, for x=float,malloc,sema. R=r DELTA=1950 (954 added, 996 deleted, 0 changed) OCL=30951 CL=30964
-
Russ Cox authored
align the output args separately from the input args, change cgo2c to insert the necessary padding when the two arg lists are concatenated in the c translation. for example, there is a runtime func indexstring(s string, i int32) (b byte) right now in 6g those arguments are aligned in one struct with s at offset 0, i at 16, and b at 20. soon the b byte will be in its own struct and structs are 8 aligned, so it will be b at 24. right now cgo2c generates: void indexstring(string s, int32 i, byte b) this CL makes it generate, in --6g mode: void indexstring(string s, int32 i, uint32, byte b) this is valid 6c input, although not valid gcc input. (the code is being generated for 6c only anyway.) also, allow C code to be mixed in among the Go funcs. every instance of the token `func' is expected to start a new go func. R=iant DELTA=145 (118 added, 0 deleted, 27 changed) OCL=30949 CL=30963
-
Rob Pike authored
R=rsc DELTA=897 (728 added, 14 deleted, 155 changed) OCL=30955 CL=30955
-
- 30 Jun, 2009 5 commits
-
-
Rob Pike authored
R=rsc DELTA=172 (40 added, 6 deleted, 126 changed) OCL=30941 CL=30944
-
Rob Pike authored
R=rsc DELTA=610 (597 added, 5 deleted, 8 changed) OCL=30934 CL=30939
-
Russ Cox authored
R=r DELTA=25 (0 added, 15 deleted, 10 changed) OCL=30892 CL=30892
-
Russ Cox authored
R=ken OCL=30889 CL=30889
-
Russ Cox authored
can now forward declare across files R=r DELTA=15 (0 added, 15 deleted, 0 changed) OCL=30873 CL=30880
-
- 29 Jun, 2009 9 commits
-
-
Russ Cox authored
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
-
Rob Pike authored
R=rsc DELTA=185 (175 added, 10 deleted, 0 changed) OCL=30863 CL=30871
-
Russ Cox authored
R=r DELTA=11 (0 added, 6 deleted, 5 changed) OCL=30862 CL=30870
-
Russ Cox authored
(in the same package). allow forward method declaration to be satisfied by implementation in another file (in the same package). all methods must be declared in the same file as the receiver type. R=ken OCL=30864 CL=30869
-
Russ Cox authored
of structs/interfaces in other files in the package. R=r DELTA=12 (0 added, 12 deleted, 0 changed) OCL=30865 CL=30868
-
Russ Cox authored
R=r DELTA=188 (182 added, 3 deleted, 3 changed) OCL=30856 CL=30860
-
Ian Lance Taylor authored
identifiers. This is not one of the exceptions permitted by th spec. R=ken,rsc DELTA=11 (11 added, 0 deleted, 0 changed) OCL=30844 CL=30852
-
Rob Pike authored
R=rsc DELTA=16 (9 added, 1 deleted, 6 changed) OCL=30846 CL=30846
-
Rob Pike authored
R=rsc DELTA=4 (3 added, 0 deleted, 1 changed) OCL=30845 CL=30845
-
- 27 Jun, 2009 3 commits
-
-
Kai Backman authored
- removed smallint optimizations - lifted raddr from 5c - add back %R, was used in gc/* causing -g to crash - changed naddr OREGISTER to emit D_REG instead of D_OREG R=rsc APPROVED=rsc DELTA=74 (38 added, 28 deleted, 8 changed) OCL=30799 CL=30822
-
Rob Pike authored
Getenverror is the new name for the old routine that returns an error too. R=rsc DELTA=35 (7 added, 7 deleted, 21 changed) OCL=30818 CL=30821
-
Rob Pike authored
type Foo struct { a int; next *Foo } produces "Foo = struct { a int; next Foo }" R=rsc OCL=30797 CL=30820
-
- 26 Jun, 2009 7 commits
-
-
Kai Backman authored
combination. R=rsc APPROVED=rsc DELTA=69 (68 added, 0 deleted, 1 changed) OCL=30798 CL=30801
-
Kai Backman authored
R=rsc APPROVED=rsc DELTA=72 (12 added, 52 deleted, 8 changed) OCL=30748 CL=30793
-
Rob Pike authored
not ready to be part of the standard build yet; this is just a checkpoint. R=rsc DELTA=361 (361 added, 0 deleted, 0 changed) OCL=30782 CL=30785
-
David Symonds authored
R=rsc APPROVED=rsc DELTA=95 (40 added, 14 deleted, 41 changed) OCL=30727 CL=30784
-
Russ Cox authored
R=ken OCL=30783 CL=30783
-
Russ Cox authored
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
-
Russ Cox authored
R=ken OCL=30760 CL=30779
-