diff options
Diffstat (limited to 'src/pkg/container')
| -rw-r--r-- | src/pkg/container/list/Makefile | 57 | ||||
| -rwxr-xr-x | src/pkg/container/list/list_test.go | 1 | ||||
| -rw-r--r-- | src/pkg/container/ring/Makefile | 58 | ||||
| -rw-r--r-- | src/pkg/container/ring/ring_test.go | 3 | ||||
| -rw-r--r-- | src/pkg/container/vector/Makefile | 68 | ||||
| -rw-r--r-- | src/pkg/container/vector/intvector.go | 1 | ||||
| -rw-r--r-- | src/pkg/container/vector/stringvector.go | 2 | ||||
| -rw-r--r-- | src/pkg/container/vector/vector_test.go | 1 |
8 files changed, 15 insertions, 176 deletions
diff --git a/src/pkg/container/list/Makefile b/src/pkg/container/list/Makefile index 2a647eb2a3..3ed4d1f6c8 100644 --- a/src/pkg/container/list/Makefile +++ b/src/pkg/container/list/Makefile @@ -2,59 +2,10 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -# DO NOT EDIT. Automatically generated by gobuild. -# gobuild -m >Makefile - -D=/container/ - include $(GOROOT)/src/Make.$(GOARCH) -AR=gopack - -default: packages - -clean: - rm -rf *.[$(OS)] *.a [$(OS)].out _obj - -test: packages - gotest - -coverage: packages - gotest - 6cov -g `pwd` | grep -v '_test\.go:' - -%.$O: %.go - $(GC) -I_obj $*.go - -%.$O: %.c - $(CC) $*.c - -%.$O: %.s - $(AS) $*.s - -O1=\ - list.$O\ - - -phases: a1 -_obj$D/list.a: phases - -a1: $(O1) - $(AR) grc _obj$D/list.a list.$O - rm -f $(O1) - - -newpkg: clean - mkdir -p _obj$D - $(AR) grc _obj$D/list.a - -$(O1): newpkg -$(O2): a1 - -nuke: clean - rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/list.a -packages: _obj$D/list.a +TARG=container/list +GOFILES=\ + list.go\ -install: packages - test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D - cp _obj$D/list.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/list.a +include $(GOROOT)/src/Make.pkg diff --git a/src/pkg/container/list/list_test.go b/src/pkg/container/list/list_test.go index bdfed35788..7b2480f9cb 100755 --- a/src/pkg/container/list/list_test.go +++ b/src/pkg/container/list/list_test.go @@ -5,7 +5,6 @@ package list import ( - "container/list"; "testing"; ) diff --git a/src/pkg/container/ring/Makefile b/src/pkg/container/ring/Makefile index 931f40524f..70046cb54e 100644 --- a/src/pkg/container/ring/Makefile +++ b/src/pkg/container/ring/Makefile @@ -2,60 +2,10 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. - -# DO NOT EDIT. Automatically generated by gobuild. -# gobuild -m >Makefile - -D=/container/ - include $(GOROOT)/src/Make.$(GOARCH) -AR=gopack - -default: packages - -clean: - rm -rf *.[$(OS)] *.a [$(OS)].out _obj - -test: packages - gotest - -coverage: packages - gotest - 6cov -g $$(pwd) | grep -v '_test\.go:' - -%.$O: %.go - $(GC) -I_obj $*.go - -%.$O: %.c - $(CC) $*.c - -%.$O: %.s - $(AS) $*.s - -O1=\ - ring.$O\ - - -phases: a1 -_obj$D/ring.a: phases - -a1: $(O1) - $(AR) grc _obj$D/ring.a ring.$O - rm -f $(O1) - - -newpkg: clean - mkdir -p _obj$D - $(AR) grc _obj$D/ring.a - -$(O1): newpkg -$(O2): a1 - -nuke: clean - rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/ring.a -packages: _obj$D/ring.a +TARG=container/ring +GOFILES=\ + ring.go\ -install: packages - test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D - cp _obj$D/ring.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/ring.a +include $(GOROOT)/src/Make.pkg diff --git a/src/pkg/container/ring/ring_test.go b/src/pkg/container/ring/ring_test.go index c2e9d414cd..8ecbacd14a 100644 --- a/src/pkg/container/ring/ring_test.go +++ b/src/pkg/container/ring/ring_test.go @@ -5,7 +5,6 @@ package ring import ( - "container/ring"; "fmt"; "testing"; ) @@ -90,7 +89,7 @@ func verify(t *testing.T, r *Ring, N int, sum int) { if r.Prev() != r.prev { t.Errorf("r.Prev() != r.prev"); } - + // Move if r.Move(0) != r { t.Errorf("r.Move(0) != r"); diff --git a/src/pkg/container/vector/Makefile b/src/pkg/container/vector/Makefile index 20490549d3..1237f2c3b5 100644 --- a/src/pkg/container/vector/Makefile +++ b/src/pkg/container/vector/Makefile @@ -2,68 +2,12 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -# DO NOT EDIT. Automatically generated by gobuild. -# gobuild -m >Makefile - -D=/container/ - include $(GOROOT)/src/Make.$(GOARCH) -AR=gopack - -default: packages - -clean: - rm -rf *.[$(OS)] *.a [$(OS)].out _obj - -test: packages - gotest - -coverage: packages - gotest - 6cov -g `pwd` | grep -v '_test\.go:' - -%.$O: %.go - $(GC) -I_obj $*.go - -%.$O: %.c - $(CC) $*.c - -%.$O: %.s - $(AS) $*.s - -O1=\ - vector.$O\ - -O2=\ - intvector.$O\ - stringvector.$O\ - - -phases: a1 a2 -_obj$D/vector.a: phases - -a1: $(O1) - $(AR) grc _obj$D/vector.a vector.$O - rm -f $(O1) - -a2: $(O2) - $(AR) grc _obj$D/vector.a intvector.$O stringvector.$O - rm -f $(O2) - - -newpkg: clean - mkdir -p _obj$D - $(AR) grc _obj$D/vector.a - -$(O1): newpkg -$(O2): a1 -$(O3): a2 - -nuke: clean - rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/vector.a -packages: _obj$D/vector.a +TARG=container/vector +GOFILES=\ + intvector.go\ + stringvector.go\ + vector.go\ -install: packages - test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D - cp _obj$D/vector.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/vector.a +include $(GOROOT)/src/Make.pkg diff --git a/src/pkg/container/vector/intvector.go b/src/pkg/container/vector/intvector.go index ca2c4d1030..f599ce185c 100644 --- a/src/pkg/container/vector/intvector.go +++ b/src/pkg/container/vector/intvector.go @@ -4,7 +4,6 @@ package vector -import "container/vector" // IntVector is a specialization of Vector that hides the wrapping of Elements around ints. type IntVector struct { diff --git a/src/pkg/container/vector/stringvector.go b/src/pkg/container/vector/stringvector.go index 4cf047f2ca..4f6d74e29a 100644 --- a/src/pkg/container/vector/stringvector.go +++ b/src/pkg/container/vector/stringvector.go @@ -4,8 +4,6 @@ package vector -import "container/vector" - // StringVector is a specialization of Vector that hides the wrapping of Elements around strings. type StringVector struct { Vector; diff --git a/src/pkg/container/vector/vector_test.go b/src/pkg/container/vector/vector_test.go index 8b4f54dae5..51acb74746 100644 --- a/src/pkg/container/vector/vector_test.go +++ b/src/pkg/container/vector/vector_test.go @@ -4,7 +4,6 @@ package vector -import "container/vector" import "testing" import "sort" import "fmt" |
