1
0
mirror of https://github.com/golang/go synced 2024-11-19 10:04:56 -07:00

cmd/5g etc: tweak import blocks

Remove blank lines and merge lone imports into blocks.

Change-Id: Ib46dad584456909969f1ba3a2c7f5667abf336ae
Reviewed-on: https://go-review.googlesource.com/6792
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Russ Cox 2015-03-03 22:20:44 -05:00
parent 494e317fbf
commit 5a16d6fc34
35 changed files with 35 additions and 36 deletions

View File

@ -5,11 +5,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
"fmt" "fmt"
) )
import "cmd/internal/gc"
/* /*
* peep.c * peep.c

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
) )
import "cmd/internal/gc"
/* /*
* attempt to generate 64-bit * attempt to generate 64-bit

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
) )
import "cmd/internal/gc"
var thechar int = '5' var thechar int = '5'

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
) )
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) { func defframe(ptxt *obj.Prog) {
var n *gc.Node var n *gc.Node

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
"fmt" "fmt"
) )
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move // TODO(rsc): Can make this bigger if we move
// the text segment up higher in 5l for all GOOS. // the text segment up higher in 5l for all GOOS.

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
"fmt" "fmt"
) )
import "cmd/internal/gc"
var gactive uint32 var gactive uint32

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/arm" "cmd/internal/obj/arm"
) )
import "cmd/internal/gc"
const ( const (
RightRdwr = gc.RightRead | gc.RightWrite RightRdwr = gc.RightRead | gc.RightWrite

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
func needlib(name string) int { func needlib(name string) int {
if name[0] == '\x00' { if name[0] == '\x00' {

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
// Reading object files. // Reading object files.

View File

@ -5,11 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
"fmt" "fmt"
"cmd/internal/gc"
) )
/* /*

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
) )
import "cmd/internal/gc"
var thechar int = '6' var thechar int = '6'

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
) )
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) { func defframe(ptxt *obj.Prog) {
var n *gc.Node var n *gc.Node

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
"fmt" "fmt"
) )
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move // TODO(rsc): Can make this bigger if we move
// the text segment up higher in 6l for all GOOS. // the text segment up higher in 6l for all GOOS.

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
"fmt" "fmt"
) )
import "cmd/internal/gc"
var gactive uint32 var gactive uint32

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
) )
import "cmd/internal/gc"
var ( var (
AX = RtoB(x86.REG_AX) AX = RtoB(x86.REG_AX)

View File

@ -31,10 +31,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/x86" "cmd/internal/obj/x86"
) )
import "cmd/internal/gc"
const ( const (
NREGVAR = 32 NREGVAR = 32

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
func PADDR(x uint32) uint32 { func PADDR(x uint32) uint32 {
return x &^ 0x80000000 return x &^ 0x80000000

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
// Reading object files. // Reading object files.

View File

@ -5,11 +5,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
"fmt" "fmt"
) )
import "cmd/internal/gc"
/* /*
* reg.c * reg.c

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
) )
import "cmd/internal/gc"
/* /*
* attempt to generate 64-bit * attempt to generate 64-bit

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
) )
import "cmd/internal/gc"
var thechar int = '8' var thechar int = '8'

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
) )
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) { func defframe(ptxt *obj.Prog) {
var n *gc.Node var n *gc.Node

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
"fmt" "fmt"
) )
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move // TODO(rsc): Can make this bigger if we move
// the text segment up higher in 8l for all GOOS. // the text segment up higher in 8l for all GOOS.

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
"fmt" "fmt"
) )
import "cmd/internal/gc"
const ( const (
REGEXT = 0 REGEXT = 0

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/i386" "cmd/internal/obj/i386"
) )
import "cmd/internal/gc"
var ( var (
AX = RtoB(i386.REG_AX) AX = RtoB(i386.REG_AX)

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
func needlib(name string) int { func needlib(name string) int {
if name[0] == '\x00' { if name[0] == '\x00' {

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
// Reading object files. // Reading object files.

View File

@ -5,11 +5,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/ppc64" "cmd/internal/obj/ppc64"
"fmt" "fmt"
) )
import "cmd/internal/gc"
/* /*
* peep.c * peep.c

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/ppc64" "cmd/internal/obj/ppc64"
) )
import "cmd/internal/gc"
var thechar int = '9' var thechar int = '9'

View File

@ -5,11 +5,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/ppc64" "cmd/internal/obj/ppc64"
"fmt" "fmt"
) )
import "cmd/internal/gc"
func defframe(ptxt *obj.Prog) { func defframe(ptxt *obj.Prog) {
var n *gc.Node var n *gc.Node

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/ppc64" "cmd/internal/obj/ppc64"
"fmt" "fmt"
) )
import "cmd/internal/gc"
// TODO(rsc): Can make this bigger if we move // TODO(rsc): Can make this bigger if we move
// the text segment up higher in 6l for all GOOS. // the text segment up higher in 6l for all GOOS.

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/ppc64" "cmd/internal/obj/ppc64"
"fmt" "fmt"
) )
import "cmd/internal/gc"
var gactive uint32 var gactive uint32

View File

@ -5,10 +5,10 @@
package main package main
import ( import (
"cmd/internal/gc"
"cmd/internal/obj" "cmd/internal/obj"
"cmd/internal/obj/ppc64" "cmd/internal/obj/ppc64"
) )
import "cmd/internal/gc"
const ( const (
LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite

View File

@ -31,12 +31,12 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
func needlib(name string) int { func needlib(name string) int {
if name[0] == '\x00' { if name[0] == '\x00' {

View File

@ -31,11 +31,11 @@
package main package main
import ( import (
"cmd/internal/ld"
"cmd/internal/obj" "cmd/internal/obj"
"fmt" "fmt"
"log" "log"
) )
import "cmd/internal/ld"
// Reading object files. // Reading object files.