1
0
mirror of https://github.com/golang/go synced 2024-11-26 13:48:05 -07:00

gofmt: apply gofmt -w -s src misc

Preparation for forthcoming CL 6624051: Will make it
easier to see if/what changes are incurred by it.

The alignment changes in this CL are due to CL 6610051
(fix to alignment heuristic) where it appears that an
old version of gofmt was run (and thus the correct
alignment updates were not done).

R=r
CC=golang-dev
https://golang.org/cl/6639044
This commit is contained in:
Robert Griesemer 2012-10-09 17:01:28 -07:00
parent 32316bba5b
commit af79568fde
7 changed files with 4177 additions and 4177 deletions

View File

@ -1758,10 +1758,10 @@ func (b *builder) swigOne(p *Package, file, obj string, cxx bool) (outGo, outObj
// create shared library
osldflags := map[string][]string{
"darwin": []string{"-dynamiclib", "-Wl,-undefined,dynamic_lookup"},
"freebsd": []string{"-shared", "-lpthread", "-lm"},
"linux": []string{"-shared", "-lpthread", "-lm"},
"windows": []string{"-shared", "-lm", "-mthreads"},
"darwin": {"-dynamiclib", "-Wl,-undefined,dynamic_lookup"},
"freebsd": {"-shared", "-lpthread", "-lm"},
"linux": {"-shared", "-lpthread", "-lm"},
"windows": {"-shared", "-lm", "-mthreads"},
}
var cxxlib []string
if cxx {

View File

@ -848,7 +848,7 @@ var gobTests = []Time{
Date(0, 1, 2, 3, 4, 5, 6, UTC),
Date(7, 8, 9, 10, 11, 12, 13, FixedZone("", 0)),
Unix(81985467080890095, 0x76543210), // Time.sec: 0x0123456789ABCDEF
Time{}, // nil location
{}, // nil location
Date(1, 2, 3, 4, 5, 6, 7, FixedZone("", 32767*60)),
Date(1, 2, 3, 4, 5, 6, 7, FixedZone("", -32768*60)),
}