From 90564a92565877d19e456694ac4e2ef205720432 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 14 Jul 2011 14:39:40 -0700 Subject: go/printer: changed max. number of newlines from 3 to 2 manual changes in src/pkg/go/printer, src/cmd/gofix/signal_test.go (cd src/cmd/gofix/testdata; gofmt -w *.in *.out) (cd src/pkg/go/printer; gotest -update) gofmt -w misc src runs all tests R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4715041 --- src/pkg/debug/dwarf/type_test.go | 1 - src/pkg/debug/elf/elf.go | 2 -- src/pkg/debug/pe/file.go | 2 -- 3 files changed, 5 deletions(-) (limited to 'src/pkg/debug') diff --git a/src/pkg/debug/dwarf/type_test.go b/src/pkg/debug/dwarf/type_test.go index e01f7353a4..b9470a4fcb 100644 --- a/src/pkg/debug/dwarf/type_test.go +++ b/src/pkg/debug/dwarf/type_test.go @@ -58,7 +58,6 @@ func machoData(t *testing.T, name string) *Data { return d } - func TestTypedefsELF(t *testing.T) { testTypedefs(t, elfData(t, "testdata/typedef.elf")) } func TestTypedefsMachO(t *testing.T) { diff --git a/src/pkg/debug/elf/elf.go b/src/pkg/debug/elf/elf.go index 5d45b24863..c71b230bd9 100644 --- a/src/pkg/debug/elf/elf.go +++ b/src/pkg/debug/elf/elf.go @@ -1289,7 +1289,6 @@ func (i R_SPARC) GoString() string { return stringName(uint32(i), rsparcStrings, // Magic number for the elf trampoline, chosen wisely to be an immediate value. const ARM_MAGIC_TRAMP_NUMBER = 0x5c000003 - // ELF32 File header. type Header32 struct { Ident [EI_NIDENT]byte /* File identification. */ @@ -1455,7 +1454,6 @@ func R_SYM64(info uint64) uint32 { return uint32(info >> 32) } func R_TYPE64(info uint64) uint32 { return uint32(info) } func R_INFO(sym, typ uint32) uint64 { return uint64(sym)<<32 | uint64(typ) } - // ELF64 symbol table entries. type Sym64 struct { Name uint32 /* String table index of name. */ diff --git a/src/pkg/debug/pe/file.go b/src/pkg/debug/pe/file.go index c934dd4477..d86d916f50 100644 --- a/src/pkg/debug/pe/file.go +++ b/src/pkg/debug/pe/file.go @@ -35,7 +35,6 @@ type SectionHeader struct { Characteristics uint32 } - type Section struct { SectionHeader @@ -69,7 +68,6 @@ func (s *Section) Data() ([]byte, os.Error) { // Open returns a new ReadSeeker reading the PE section. func (s *Section) Open() io.ReadSeeker { return io.NewSectionReader(s.sr, 0, 1<<63-1) } - type FormatError struct { off int64 msg string -- cgit v1.3-5-g9baa