- 29 Aug, 2011 25 commits
-
-
Brad Fitzpatrick authored
Since JavaScript doesn't have [u]int64 types, some JSON APIs encode such types as strings to avoid losing precision. This adds a new struct tag option ",string" to cause fields to be wrapped in JSON strings on encoding and unwrapped from strings when decoding. R=rsc, gustavo CC=golang-dev https://golang.org/cl/4918051
-
Jaroslavas Počepko authored
R=rsc CC=alex.brainman, golang-dev, vcc.163 https://golang.org/cl/4965050
-
Mateusz Czapliński authored
Fixes #979. R=rsc, alex.brainman CC=golang-dev, vcc.163 https://golang.org/cl/4894051
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4967043
-
Mike Rosset authored
This should allow symlinks in tar files. Where previously as far as I can see they were skipped completely. R=golang-dev, dsymonds, rsc, bradfitz, bradfitz CC=golang-dev, mike.rosset https://golang.org/cl/4973044
-
Brad Fitzpatrick authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4963047
-
Joel Sing authored
Missed in previous change (4951043). R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4967044
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/4978042
-
Mikio Hara authored
This CL changes the internal form of IPMask for IPv4 from 16-byte to 4-byte, also adds Size method to IPMask struct and changes output string format of IPMask.String method. R=rsc CC=golang-dev https://golang.org/cl/4950046
-
Gustavo Niemeyer authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4962042
-
Joel Sing authored
Add openbsd 386 runtime support, partially based on the existing freebsd 386 runtime. This requires change 4973043. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4951043
-
Yuval Pavel Zholkover authored
8l: fix handling CALL $(constant) code generated by 8a. 8a,8l: add indirect call instruction: CALL *data(SB). R=rsc, iant CC=golang-dev https://golang.org/cl/4817054
-
Joel Sing authored
Add openbsd 386 syscall support, partially based on the existing freebsd 386 syscall implementation. FTR zerrors_openbsd_386.go cannot currently be completely built on openbsd/i386 due to what appears to be a gcc bug. The constants can be successfully generated with -m32 on openbsd/amd64 and the error table can then be generated on openbsd/i386. R=rsc CC=golang-dev https://golang.org/cl/4969045
-
Joel Sing authored
- Rename sys_sched_yield() to osyield() as this is now defined in asm.h. - Only print kern.rtheads message if rfork_thread() failed with ENOTSUP. - Remove unused variables. R=rsc CC=golang-dev https://golang.org/cl/4973043
-
Fazlul Shahriar authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4966045
-
Lucio De Re authored
gc/bits.c . improved format with associated cast; gc/closure.c gc/dcl.c gc/range.c gc/reflect.c gc/sinit.c . dropped unnecessary assignments; gc/gen.c . dropped unnecessary assignment; . added static qualifier to local function definition; gc/go.h . added varargck pragmas; gc/lex.c . used {} instead of ; in if statement to suppress warning; . replaced exit(0) with exits(0); . added compilation conditions for SIGBUS/SIGSEGV; . dropped unnecessary assignment; gc/mparith2.c . dropped four unnecessary assignments/initialisations; gc/obj.c . added type cast to local pointer; gc/pgen.c . added cast and related print format; gc/subr.c . replaced exit(1) with exits("error"); . replaced unlink() with remove(); . renamed local cistrmp() as ucistrmp() to remove conflict with Plan 9 function by the same name; gc/swt.c . added braces instead of ; as empty statment; gc/typecheck.c . added static qualifier to local function definition; . dropped unnecessary assignments; gc/walk.c . dropped unnecessary assignments; . added static qualifier to local function definitions; R=rsc CC=golang-dev https://golang.org/cl/4964046
-
Lucio De Re authored
src/cmd/6g/cgen.c src/cmd/6g/gobj.c src/cmd/6g/reg.c . dropped unused assignments; src/cmd/6g/gg.h . added varargck pragmas; src/cmd/6g/list.c . adjusted print format for ulong casts; src/cmd/6g/peep.c . dropped redundant increment; R=golang-dev CC=golang-dev, rsc https://golang.org/cl/4953049
-
Lucio De Re authored
5g/cgen.c: . USED(n4) as it is only mentioned in unreachable code later; . dropped unused assignments; . commented out unreachable code; 5g/cgen64.c: 5g/ggen.c: . dropped unused assignments of function return value; 5g/gg.h: . added varargck pragmas; 5g/peep.c: . USED(p1) used only in unreacheable code; . commented out unreachable code; 5g/reg.c: . dropped unused assignment; R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4953048
-
Russ Cox authored
R=adg CC=golang-dev https://golang.org/cl/4971043
-
Hector Chu authored
In amd64 it is the caller who cleans the stack. R=alex.brainman, vcc.163, jp CC=golang-dev https://golang.org/cl/4966046
-
Hector Chu authored
R=alex.brainman, golang-dev CC=golang-dev https://golang.org/cl/4968048
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4951046
-
Russ Cox authored
Escape analysis was incorrectly assuming that functions without bodies don't leak their parameters. This meant that sync/atomic's TestAddInt64 was allocating x on its stack, and then x was not properly aligned for use with the atomic 64-bit instructions. Obviously we should figure out the alignment story on 5g too, but this fix is correct and should restore the build to 'ok'. TBR=lvd CC=golang-dev https://golang.org/cl/4964047
-
Russ Cox authored
Also standardize on 'utf8' as encoding name. Apparently either is acceptable. The user, because it is a StringProperty, must be of type unicode in order to handle Unicode correctly. It must *not* have type string. The desc, because it is a BlobProperty, must be of type string in order to handle Unicode correctly. It must *not* have type unicode. Yay encoding type pedantry without static typing. R=adg, mattn.jp CC=golang-dev https://golang.org/cl/4973045
-
Jaroslavas Počepko authored
cdecl calbacks have been implemented in C/ASM code, just Go function is missing R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/4969047
-
- 28 Aug, 2011 1 commit
-
-
Russ Cox authored
-s now means *disable* escape analysis. Fix escape leaks for struct/slice/map literals. Add ... tracking. Rewrite new(T) and slice literal into stack allocation when safe. Add annotations to reflect. Reflect is too chummy with the compiler, so changes like these affect it more than they should. R=lvd, dave, gustavo CC=golang-dev https://golang.org/cl/4954043
-
- 27 Aug, 2011 1 commit
-
-
Alex Brainman authored
R=rsc CC=golang-dev, jp, vcc.163 https://golang.org/cl/4926042
-
- 26 Aug, 2011 13 commits
-
-
Jaroslavas Počepko authored
R=golang-dev CC=golang-dev, rsc https://golang.org/cl/4950050
-
Lucio De Re authored
8g/cgen.c: 8g/gobj.c . dropped unnecessary assignments; 8g/gg.h . added varargckk pragmas; 8g/ggen.c . dropped duplicate assignment; 8g/gsubr.c . adjusted format in print statement; . dropped unnecessary assignment; . replaced GCC's _builtin_return_address(0) with Plan 9's getcallerpc(&n) which is defined as a macro in <u.h>; 8g/list.c . adjusted format in snprint statement; 8g/opt.h . added varargck pragma (Adr*) that is specific for the invoking modules; 8g/peep.c . dropped unnecessary incrementation; R=rsc CC=golang-dev https://golang.org/cl/4974044
-
Jaroslavas Počepko authored
R=rsc CC=golang-dev, vcc.163 https://golang.org/cl/4963044
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4966044
-
Russ Cox authored
The fix is to add ' ' after ';' so that we match what we used to generate. Packages like http look for the string with the space in it, and I don't see a reason to be so terse. Also s/buffer/b/ TBR=bradfitz CC=golang-dev https://golang.org/cl/4959044
-
Hector Chu authored
TeeReader is a Reader that writes what it reads. R=rsc, bradfitz CC=golang-dev https://golang.org/cl/4953041
-
Pascal S. de Kloe authored
Enforce + document the UTF-8 default. R=rsc, bradfitz, adg CC=golang-dev https://golang.org/cl/4627049
-
Pascal S. de Kloe authored
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4654069
-
Wei Guangjing authored
R=rsc CC=golang-dev https://golang.org/cl/4826041
-
Joel Sing authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4972043
-
Albert Strasheim authored
R=mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/4954047
-
Joel Sing authored
Doing a socket/listen on an unspecified address with an unspecified address family is likely to result in an AF_INET6 socket on an IPv6 capable system, which under OpenBSD means IPv6 only - not IPv4 *and* IPv6. In this case trying to connect to this socket from an IPv4 loopback address is not going to end well. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4807057
-
Russ Cox authored
Factor out sleep interrupt. Fixes #1109. R=alex.brainman, go.peter.90, mattn.jp CC=golang-dev https://golang.org/cl/4968041
-