]> Cypherpunks repositories - gostls13.git/commitdiff
convert non-low-level non-google pkg code
authorRuss Cox <rsc@golang.org>
Wed, 12 Aug 2009 20:19:17 +0000 (13:19 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 12 Aug 2009 20:19:17 +0000 (13:19 -0700)
to whole-package compilation.

R=r
OCL=33070
CL=33101

166 files changed:
src/pkg/archive/tar/Makefile
src/pkg/archive/tar/reader.go
src/pkg/archive/tar/reader_test.go
src/pkg/archive/tar/writer.go
src/pkg/archive/tar/writer_test.go
src/pkg/base64/Makefile
src/pkg/base64/base64_test.go
src/pkg/bignum/Makefile
src/pkg/bignum/bignum.go
src/pkg/bignum/bignum_test.go
src/pkg/bignum/integer.go
src/pkg/bignum/rational.go
src/pkg/bufio/Makefile
src/pkg/bufio/bufio_test.go
src/pkg/compress/flate/Makefile
src/pkg/compress/flate/flate_test.go
src/pkg/compress/flate/inflate.go
src/pkg/compress/gzip/Makefile
src/pkg/compress/gzip/gunzip.go
src/pkg/compress/gzip/gunzip_test.go
src/pkg/container/list/Makefile
src/pkg/container/list/list_test.go
src/pkg/container/ring/Makefile
src/pkg/container/ring/ring_test.go
src/pkg/container/vector/Makefile
src/pkg/container/vector/intvector.go
src/pkg/container/vector/stringvector.go
src/pkg/container/vector/vector_test.go
src/pkg/crypto/aes/Makefile
src/pkg/crypto/aes/aes_test.go
src/pkg/crypto/aes/block.go
src/pkg/crypto/aes/cipher.go
src/pkg/crypto/block/Makefile
src/pkg/crypto/block/cbc.go
src/pkg/crypto/block/cbc_aes_test.go
src/pkg/crypto/block/cfb.go
src/pkg/crypto/block/cfb_aes_test.go
src/pkg/crypto/block/cmac.go
src/pkg/crypto/block/cmac_aes_test.go
src/pkg/crypto/block/ctr.go
src/pkg/crypto/block/ctr_aes_test.go
src/pkg/crypto/block/eax.go
src/pkg/crypto/block/eax_aes_test.go
src/pkg/crypto/block/ecb.go
src/pkg/crypto/block/ecb_aes_test.go
src/pkg/crypto/block/ecb_test.go
src/pkg/crypto/block/ofb.go
src/pkg/crypto/block/ofb_aes_test.go
src/pkg/crypto/block/xor.go
src/pkg/crypto/block/xor_test.go
src/pkg/crypto/hmac/Makefile
src/pkg/crypto/hmac/hmac_test.go
src/pkg/crypto/md5/Makefile
src/pkg/crypto/md5/md5.go
src/pkg/crypto/md5/md5_test.go
src/pkg/crypto/md5/md5block.go
src/pkg/crypto/sha1/Makefile
src/pkg/crypto/sha1/sha1.go
src/pkg/crypto/sha1/sha1_test.go
src/pkg/crypto/sha1/sha1block.go
src/pkg/datafmt/Makefile
src/pkg/datafmt/datafmt_test.go
src/pkg/datafmt/parser.go
src/pkg/ebnf/Makefile
src/pkg/ebnf/ebnf_test.go
src/pkg/ebnf/parser.go
src/pkg/exec/Makefile
src/pkg/exec/exec_test.go
src/pkg/exvar/Makefile
src/pkg/exvar/exvar_test.go
src/pkg/go/ast/Makefile
src/pkg/go/ast/filter.go
src/pkg/go/doc/Makefile
src/pkg/go/doc/doc.go
src/pkg/go/parser/Makefile
src/pkg/go/parser/interface.go
src/pkg/go/parser/parser.go
src/pkg/go/parser/parser_test.go
src/pkg/go/printer/Makefile
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer_test.go
src/pkg/go/scanner/Makefile
src/pkg/go/scanner/scanner.go
src/pkg/go/scanner/scanner_test.go
src/pkg/go/token/Makefile
src/pkg/hash/Makefile
src/pkg/hash/adler32/Makefile
src/pkg/hash/adler32/adler32_test.go
src/pkg/hash/crc32/Makefile
src/pkg/hash/crc32/crc32_test.go
src/pkg/http/Makefile
src/pkg/http/client.go
src/pkg/http/client_test.go
src/pkg/http/fs.go
src/pkg/http/request.go
src/pkg/http/request_test.go
src/pkg/http/server.go
src/pkg/http/triv.go
src/pkg/http/url_test.go
src/pkg/json/Makefile
src/pkg/json/generic.go
src/pkg/json/generic_test.go
src/pkg/json/struct.go
src/pkg/json/struct_test.go
src/pkg/log/Makefile
src/pkg/log/log_test.go
src/pkg/malloc/Makefile
src/pkg/net/Makefile
src/pkg/net/dialgoogle_test.go
src/pkg/net/dnsclient.go
src/pkg/net/dnsconfig.go
src/pkg/net/dnsmsg.go
src/pkg/net/fd.go
src/pkg/net/fd_darwin.go
src/pkg/net/fd_linux.go
src/pkg/net/ip.go
src/pkg/net/ip_test.go
src/pkg/net/net.go
src/pkg/net/net_test.go
src/pkg/net/parse_test.go
src/pkg/net/port.go
src/pkg/net/port_test.go
src/pkg/net/server_test.go
src/pkg/net/timeout_test.go
src/pkg/path/Makefile
src/pkg/path/path_test.go
src/pkg/rand/Makefile
src/pkg/regexp/Makefile
src/pkg/regexp/all_test.go
src/pkg/regexp/regexp.go
src/pkg/rpc/Makefile
src/pkg/rpc/client.go
src/pkg/rpc/debug.go
src/pkg/rpc/server.go
src/pkg/rpc/server_test.go
src/pkg/sort/Makefile
src/pkg/sort/sort_test.go
src/pkg/strings/Makefile
src/pkg/strings/strings_test.go
src/pkg/syscall/Makefile
src/pkg/syscall/errstr.go
src/pkg/syscall/exec.go
src/pkg/syscall/syscall.go
src/pkg/syscall/syscall_darwin.go
src/pkg/syscall/syscall_darwin_386.go
src/pkg/syscall/syscall_darwin_amd64.go
src/pkg/syscall/syscall_linux.go
src/pkg/syscall/syscall_linux_386.go
src/pkg/syscall/syscall_linux_amd64.go
src/pkg/syscall/zsyscall_darwin_386.go
src/pkg/syscall/zsyscall_darwin_amd64.go
src/pkg/syscall/zsyscall_linux_386.go
src/pkg/syscall/zsyscall_linux_amd64.go
src/pkg/tabwriter/Makefile
src/pkg/tabwriter/tabwriter_test.go
src/pkg/template/Makefile
src/pkg/template/template.go
src/pkg/template/template_test.go
src/pkg/testing/Makefile
src/pkg/testing/iotest/Makefile
src/pkg/testing/regexp.go
src/pkg/testing/testing.go
src/pkg/unicode/Makefile
src/pkg/unicode/decimaldigit.go
src/pkg/unicode/decimaldigit_test.go
src/pkg/unicode/letter_test.go

index 78734ef58a5b21549ff2facf62145496a3a83dac..debe06284ec774ceaaa27ee19f5c7f7f355833e3 100644 (file)
@@ -2,69 +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=/archive/
-
 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=\
-       common.$O\
-
-O2=\
-       reader.$O\
-       writer.$O\
-
-
-phases: a1 a2
-_obj$D/tar.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/tar.a common.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/tar.a reader.$O writer.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/tar.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/tar.a
 
-packages: _obj$D/tar.a
+TARG=archive/tar
+GOFILES=\
+       common.go\
+       reader.go\
+       writer.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/tar.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/tar.a
+include $(GOROOT)/src/Make.pkg
index 56b840448a786bf67d7f6088c257741647b30719..044d5ab2eb49bdaaa91843e5535e0333a83300f4 100644 (file)
@@ -8,7 +8,6 @@ package tar
 //   - pax extensions
 
 import (
-       "archive/tar";
        "bytes";
        "io";
        "os";
@@ -25,8 +24,8 @@ var (
 // and then it can be treated as an io.Reader to access the file's data.
 //
 // Example:
-//     tr := tar.NewReader(r);
-//     for {
+//     tr := tar.NewReader(r);
+//     for {
 //             hdr, err := tr.Next();
 //             if err != nil {
 //                     // handle error
@@ -36,7 +35,7 @@ var (
 //                     break
 //             }
 //             io.Copy(tr, data);
-//     }
+//     }
 type Reader struct {
        r io.Reader;
        err os.Error;
@@ -44,9 +43,6 @@ type Reader struct {
        pad int64;      // amount of padding (ignored) after current file entry
 }
 
-func (tr *Reader) skipUnread()
-func (tr *Reader) readHeader() *Header
-
 // NewReader creates a new Reader reading from r.
 func NewReader(r io.Reader) *Reader {
        return &Reader{ r: r }
index 428f73e60b13053ad69e4a8174ac4349342ad701..cc3f8feb4d28b88452556d8d8ca5e1ae37861d73 100644 (file)
@@ -5,7 +5,6 @@
 package tar
 
 import (
-       "archive/tar";
        "bytes";
        "fmt";
        "io";
index fbb0031fc55d57bf62096b3a58e39b9d5b3393d8..b3ce6b5c12c1462eed92b110efc529d947124639 100644 (file)
@@ -8,7 +8,6 @@ package tar
 // - catch more errors (no first header, write after close, etc.)
 
 import (
-       "archive/tar";
        "bytes";
        "io";
        "os";
@@ -28,7 +27,7 @@ var (
 // writing at most hdr.Size bytes in total.
 //
 // Example:
-//     tw := tar.NewWriter(w);
+//     tw := tar.NewWriter(w);
 //     hdr := new(Header);
 //     hdr.Size = length of data in bytes;
 //     // populate other hdr fields as desired
index 5ada36b530e23bac2e0e1f17fa01a4909985bdba..775882c1077804a832e2d565b01d7851f52b05ed 100644 (file)
@@ -5,7 +5,6 @@
 package tar
 
 import (
-       "archive/tar";
        "bytes";
        "fmt";
        "io";
index 38e7f9bfaf16a7b965c014c759ecb74abb99f61d..ff9169522494f66d7077631b71926bbb1b1417f5 100644 (file)
@@ -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=
-
 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=\
-       base64.$O\
-
-
-phases: a1
-_obj$D/base64.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/base64.a base64.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/base64.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/base64.a
 
-packages: _obj$D/base64.a
+TARG=base64
+GOFILES=\
+       base64.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/base64.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/base64.a
+include $(GOROOT)/src/Make.pkg
index 6ebaa235d57a9ffc567511c7226866053ceaa76e..34bcfb34b7b68beac114f91863c66a66596c7d80 100644 (file)
@@ -5,7 +5,6 @@
 package base64
 
 import (
-       "base64";
        "bytes";
        "io";
        "os";
index 20f75bc279ed92a3fe864eeb09c167ed0a896fd1..bcb8752aaeb9f4c90d10117b499b5a95c190418d 100644 (file)
@@ -2,84 +2,13 @@
 # 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 arith.go bignum.go integer.go rational.go >Makefile
-
-D=
-
 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=\
-       arith.$O\
-
-O2=\
-       bignum.$O\
-
-O3=\
-       integer.$O\
-
-O4=\
-       rational.$O\
-
-
-phases: a1 a2 a3 a4
-_obj$D/bignum.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/bignum.a arith.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/bignum.a bignum.$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/bignum.a integer.$O
-       rm -f $(O3)
-
-a4: $(O4)
-       $(AR) grc _obj$D/bignum.a rational.$O
-       rm -f $(O4)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/bignum.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-$(O5): a4
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/bignum.a
 
-packages: _obj$D/bignum.a
+TARG=bignum
+GOFILES=\
+       arith.go\
+       bignum.go\
+       integer.go\
+       rational.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/bignum.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/bignum.a
+include $(GOROOT)/src/Make.pkg
index 2b36fbd75b2d7d4b0e5e07a2a3db93225c412595..7d2dde61f12b6709f022dd08e65b0213bc7c932e 100755 (executable)
@@ -12,7 +12,6 @@
 package bignum
 
 import (
-       "bignum";
        "fmt";
 )
 
@@ -308,9 +307,6 @@ func (x Natural) Sub(y Natural) Natural {
 }
 
 
-// MulAdd128 is defined in arith.go and arith.s .
-func MulAdd128(x, y, c uint64) (z1, z0 uint64)
-
 // Returns z1 = (x*y + c) div B, z0 = (x*y + c) mod B.
 //
 func muladd11(x, y, c digit) (digit, digit) {
index d691da2327f1ada0f22c7c977dbd28f106e8170a..5b4cf8fd1b88e63a1cb7ba780d8a66cf82576215 100644 (file)
@@ -5,7 +5,6 @@
 package bignum
 
 import (
-       "bignum";
        "fmt";
        "testing";
 )
index 30e13092fac6e7993e3d03e9f3d7ddf47723f834..35a95bb3c4bdda469f251b11728e1a816c085d82 100644 (file)
@@ -10,7 +10,6 @@
 package bignum
 
 import (
-       "bignum";
        "fmt";
 )
 
@@ -352,7 +351,7 @@ func (x *Integer) Shr(s uint) *Integer {
                // (-x) >> s == ^(x-1) >> s == ^((x-1) >> s) == -(((x-1) >> s) + 1)
                return MakeInt(true, x.mant.Sub(Nat(1)).Shr(s).Add(Nat(1)));
        }
-       
+
        return MakeInt(false, x.mant.Shr(s));
 }
 
index 92b5d8883bfdc426acf16f132017baffa7e4e044..baa9b41100faf29fdb8a58f9d3f3b74d112a4988 100644 (file)
@@ -6,7 +6,6 @@
 
 package bignum
 
-import "bignum"
 import "fmt"
 
 
@@ -179,7 +178,7 @@ func (x *Rational) Format(h fmt.State, c int) {
 // of the numerator is returned. If the mantissa contains a decimal point,
 // the base for the fractional part is the same as for the part before the
 // decimal point and the fractional part does not accept a base prefix.
-// The base for the exponent is always 10. 
+// The base for the exponent is always 10.
 //
 func RatFromString(s string, base uint) (*Rational, uint, int) {
        // read numerator
index abb826e7fd6a5542d7cc7f402a6adaaa97b81e5e..af41e888b6a68727a13374cd7085814cbedb3f88 100644 (file)
@@ -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=
-
 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=\
-       bufio.$O\
-
-
-phases: a1
-_obj$D/bufio.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/bufio.a bufio.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/bufio.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/bufio.a
 
-packages: _obj$D/bufio.a
+TARG=bufio
+GOFILES=\
+       bufio.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/bufio.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/bufio.a
+include $(GOROOT)/src/Make.pkg
index c08f68ebe441438627a9080bcaa14ce62a8ed101..e5bf904a0c09dd20704907174d44b87a729ffd54 100644 (file)
@@ -6,7 +6,6 @@ package bufio
 
 import (
        "bytes";
-       "bufio";
        "fmt";
        "io";
        "os";
@@ -191,7 +190,7 @@ func (r *StringReader) Read (p []byte) (n int, err os.Error) {
 func readRuneSegments(t *testing.T, segments []string) {
        got := "";
        want := strings.Join(segments, "");
-       r := bufio.NewReader(&StringReader{data: segments});
+       r := NewReader(&StringReader{data: segments});
        for {
                rune, size, err := r.ReadRune();
                if err != nil {
index 3f73a1932844ef741d25542817719cee7c62eef3..1759dfb0184eb0b0060523966a8599e19816f2e4 100644 (file)
@@ -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=/compress/
-
 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=\
-       inflate.$O\
-
-
-phases: a1
-_obj$D/flate.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/flate.a inflate.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/flate.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/flate.a
 
-packages: _obj$D/flate.a
+TARG=compress/flate
+GOFILES=\
+       inflate.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/flate.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/flate.a
+include $(GOROOT)/src/Make.pkg
index bfa56271541a857d7759368f6a0f6aa396205f6d..01d875c0a1dd3aa1dd0236287a92e783feefb8b8 100644 (file)
@@ -11,7 +11,6 @@ package flate
 import (
        "bytes";
        "bufio";
-       "compress/flate";
        "io";
        "os";
        "reflect";
@@ -102,7 +101,7 @@ var initDecoderTests = []*InitDecoderTest{
                fixedHuffmanDecoder,
                true,
        },
-       
+
        // Illegal input.
        &InitDecoderTest{
                []int{ },
index 95973b4c7331e1585117fdb820bc6f275ed170a7..8719473d914f31ddd2f14b41a67810697b0166aa 100644 (file)
@@ -263,13 +263,6 @@ type inflater struct {
        buf [4]byte;
 }
 
-func (f *inflater) dataBlock() os.Error
-func (f *inflater) readHuffman() os.Error
-func (f *inflater) decodeBlock(hl, hd *huffmanDecoder) os.Error
-func (f *inflater) moreBits() os.Error
-func (f *inflater) huffSym(h *huffmanDecoder) (int, os.Error)
-func (f *inflater) flush() os.Error
-
 func (f *inflater) inflate() (err os.Error) {
        final := false;
        for err == nil && !final {
index 514118ae0109fada366d562a8dcf32ba06b8e043..717a2d608a1463921ae84d97301b9163a2578211 100644 (file)
@@ -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=/compress/
-
 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=\
-       gunzip.$O\
-
-
-phases: a1
-_obj$D/gzip.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/gzip.a gunzip.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/gzip.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/gzip.a
 
-packages: _obj$D/gzip.a
+TARG=compress/gzip
+GOFILES=\
+       gunzip.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/gzip.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/gzip.a
+include $(GOROOT)/src/Make.pkg
index f170e8bcd350191d1ac8969c517164375c49fcba..f4accf1a8201f733820f6780bff8375b2fe87f0b 100644 (file)
@@ -71,8 +71,6 @@ type GzipInflater struct {
        eof bool;
 }
 
-func (z *GzipInflater) readHeader(save bool) os.Error
-
 // NewGzipInflater creates a new GzipInflater reading the given reader.
 // The implementation buffers input and may read more data than necessary from r.
 func NewGzipInflater(r io.Reader) (*GzipInflater, os.Error) {
index b8c9c71898abc0fd6978487dd0051aff2d7dc881..99df3261d8c3644580a14cd1a063cfc064bd9ca6 100644 (file)
@@ -6,7 +6,6 @@ package gzip
 
 import (
        "bytes";
-       "compress/gzip";
        "fmt";
        "io";
        "testing";
index 2a647eb2a3bf16ebc3811d8d08db2b35568295eb..3ed4d1f6c8ac51211dbb88355aa14125ca7e0c20 100644 (file)
@@ -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
index bdfed357884d6efb03e6ccf419d8f4d728b0c8ba..7b2480f9cb229f2320aa12937e76ace15825ed45 100755 (executable)
@@ -5,7 +5,6 @@
 package list
 
 import (
-       "container/list";
        "testing";
 )
 
index 931f40524f494f394847f6c9a4f0bf65e5685022..70046cb54ea0a1db847756e3d2e1d192c890ad88 100644 (file)
@@ -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
index c2e9d414cdd4a7222875539296854d56c82a1907..8ecbacd14a77d7dc187c5517c80e374f7ea888b3 100644 (file)
@@ -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");
index 20490549d32b51202cfe677d16c4490dec3a4244..1237f2c3b57e1e03631b8a23e175fc45760590b5 100644 (file)
@@ -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
index ca2c4d10303b007ec09a48d349f00237e83dce79..f599ce185cb4d33aa62c658431f1724b8e74d89c 100644 (file)
@@ -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 {
index 4cf047f2ca99d75b9584e45d49fccf6430c603d9..4f6d74e29adcfe26c914a2aaec2ad1b6918ac03f 100644 (file)
@@ -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;
index 8b4f54dae5263a8497ff401188ead11bb118c11a..51acb747466d3db7be3ba19c8a8c4e0fc1915530 100644 (file)
@@ -4,7 +4,6 @@
 
 package vector
 
-import "container/vector"
 import "testing"
 import "sort"
 import "fmt"
index c62275b3c251bcfee707983f3b621ff8b9e9ae92..f7352cb91a1a45a1eb1385de4706574e277d7aa3 100644 (file)
@@ -2,75 +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=/crypto/
-
 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=\
-       const.$O\
-
-O2=\
-       block.$O\
-
-O3=\
-       cipher.$O\
-
-
-phases: a1 a2 a3
-_obj$D/aes.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/aes.a const.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/aes.a block.$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/aes.a cipher.$O
-       rm -f $(O3)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/aes.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/aes.a
 
-packages: _obj$D/aes.a
+TARG=crypto/aes
+GOFILES=\
+       block.go\
+       cipher.go\
+       const.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/aes.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/aes.a
+include $(GOROOT)/src/Make.pkg
index 2f6cb4a9230f4a4f9369e78a2fa4ee71647a6854..95e43f1173fec0cc54ea437ac1bbcc5751a08e78 100644 (file)
@@ -5,7 +5,6 @@
 package aes
 
 import (
-       "crypto/aes";
        "fmt";
        "testing";
 )
index 3c67d1c3c057681293962cf10301fb93cede7f0a..fb4efc191e61c9e01ea4a012d465f87cd518d738 100644 (file)
@@ -36,8 +36,6 @@
 
 package aes
 
-import "crypto/aes"
-
 // Encrypt one block from src into dst, using the expanded key xk.
 func encryptBlock(xk []uint32, src, dst []byte) {
        var s0, s1, s2, s3, t0, t1, t2, t3 uint32;
index e430c9e14f98c116e6326df30a1b5dcf2d284a25..e73335feb887d1c65b3ca27af66cc5fb3672db83 100644 (file)
@@ -5,7 +5,6 @@
 package aes
 
 import (
-       "crypto/aes";
        "os";
        "strconv";
 )
index e8bc8e90711c4e187afff4dd56c811fe58668270..a277d0dd94d785fd0f724c012654a672139be211 100644 (file)
@@ -2,81 +2,18 @@
 # 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=/crypto/
-
 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=\
-       cipher.$O\
-       xor.$O\
-
-O2=\
-       cmac.$O\
-       ctr.$O\
-       ecb.$O\
-       ofb.$O\
-
-O3=\
-       cbc.$O\
-       cfb.$O\
-       eax.$O\
-
-
-phases: a1 a2 a3
-_obj$D/block.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/block.a cipher.$O xor.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/block.a cmac.$O ctr.$O ecb.$O ofb.$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/block.a cbc.$O cfb.$O eax.$O
-       rm -f $(O3)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/block.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/block.a
-
-packages: _obj$D/block.a
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/block.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/block.a
+TARG=crypto/block
+GOFILES=\
+       cbc.go\
+       cfb.go\
+       cipher.go\
+       cmac.go\
+       ctr.go\
+       eax.go\
+       ecb.go\
+       ofb.go\
+       xor.go\
+
+include $(GOROOT)/src/Make.pkg
index 85a746b72b360e2675fbd84a59666b6998256b30..3aea0c1822f95a3c24ed903957127aadd0f69b0a 100644 (file)
@@ -12,7 +12,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
 )
 
index 0c10b171db5d79b80d1eb204fc6bdd42b3a8187c..51e30b5f4e59580dae18baf67fb95f02b86e5b70 100644 (file)
 
 package block
 
-// gobuild: $GC ecb_aes_test.go
-
 import (
        "bytes";
        "crypto/aes";
-       "crypto/block";
        "io";
        "os";
        "testing";
-
-       "./ecb_aes_test";
 )
 
 type cbcTest struct {
index 5c4c09a1b1f4df3949f3a7b9ed806aac72b79e92..0d73827b4c98aca0b770e99912e88ce5822b3572 100644 (file)
@@ -13,7 +13,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
 )
 
index 95b2511960a4aa2ac2287b46c35c56b23efddf5f..b0dcef7b211a6c3b6582dbfcfa2599ff27d68948 100644 (file)
 
 package block
 
-// gobuild: $GC ecb_aes_test.go
-
 import (
        "bytes";
        "crypto/aes";
-       "crypto/block";
        "io";
        "os";
        "testing";
-
-       "./ecb_aes_test";
 )
 
 type cfbTest struct {
index 40697cabdcd649aa701a9ce1e83723b0ef473370..a556cf56718d96f44468cb8a73eebc2496db794a 100644 (file)
@@ -8,7 +8,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
        "os";
 )
index 9284ac40a01f180a8e3157adaf558a6f12595b30..3b2602c51ec734ba99edf55df1bb0e04a48cd67f 100644 (file)
@@ -6,14 +6,9 @@
 
 package block
 
-// gobuild: $GC ecb_aes_test.go
-
 import (
        "crypto/aes";
-       "crypto/block";
        "testing";
-
-       "./ecb_aes_test";
 )
 
 type cmacAESTest struct {
index eecb615ad10a9b2cd479c058ad52b2a2aede7851..38700c1855c081b6f4384d98931a59fbf578731f 100644 (file)
@@ -13,7 +13,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
 )
 
index dceb85a8b672b4d74e1dbb2c6b7e09ff460ddb65..4f90af1732a31576b8eff25bab0cee82d5c55eb2 100644 (file)
@@ -13,12 +13,9 @@ package block
 import (
        "bytes";
        "crypto/aes";
-       "crypto/block";
        "io";
        "os";
        "testing";
-
-       "./ecb_aes_test";
 )
 
 type ctrTest struct {
@@ -86,7 +83,7 @@ func TestCTR_AES(t *testing.T) {
                for j := 0; j <= 5; j += 5 {
                        var crypt bytes.Buffer;
                        in := tt.in[0:len(tt.in) - j];
-                       w := block.NewCTRWriter(c, tt.iv, &crypt);
+                       w := NewCTRWriter(c, tt.iv, &crypt);
                        var r io.Reader = io.NewByteReader(in);
                        n, err := io.Copy(r, w);
                        if n != int64(len(in)) || err != nil {
@@ -99,7 +96,7 @@ func TestCTR_AES(t *testing.T) {
                for j := 0; j <= 7; j += 7 {
                        var plain bytes.Buffer;
                        out := tt.out[0:len(tt.out) - j];
-                       r := block.NewCTRReader(c, tt.iv, io.NewByteReader(out));
+                       r := NewCTRReader(c, tt.iv, io.NewByteReader(out));
                        w := &plain;
                        n, err := io.Copy(r, w);
                        if n != int64(len(out)) || err != nil {
index 3015640744ac93f72f376c38a824ca1d19a19949..bac721dbf02e581f4c7c494ede8881091d7f9373 100644 (file)
@@ -15,7 +15,6 @@
 package block
 
 import (
-       "crypto/block";
        "fmt";
        "io";
        "os";
index b4280ee11e41db94c9da0008a6e315ddf783fdba..94a3d7c40f11833462571d64c57938b8b2b7e309 100644 (file)
@@ -7,7 +7,6 @@ package block
 import (
        "bytes";
        "crypto/aes";
-       "crypto/block";
        "fmt";
        "io";
        "testing";
index 134ac6da057ea09902f66dfb15cbfdaf0c955c11..d250b18ec1e22ae4f769bc42bc92dbfc7e4a0ee9 100644 (file)
@@ -14,7 +14,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
        "os";
        "strconv";
index 518897df5aea79bd334b965ca2c4c9a7339810b7..7359c6ce7b8379564f70a27c68cf84eec3a22bb5 100644 (file)
@@ -13,7 +13,6 @@ package block
 import (
        "bytes";
        "crypto/aes";
-       "crypto/block";
        "io";
        "os";
        "testing";
index 8722265126e99bf63f9b2da25f21652892933506..0938cbe7abb8a2e04bc4df6bcca2e9614bf1a59a 100644 (file)
@@ -6,7 +6,6 @@ package block
 
 import (
        "bytes";
-       "crypto/block";
        "fmt";
        "io";
        "testing";
index 084274a084fad1c5e7dedd2d4dd08d10eab4c075..f6d5f98ad02115b42c5f356711c489aaa9053279 100644 (file)
@@ -13,7 +13,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
 )
 
index 96673fecbebee16cbabe3118f6cd207d9bee3a51..303202d71f6cfb878b6a81979de05bce257a1f4b 100644 (file)
 
 package block
 
-// gotest: $GC ecb_aes_test.go
-
 import (
        "bytes";
        "crypto/aes";
-       "crypto/block";
        "io";
        "os";
        "testing";
-
-       "./ecb_aes_test";
 )
 
 type ofbTest struct {
index 63229dbb4039b6b605d25b668170f2c8f785fcb9..675dcb77a7043609483cc22c849445c16de34873 100644 (file)
@@ -7,7 +7,6 @@
 package block
 
 import (
-       "crypto/block";
        "io";
        "os";
 )
index 1dca92e55bbabdf7ec07f0d040252eec44bbad4f..7e26533c43e47a9418efe8b9b822b190f6df8647 100644 (file)
@@ -6,7 +6,6 @@ package block
 
 import (
        "bytes";
-       "crypto/block";
        "fmt";
        "io";
        "testing";
index 1da3f58dd518b89e74e3d957c6a00e15892318cb..9da53a47457e0b15f892378063001d82f0f0b75c 100644 (file)
@@ -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=/crypto/
-
 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=\
-       hmac.$O\
-
-
-phases: a1
-_obj$D/hmac.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/hmac.a hmac.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/hmac.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/hmac.a
 
-packages: _obj$D/hmac.a
+TARG=crypto/hmac
+GOFILES=\
+       hmac.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/hmac.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/hmac.a
+include $(GOROOT)/src/Make.pkg
index 74fcacfb5cb46ed70f8a33dcd3b864f4953ce212..d0de00dce683c924c843cd2df9c99e9f7614827c 100644 (file)
@@ -8,7 +8,6 @@ package hmac
 
 import (
        "hash";
-       "crypto/hmac";
        "fmt";
        "strings";
        "testing";
index b6c88d45a6ca78cc6387d97781b8eb47e84b93ea..53fcf874a11d31dc03254e6d5d7ff25e1762a3a0 100644 (file)
@@ -2,67 +2,11 @@
 # 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=/crypto/
-
 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=\
-       md5.$O\
-
-O2=\
-       md5block.$O\
-
-
-phases: a1 a2
-_obj$D/md5.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/md5.a md5.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/md5.a md5block.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/md5.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/md5.a
 
-packages: _obj$D/md5.a
+TARG=crypto/md5
+GOFILES=\
+       md5.go\
+       md5block.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/md5.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/md5.a
+include $(GOROOT)/src/Make.pkg
index cbc007f013f40cb07251b532d03014e48feb3f18..a47d913415ec0ed868063d7b9b88862e732485bd 100644 (file)
@@ -50,8 +50,6 @@ func (d *digest) Size() int {
        return Size;
 }
 
-func _Block(dig *digest, p []byte) int
-
 func (d *digest) Write(p []byte) (nn int, err os.Error) {
        nn = len(p);
        d.len += uint64(nn);
index f610f1143b01b404f4a00d52154f0c637bc3fabf..c6319c7d87f7f6b5eead8db35402016d0252adb7 100644 (file)
@@ -6,7 +6,6 @@ package md5
 
 import (
        "fmt";
-       "crypto/md5";
        "io";
        "testing";
 )
index 2776c8795c1613e687b15d29380676bbea94e618..6ca9d58e096c6000dcfc60718477f299d2752312 100644 (file)
@@ -8,8 +8,6 @@
 
 package md5
 
-import "crypto/md5"
-
 // table[i] = int((1<<32) * abs(sin(i+1 radians))).
 var table = []uint32 {
        // round 1
index 03ffe4fd7503f7b6dde5c7e4dc3f59a9c1f21912..940e2ff15f527bbceb7893e2cfb7e8ac21b4c943 100644 (file)
@@ -2,67 +2,11 @@
 # 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=/crypto/
-
 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=\
-       sha1.$O\
-
-O2=\
-       sha1block.$O\
-
-
-phases: a1 a2
-_obj$D/sha1.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/sha1.a sha1.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/sha1.a sha1block.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/sha1.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/sha1.a
 
-packages: _obj$D/sha1.a
+TARG=crypto/sha1
+GOFILES=\
+       sha1.go\
+       sha1block.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/sha1.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/sha1.a
+include $(GOROOT)/src/Make.pkg
index a4cccd7a37d73d8fec99092f97a1caa0b1ed2dc3..fd553895cd21460bff860fd51726884dcea61452 100644 (file)
@@ -52,8 +52,6 @@ func (d *digest) Size() int {
        return Size;
 }
 
-func _Block(dig *digest, p []byte) int
-
 func (d *digest) Write(p []byte) (nn int, err os.Error) {
        nn = len(p);
        d.len += uint64(nn);
index 381cc76ee51395952465c2bbaf4fe3f8a43799cd..d2f3788a42c357b04b6d3ee301fd278889a2b475 100644 (file)
@@ -8,7 +8,6 @@ package sha1
 
 import (
        "fmt";
-       "crypto/sha1";
        "io";
        "testing";
 )
index 01ddd9506ac8d54d7858a228724fcdc3f3ccaec3..023703b8f91424d77af969dacf6895a9b44c7569 100644 (file)
@@ -8,8 +8,6 @@
 
 package sha1
 
-import "crypto/sha1"
-
 const (
        _K0 = 0x5A827999;
        _K1 = 0x6ED9EBA1;
index 1546faf7ed213ccbb55328ebe49e8b9434f92077..421382d983a5c0e316d15d9e210a9920076eec31 100644 (file)
@@ -2,67 +2,11 @@
 # 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=
-
 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=\
-       datafmt.$O\
-
-O2=\
-       parser.$O\
-
-
-phases: a1 a2
-_obj$D/datafmt.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/datafmt.a datafmt.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/datafmt.a parser.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/datafmt.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/datafmt.a
 
-packages: _obj$D/datafmt.a
+TARG=datafmt
+GOFILES=\
+       datafmt.go\
+       parser.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/datafmt.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/datafmt.a
+include $(GOROOT)/src/Make.pkg
index 8c3e002870f42e58cc048002e0beef4fa24891b2..e1355dd36cc828f7d9eab04c35932229fac435db 100644 (file)
@@ -6,7 +6,6 @@ package datafmt
 
 import (
        "fmt";
-       "datafmt";
        "os";
        "strings";
        "testing";
index ea34623dccaed013e8735941a70da1f2d4f374ec..3e86e0f2dca0e6a8d7c7e03aada664c8b8150137 100644 (file)
@@ -6,7 +6,6 @@ package datafmt
 
 import (
        "container/vector";
-       "datafmt";
        "fmt";
        "go/scanner";
        "go/token";
@@ -203,8 +202,6 @@ func (p *parser) parseField() expr {
 }
 
 
-func (p *parser) parseExpression() expr
-
 func (p *parser) parseOperand() (x expr) {
        switch p.tok {
        case token.STRING:
index 06c0fc832215f56ce43441b0cc915ce6dfff6085..8b3b0774cce0bc985800a3c24b8ecc2e779ad6b0 100644 (file)
@@ -2,68 +2,11 @@
 # 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 ebnf.go parser.go >Makefile
-
-D=
-
 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=\
-       ebnf.$O\
-
-O2=\
-       parser.$O\
-
-
-phases: a1 a2
-_obj$D/ebnf.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/ebnf.a ebnf.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/ebnf.a parser.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/ebnf.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/ebnf.a
 
-packages: _obj$D/ebnf.a
+TARG=ebnf
+GOFILES=\
+       ebnf.go\
+       parser.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/ebnf.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/ebnf.a
+include $(GOROOT)/src/Make.pkg
index 9bcb5d91f833a5fc71d573a607fbb08c53babd2c..3dd3c7a6c5e7dcc4003f843f8f6c69317c66126b 100644 (file)
@@ -5,7 +5,6 @@
 package ebnf
 
 import (
-       "ebnf";
        "io";
        "strings";
        "testing";
index e621c4d89d1721ed658677ba03ddd1fefb6bac38..d32b1b926a9b083114c699fc2d2c269ea1f8c2b7 100644 (file)
@@ -6,7 +6,6 @@ package ebnf
 
 import (
        "container/vector";
-       "ebnf";
        "fmt";
        "go/scanner";
        "go/token";
@@ -86,8 +85,6 @@ func (p *parser) parseToken() *Token {
 }
 
 
-func (p *parser) parseExpression() Expression
-
 func (p *parser) parseTerm() (x Expression) {
        pos := p.pos;
 
index 679cc39c07a952c8f87bd13a2a0222291ed6288c..9927eb3e7bd32df69a4c3ee418f03c631d42a837 100644 (file)
@@ -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=
-
 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=\
-       exec.$O\
-
-
-phases: a1
-_obj$D/exec.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/exec.a exec.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/exec.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/exec.a
 
-packages: _obj$D/exec.a
+TARG=exec
+GOFILES=\
+       exec.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/exec.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/exec.a
+include $(GOROOT)/src/Make.pkg
index 9a9fca2e7b545aba0b6397a1b6d1d5ba2a3a5b30..d5585029eb2ccbc819c08cd74ce09a74c37885bc 100644 (file)
@@ -5,14 +5,13 @@
 package exec
 
 import (
-       "exec";
        "io";
        "testing";
 )
 
 func TestRunCat(t *testing.T) {
-       cmd, err := exec.Run("/bin/cat", []string{"cat"}, nil,
-               exec.Pipe, exec.Pipe, exec.DevNull);
+       cmd, err := Run("/bin/cat", []string{"cat"}, nil,
+               Pipe, Pipe, DevNull);
        if err != nil {
                t.Fatalf("opencmd /bin/cat: %v", err);
        }
@@ -32,7 +31,7 @@ func TestRunCat(t *testing.T) {
 
 func TestRunEcho(t *testing.T) {
        cmd, err := Run("/bin/echo", []string{"echo", "hello", "world"}, nil,
-               exec.DevNull, exec.Pipe, exec.DevNull);
+               DevNull, Pipe, DevNull);
        if err != nil {
                t.Fatalf("opencmd /bin/echo: %v", err);
        }
index a65a1ee6bc8dd949133f0e1f375cfbcf6709dcc0..795e8a644391259bac0df45eb0e9c672b4c0eea5 100644 (file)
@@ -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=
-
 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=\
-       exvar.$O\
-
-
-phases: a1
-_obj$D/exvar.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/exvar.a exvar.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/exvar.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/exvar.a
 
-packages: _obj$D/exvar.a
+TARG=exvar
+GOFILES=\
+       exvar.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/exvar.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/exvar.a
+include $(GOROOT)/src/Make.pkg
index 8b028bccb8b57f45422b3dd4668d070cf599b62b..34b87acfd994af07461910e53052b9c3c51e4fe7 100644 (file)
@@ -5,7 +5,6 @@
 package exvar
 
 import (
-       "exvar";
        "fmt";
        "json";
        "testing";
index cf37bba4c5a44012d83b1736a8da4a4c62ebd415..0c3d9f1d6b696282500f44d2cbfb46d5fb501a5b 100644 (file)
@@ -2,68 +2,11 @@
 # 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 ast.go filter.go >Makefile
-
-D=/go/
-
 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=\
-       ast.$O\
-
-O2=\
-       filter.$O\
-
-
-phases: a1 a2
-_obj$D/ast.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/ast.a ast.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/ast.a filter.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/ast.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/ast.a
 
-packages: _obj$D/ast.a
+TARG=go/ast
+GOFILES=\
+       ast.go\
+       filter.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/ast.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/ast.a
+include $(GOROOT)/src/Make.pkg
index 0b9d508bb3fd6654e6073bb169b2df0f6e467dfc..16bcdb9d7e9624a900cd5b83c40487a28b59c5c1 100644 (file)
@@ -5,7 +5,6 @@
 package ast
 
 import (
-       "go/ast";
        "go/token";
 )
 
@@ -39,8 +38,6 @@ func isExportedType(typ Expr) bool {
 }
 
 
-func filterType(typ Expr)
-
 func filterFieldList(list []*Field) []*Field {
        j := 0;
        for _, f := range list {
index d7c6acaac3252f19267aae25a468391d491a482c..60ce26483fcf4dda9e6c2d28bdd58eff03941853 100644 (file)
@@ -2,67 +2,11 @@
 # 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=/go/
-
 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=\
-       comment.$O\
-
-O2=\
-       doc.$O\
-
-
-phases: a1 a2
-_obj$D/doc.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/doc.a comment.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/doc.a doc.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/doc.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/doc.a
 
-packages: _obj$D/doc.a
+TARG=go/doc
+GOFILES=\
+       comment.go\
+       doc.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/doc.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/doc.a
+include $(GOROOT)/src/Make.pkg
index 2edc8463845f26bb8611ad97aabd1904a78da599..b887099806fb28c605d3c4c316d5804f47adb725 100644 (file)
@@ -8,7 +8,6 @@ import (
        "container/vector";
        "fmt";
        "go/ast";
-       "go/doc";
        "go/token";
        "io";
        "regexp";
@@ -237,9 +236,6 @@ func (doc *docReader) addFile(src *ast.File) {
 }
 
 
-type PackageDoc struct
-func (doc *docReader) newDoc(pkgname, importpath, filepath string, filenames []string) *PackageDoc
-
 func NewFileDoc(file *ast.File) *PackageDoc {
        var r docReader;
        r.init();
index 5e5c51a5af21fd4781588c10a5bf6b7e93276956..a8f14ff634de5921d67319c6a702308687593f25 100644 (file)
@@ -2,68 +2,11 @@
 # 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 parser.go interface.go >Makefile
-
-D=/go/
-
 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=\
-       parser.$O\
-
-O2=\
-       interface.$O\
-
-
-phases: a1 a2
-_obj$D/parser.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/parser.a parser.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/parser.a interface.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/parser.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/parser.a
 
-packages: _obj$D/parser.a
+TARG=go/parser
+GOFILES=\
+       interface.go\
+       parser.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/parser.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/parser.a
+include $(GOROOT)/src/Make.pkg
index 5fa60c1cd51a0ee75061592b88c0686a83bf47c0..94835b8eceb3dbf544c14eaff299f34ed2f0874c 100644 (file)
@@ -10,7 +10,6 @@ import (
        "bytes";
        "fmt";
        "go/ast";
-       "go/parser";
        "go/scanner";
        "io";
        "os";
index f0fa487cc3ca5f677688b21bf29ec33548e5bb3f..537832209b78044ab0ca81d7db88ea2d6df953b8 100644 (file)
@@ -74,8 +74,6 @@ func scannerMode(mode uint) uint {
 }
 
 
-func (p *parser) next()
-
 func (p *parser) init(filename string, src []byte, mode uint) {
        p.ErrorVector.Init();
        p.scanner.Init(filename, src, p, scannerMode(mode));
@@ -267,13 +265,6 @@ func (p *parser) expect(tok token.Token) token.Position {
 // ----------------------------------------------------------------------------
 // Common productions
 
-func (p *parser) tryType() ast.Expr
-func (p *parser) parseStringList(x *ast.StringLit) []*ast.StringLit
-func (p *parser) parseExpr() ast.Expr
-func (p *parser) parseStmt() ast.Stmt
-func (p *parser) parseDecl(getSemi bool) (decl ast.Decl, gotSemi bool)
-
-
 func (p *parser) parseIdent() *ast.Ident {
        if p.tok == token.IDENT {
                x := &ast.Ident{p.pos, string(p.lit)};
index 29719b6de54b2fdd422e518d971cddb46bd7ed23..7a0b24d07e0ec89564f4d8d6f5f7af7a46eb0096 100644 (file)
@@ -6,7 +6,6 @@ package parser
 
 import (
        "go/ast";
-       "go/parser";
        "os";
        "testing";
 )
index 88fb48bd9d1867919ac9b620c05988de23ffa947..c18cb8de5faee2dbf1863eda6954f69ff6360886 100644 (file)
@@ -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=/go/
-
 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=\
-       printer.$O\
-
-
-phases: a1
-_obj$D/printer.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/printer.a printer.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/printer.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/printer.a
 
-packages: _obj$D/printer.a
+TARG=go/printer
+GOFILES=\
+       printer.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/printer.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/printer.a
+include $(GOROOT)/src/Make.pkg
index d863c01c3dd1c74752782f6cb8a202b605d5d22f..bb2f63a5650800da84fac406929c1d0d2494bbcf 100644 (file)
@@ -457,8 +457,6 @@ func (p *printer) lineComment(d *ast.CommentGroup) {
 }
 
 
-func (p *printer) expr(x ast.Expr) bool
-
 func (p *printer) identList(list []*ast.Ident) {
        for i, x := range list {
                if i > 0 {
@@ -595,8 +593,6 @@ func (p *printer) fieldList(lbrace token.Position, list []*ast.Field, rbrace tok
 // ----------------------------------------------------------------------------
 // Expressions
 
-func (p *printer) stmt(s ast.Stmt) (optSemi bool)
-
 // Returns true if a separating semicolon is optional.
 func (p *printer) expr1(expr ast.Expr, prec1 int) (optSemi bool) {
        p.print(expr.Pos());
@@ -781,8 +777,6 @@ func (p *printer) expr(x ast.Expr) bool {
 // ----------------------------------------------------------------------------
 // Statements
 
-func (p *printer) decl(decl ast.Decl) (comment *ast.CommentGroup, optSemi bool)
-
 // Print the statement list indented, but without a newline after the last statement.
 func (p *printer) stmtList(list []ast.Stmt) {
        if len(list) > 0 {
index d4046e27988e4ad18bb262fac488ea80708cd276..a7207ba2448ed98f4864d599794aa8664b91c449 100644 (file)
@@ -10,7 +10,6 @@ import (
        "io";
        "go/ast";
        "go/parser";
-       "go/printer";
        "os";
        "path";
        "testing";
index 7845fe5a7d86713a619d0a9da980ff5a8cfd0bcf..5e3f38d00bcff9b45432f64a4caa775f8a4ccc78 100644 (file)
@@ -2,68 +2,11 @@
 # 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 scanner.go errors.go >Makefile
-
-D=/go/
-
 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=\
-       errors.$O\
-
-O2=\
-       scanner.$O\
-
-
-phases: a1 a2
-_obj$D/scanner.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/scanner.a errors.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/scanner.a scanner.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/scanner.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/scanner.a
 
-packages: _obj$D/scanner.a
+TARG=go/scanner
+GOFILES=\
+       errors.go\
+       scanner.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/scanner.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/scanner.a
+include $(GOROOT)/src/Make.pkg
index 2d5e2a83f75047f023ff81516f2600ba97500b38..9a040aa6c6d00900789e53d0d5b683787c633203 100644 (file)
@@ -11,7 +11,6 @@ package scanner
 import (
        "bytes";
        "go/token";
-       "go/scanner";
        "strconv";
        "unicode";
        "utf8";
index 0cb200b48fae175ceddfbb3de2e84cb3d3f029e2..2b3c946292d868b46cf4eb5d9acc71b6246d44fd 100644 (file)
@@ -5,7 +5,6 @@
 package scanner
 
 import (
-       "go/scanner";
        "go/token";
        "os";
        "strings";
@@ -207,7 +206,7 @@ func TestScan(t *testing.T) {
        // verify scan
        index := 0;
        epos := token.Position{"", 0, 1, 1};
-       nerrors := scanner.Tokenize("", strings.Bytes(src), &TestErrorHandler{t}, scanner.ScanComments,
+       nerrors := Tokenize("", strings.Bytes(src), &TestErrorHandler{t}, ScanComments,
                func (pos token.Position, tok token.Token, litb []byte) bool {
                        e := elt{token.EOF, "", special};
                        if index < len(tokens) {
@@ -280,7 +279,7 @@ func TestLineComments(t *testing.T) {
        }
 
        // verify scan
-       var S scanner.Scanner;
+       var S Scanner;
        S.Init("TestLineComments", strings.Bytes(src), nil, 0);
        for _, s := range segments {
                pos, tok, lit := S.Scan();
@@ -295,7 +294,7 @@ func TestLineComments(t *testing.T) {
 
 // Verify that initializing the same scanner more then once works correctly.
 func TestInit(t *testing.T) {
-       var s scanner.Scanner;
+       var s Scanner;
 
        // 1st init
        s.Init("", strings.Bytes("if true { }"), nil, 0);
@@ -320,10 +319,10 @@ func TestInit(t *testing.T) {
 
 
 func TestIllegalChars(t *testing.T) {
-       var s scanner.Scanner;
+       var s Scanner;
 
        const src = "*?*$*@*";
-       s.Init("", strings.Bytes(src), &TestErrorHandler{t}, scanner.AllowIllegalChars);
+       s.Init("", strings.Bytes(src), &TestErrorHandler{t}, AllowIllegalChars);
        for offs, ch := range src {
                pos, tok, lit := s.Scan();
                if pos.Offset != offs {
@@ -352,9 +351,9 @@ func TestStdErrorHander(t *testing.T) {
                "@ @ @"  // original file, line 1 again
        ;
 
-       var s scanner.Scanner;
+       var s Scanner;
        v := NewErrorVector();
-       nerrors := scanner.Tokenize("File1", strings.Bytes(src), v, 0,
+       nerrors := Tokenize("File1", strings.Bytes(src), v, 0,
                func (pos token.Position, tok token.Token, litb []byte) bool {
                        return tok != token.EOF;
                }
index 12ef2a4aa188abd0f2e4f62494d4655016ac9c27..259fb29f6f76c56862d2bd1763caa13d0633d8d1 100644 (file)
@@ -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=/go/
-
 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=\
-       token.$O\
-
-
-phases: a1
-_obj$D/token.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/token.a token.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/token.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/token.a
 
-packages: _obj$D/token.a
+TARG=go/token
+GOFILES=\
+       token.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/token.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/token.a
+include $(GOROOT)/src/Make.pkg
index bdbb6f347e9860320dea4dd9c1aee97acbfa8c3e..5bf470fd1c68fdcc898011487a0f8377df71d2cf 100644 (file)
@@ -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=
-
 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=\
-       hash.$O\
-
-
-phases: a1
-_obj$D/hash.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/hash.a hash.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/hash.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/hash.a
 
-packages: _obj$D/hash.a
+TARG=hash
+GOFILES=\
+       hash.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/hash.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/hash.a
+include $(GOROOT)/src/Make.pkg
index 13413125910ddf2a421a051ba8b407d9bcd8c47d..8e5a3389b5d4f320a76af42492e344f6df25e55c 100644 (file)
@@ -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=/hash/
-
 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=\
-       adler32.$O\
-
-
-phases: a1
-_obj$D/adler32.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/adler32.a adler32.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/adler32.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/adler32.a
 
-packages: _obj$D/adler32.a
+TARG=hash/adler32
+GOFILES=\
+       adler32.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/adler32.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/adler32.a
+include $(GOROOT)/src/Make.pkg
index ce49a110bb3ff6c495ec62532524e4b7d2868941..87ca2e008b20adb7fd1c26b6a2aa721a765fd885 100644 (file)
@@ -5,7 +5,6 @@
 package adler32
 
 import (
-       "hash/adler32";
        "io";
        "testing";
 )
index 08d4f5e4e052578566a98217a693ede0b3faad8d..dbfcda10cb4d4bffdaea9dbecd8b5f64d32f1bf2 100644 (file)
@@ -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=/hash/
-
 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=\
-       crc32.$O\
-
-
-phases: a1
-_obj$D/crc32.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/crc32.a crc32.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/crc32.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/crc32.a
 
-packages: _obj$D/crc32.a
+TARG=hash/crc32
+GOFILES=\
+       crc32.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/crc32.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/crc32.a
+include $(GOROOT)/src/Make.pkg
index c037da600e13ae8894cb6a64c329cbe02d025b79..687389894fc3c1817f5fbe07a8e837cbd6192c6b 100644 (file)
@@ -5,7 +5,6 @@
 package crc32
 
 import (
-       "hash/crc32";
        "io";
        "testing";
 )
index 34445b5770dd97150f12a3859171ad67234f2f84..9740678821c58a60b9e065af216468d8c0fc3db9 100644 (file)
@@ -2,85 +2,15 @@
 # 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=
-
 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=\
-       status.$O\
-       url.$O\
-
-O2=\
-       request.$O\
-
-O3=\
-       client.$O\
-       server.$O\
-
-O4=\
-       fs.$O\
-
-
-phases: a1 a2 a3 a4
-_obj$D/http.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/http.a status.$O url.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/http.a request.$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/http.a client.$O server.$O
-       rm -f $(O3)
-
-a4: $(O4)
-       $(AR) grc _obj$D/http.a fs.$O
-       rm -f $(O4)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/http.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-$(O5): a4
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/http.a
 
-packages: _obj$D/http.a
+TARG=http
+GOFILES=\
+       client.go\
+       fs.go\
+       request.go\
+       server.go\
+       status.go\
+       url.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/http.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/http.a
+include $(GOROOT)/src/Make.pkg
index 197f6c858242789ae945a3d7d944477bb7647790..839241d336d505dd0b48510767a14c028c133119 100644 (file)
@@ -9,7 +9,6 @@ package http
 import (
        "bufio";
        "fmt";
-       "http";
        "io";
        "log";
        "net";
index f697fb8567b20d334b80d815f420e44331040eb4..69938f030670b3c2e7515f313a7c50f5680a2cd7 100644 (file)
@@ -8,7 +8,6 @@ package http
 
 import (
        "fmt";
-       "http";
        "io";
        "strings";
        "testing";
index 6af85ca03a8b41a983f15becb9f393f985eeb169..e8dda1d30d2265112a26191cb3e75ef655335220 100644 (file)
@@ -8,7 +8,6 @@ package http
 
 import (
        "fmt";
-       "http";
        "io";
        "os";
        "path";
index 0cc83a8b893f317fa895ff10a4fae89452831f9b..15dc15c1eb329cd886477104363145f79027b864 100644 (file)
@@ -14,7 +14,6 @@ import (
        "bytes";
        "container/vector";
        "fmt";
-       "http";
        "io";
        "os";
        "strconv";
index 1cd91717db23813b00b0f5caad01186459db215e..86ec0efac0c34773c15e42d4bb2669772b7939a1 100644 (file)
@@ -6,7 +6,6 @@ package http
 
 import (
        "fmt";
-       "http";
        "os";
        "testing";
 )
index c1de5de789139dd296263a8267de3b687a485ff5..47f7d01e7c95e87a37ed53803b5fb890525594bc 100644 (file)
@@ -14,7 +14,6 @@ package http
 import (
        "bufio";
        "fmt";
-       "http";
        "io";
        "log";
        "net";
@@ -70,8 +69,6 @@ func newConn(rwc io.ReadWriteCloser, raddr string, handler Handler) (c *Conn, er
        return c, nil
 }
 
-func (c *Conn) SetHeader(hdr, val string)
-
 // Read next request from connection.
 func (c *Conn) readRequest() (req *Request, err os.Error) {
        if c.hijacked {
@@ -547,7 +544,6 @@ func Serve(l net.Listener, handler Handler) os.Error {
 //     package main
 //
 //     import (
-//             "http";
 //             "io";
 //     )
 //
index 546f2a75d032a2fcc891392c324f806a8aaaa904..7b7484d3b12c360a96d0165e87da93369c4c2c98 100644 (file)
@@ -10,7 +10,6 @@ import (
        "exvar";
        "flag";
        "fmt";
-       "http";
        "io";
        "log";
        "net";
index 51d0283feebfab534940ff9f199f752580a23018..6a3cdb0c5476413befe362b680ba7af3e03d4a7d 100644 (file)
@@ -6,7 +6,6 @@ package http
 
 import (
        "fmt";
-       "http";
        "os";
        "reflect";
        "testing";
@@ -14,7 +13,7 @@ import (
 
 // TODO(rsc):
 //     test URLUnescape
-//     test URLEscape
+//     test URLEscape
 //     test ParseURL
 
 type URLTest struct {
index 2d70c2cf8b55f9e94c5d595db8cffdbf0bd8e10a..061ab88cfaabd13684398131c181061448685a8a 100644 (file)
@@ -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=
-
 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=\
-       parse.$O\
-
-O2=\
-       generic.$O\
-       struct.$O\
-
-
-phases: a1 a2
-_obj$D/json.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/json.a parse.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/json.a generic.$O struct.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/json.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/json.a
 
-packages: _obj$D/json.a
+TARG=json
+GOFILES=\
+       generic.go\
+       parse.go\
+       struct.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/json.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/json.a
+include $(GOROOT)/src/Make.pkg
index e3194eb17f6d04f5ea3bb8cce2727157b66dab0b..302b0c9e4dee5cd9a86d594d6ae32f7fcf48563d 100644 (file)
@@ -9,7 +9,6 @@ package json
 import (
        "container/vector";
        "fmt";
-       "json";
        "math";
        "strconv";
        "strings";
index 68868d7a5a4079bf1a5b9664bd7e08799118c3aa..3d82c8e35de0e97d1f59be8356bbe1e8ba935c1e 100644 (file)
@@ -5,7 +5,6 @@
 package json
 
 import (
-       "json";
        "testing";
 )
 
index b6cebe12dd4943301517fb302935e015b8a73189..99312e9c4fc54f69c5df8c2c410614d9e6d6a726 100644 (file)
@@ -8,7 +8,6 @@
 package json
 
 import (
-       "json";
        "reflect";
        "strings";
 )
index 4fbfd424c1b8f9a029a8c047732407ff42b641fc..ce0ab3473ab682edafc98d17be4b73bdd5956a35 100644 (file)
@@ -5,7 +5,6 @@
 package json
 
 import (
-       "json";
        "testing";
 )
 
index 4b1c4b5a2f43b69d647efa6881d369a46d9b03ca..b569c9e9fb35eea5b6a8a6f9f2d80418e0959c18 100644 (file)
@@ -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=
-
 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=\
-       log.$O\
-
-
-phases: a1
-_obj$D/log.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/log.a log.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/log.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/log.a
 
-packages: _obj$D/log.a
+TARG=log
+GOFILES=\
+       log.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/log.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/log.a
+include $(GOROOT)/src/Make.pkg
index e346b3b587ba0dea97c2beecbb5b4a66a2d9eb27..12f732632586bc30625af35a7fa1ee97ae40f09e 100644 (file)
@@ -8,7 +8,6 @@ package log
 
 import (
        "bufio";
-       "log";
        "os";
        "regexp";
        "testing";
index 61894f71f42dbe9111cb4d2ef3bed617831e1699..8a108c802bda9d2b0d19f3659564731d1fe3c095 100644 (file)
@@ -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=
-
 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=\
-       malloc.$O\
-
-
-phases: a1
-_obj$D/malloc.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/malloc.a malloc.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/malloc.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/malloc.a
 
-packages: _obj$D/malloc.a
+TARG=malloc
+GOFILES=\
+       malloc.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/malloc.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/malloc.a
+include $(GOROOT)/src/Make.pkg
index 77056198aca2f6ca6aff09109aec981b7a72b1b6..a56f7c9b3678236b913adc4d26041188d87c717e 100644 (file)
@@ -2,89 +2,18 @@
 # 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 dnsclient.go dnsconfig.go dnsmsg.go fd.go fd_${GOOS}.go ip.go net.go parse.go port.go >Makefile
-
-D=
-
 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=\
-       fd_$(GOOS).$O\
-       parse.$O\
-
-O2=\
-       fd.$O\
-       ip.$O\
-
-O3=\
-       dnsconfig.$O\
-       dnsmsg.$O\
-       net.$O\
-
-O4=\
-       dnsclient.$O\
-       port.$O\
-
-
-phases: a1 a2 a3 a4
-_obj$D/net.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/net.a fd_$(GOOS).$O parse.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/net.a fd.$O ip.$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/net.a dnsconfig.$O dnsmsg.$O net.$O
-       rm -f $(O3)
-
-a4: $(O4)
-       $(AR) grc _obj$D/net.a dnsclient.$O port.$O
-       rm -f $(O4)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/net.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-$(O5): a4
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/net.a
-
-packages: _obj$D/net.a
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/net.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/net.a
+TARG=net
+GOFILES=\
+       dnsclient.go\
+       dnsconfig.go\
+       dnsmsg.go\
+       fd.go\
+       fd_$(GOOS).go\
+       ip.go\
+       net.go\
+       parse.go\
+       port.go\
+
+include $(GOROOT)/src/Make.pkg
index e65aaac3086fa74f22411bdfde0afb28dbd55336..cb5389aadc91df903aedff42ff84c7acddfdc815 100644 (file)
@@ -7,7 +7,6 @@ package net
 import (
        "flag";
        "io";
-       "net";
        "os";
        "strings";
        "syscall";
@@ -19,7 +18,7 @@ var ipv6 = flag.Bool("ipv6", false, "assume ipv6 tunnel is present")
 
 // fd is already connected to the destination, port 80.
 // Run an HTTP request to fetch the appropriate page.
-func fetchGoogle(t *testing.T, fd net.Conn, network, addr string) {
+func fetchGoogle(t *testing.T, fd Conn, network, addr string) {
        req := strings.Bytes("GET /intl/en/privacy.html HTTP/1.0\r\nHost: www.google.com\r\n\r\n");
        n, err := fd.Write(req);
 
@@ -33,9 +32,9 @@ func fetchGoogle(t *testing.T, fd net.Conn, network, addr string) {
 }
 
 func doDial(t *testing.T, network, addr string) {
-       fd, err := net.Dial(network, "", addr);
+       fd, err := Dial(network, "", addr);
        if err != nil {
-               t.Errorf("net.Dial(%q, %q, %q) = _, %v", network, "", addr, err);
+               t.Errorf("Dial(%q, %q, %q) = _, %v", network, "", addr, err);
                return
        }
        fetchGoogle(t, fd, network, addr);
@@ -43,9 +42,9 @@ func doDial(t *testing.T, network, addr string) {
 }
 
 func doDialTCP(t *testing.T, network, addr string) {
-       fd, err := net.DialTCP(network, "", addr);
+       fd, err := DialTCP(network, "", addr);
        if err != nil {
-               t.Errorf("net.DialTCP(%q, %q, %q) = _, %v", network, "", addr, err);
+               t.Errorf("DialTCP(%q, %q, %q) = _, %v", network, "", addr, err);
        } else {
                fetchGoogle(t, fd, network, addr);
        }
index 7e82855a1738e751541a9e860a928ae1de35490d..859bef33a465fc912f5baea3ebbcc790af2a5392 100644 (file)
@@ -17,7 +17,6 @@ package net
 
 import (
        "io";
-       "net";
        "once";
        "os";
        "strings";
index 7e455d5f8bc5065cf83a817e17b81271268b8aca..5cbfbc4e048b1bb84c4283cdb7f7e1d82615adda 100644 (file)
@@ -8,7 +8,6 @@ package net
 
 import (
        "io";
-       "net";
        "os";
        "strconv";
 )
index c7fb07f6dbb36aea08817e1b99419845ca3cd217..a166c96619ddea9634082b9266773ffbfd9d5d76 100644 (file)
@@ -25,7 +25,6 @@ package net
 
 import (
        "fmt";
-       "net";
        "os";
        "reflect";
 )
index 0917c50fcf86d63190a815f6aef4489fe569617b..ec125f228a551bc5e05746de897302944ecbdc9f 100644 (file)
@@ -7,7 +7,6 @@
 package net
 
 import (
-       "net";
        "once";
        "os";
        "sync";
@@ -73,7 +72,6 @@ type pollServer struct {
        poll *pollster; // low-level OS hooks
        deadline int64; // next deadline (nsec since 1970)
 }
-func (s *pollServer) Run();
 
 func newPollServer() (s *pollServer, err os.Error) {
        s = new(pollServer);
@@ -324,8 +322,6 @@ func isEAGAIN(e os.Error) bool {
        return e == os.EAGAIN;
 }
 
-func sockaddrToString(sa syscall.Sockaddr) (name string, err os.Error)
-
 func (fd *netFD) addr() string {
        sa, e := syscall.Getsockname(fd.fd);
        if e != 0 {
index c5b38eb3b8d0fab272d5fc4cbcd013ee2c4223b9..8de8ce3004057a728868d2149a7952bddd694396 100644 (file)
@@ -7,7 +7,6 @@
 package net
 
 import (
-       "net";
        "os";
        "syscall";
 )
index 04cf8eac4627cb1e0deecb0326df0f61fcf70c13..5f4b5a9a2718e17f2311f008b2251f3410764b70 100644 (file)
@@ -7,7 +7,6 @@
 package net
 
 import (
-       "net";
        "os";
        "syscall";
 )
index 8c52ede1e3f8ebd1af60a0329d33fe8299185858..8efdb577804c4fb1d99cc828ea2112bd290a7aef 100644 (file)
@@ -13,7 +13,6 @@
 package net
 
 import (
-       "net"
 )
 
 // IP address lengths (bytes).
index fb2ae8216dde26632f745aef15eb6c9ce3c22dd8..32840a88647eddb18dffca8db234db3c1dc36871 100644 (file)
@@ -5,7 +5,6 @@
 package net
 
 import (
-       "net";
        "testing"
 )
 
index 46efa6e58e08bebcb304e2dfab1e5224386aef6c..c8d533206e0eae7977d0e71cd8e0c9b0d06eee18 100644 (file)
@@ -5,7 +5,6 @@
 package net
 
 import (
-       "net";
        "os";
        "reflect";
        "strconv";
@@ -158,9 +157,6 @@ func listenBacklog() int {
        return syscall.SOMAXCONN
 }
 
-func LookupHost(name string) (cname string, addrs []string, err os.Error)
-func LookupPort(network, service string) (port int, err os.Error)
-
 // Split "host:port" into "host" and "port".
 // Host cannot contain colons unless it is bracketed.
 func splitHostPort(hostport string) (host, port string, err os.Error) {
index ec2037fe9c3e6578b814ce191becd0cb5eb5b426..3430efb9aaa18cdf2544fb5832f1dca8d16cf6ce 100644 (file)
@@ -5,7 +5,6 @@
 package net
 
 import (
-       "net";
        "os";
        "regexp";
        "testing";
@@ -55,7 +54,7 @@ var dialErrorTests = []DialErrorTest {
 
 func TestDialError(t *testing.T) {
        for i, tt := range dialErrorTests {
-               c, e := net.Dial(tt.Net, tt.Laddr, tt.Raddr);
+               c, e := Dial(tt.Net, tt.Laddr, tt.Raddr);
                if c != nil {
                        c.Close();
                }
index ce0bb4709c7364684d542a53d3a1e6adfaf3844d..227ae55f1dc17ceb236ae18c8f40f78b4292ce06 100644 (file)
@@ -6,7 +6,6 @@ package net
 
 import (
        "bufio";
-       "net";
        "os";
        "testing";
 )
index a9cd98daf87ed0dd01257b6366df6514d5a61a42..c5789adc9df14c786511cdd6c47c2b63be8c81bf 100644 (file)
@@ -8,7 +8,6 @@ package net
 
 import (
        "io";
-       "net";
        "once";
        "os";
 )
index c535d4caa3a94dfb76ec2481c15696bf6c3e1c42..aa2a3a7a6b39d9733c61a37221cf7414beddc359 100644 (file)
@@ -5,7 +5,6 @@
 package net
 
 import (
-       "net";
        "testing";
 )
 
index 92ed683383f45f481d99f0b66987fcd8ec5688cd..c2be68a0db47b19984ca01dc44cec32802be8a08 100644 (file)
@@ -6,7 +6,6 @@ package net
 
 import (
        "io";
-       "net";
        "os";
        "strings";
        "syscall";
@@ -27,7 +26,7 @@ func runEcho(fd io.ReadWriter, done chan<- int) {
 }
 
 func runServe(t *testing.T, network, addr string, listening chan<- string, done chan<- int) {
-       l, err := net.Listen(network, addr);
+       l, err := Listen(network, addr);
        if err != nil {
                t.Fatalf("net.Listen(%q, %q) = _, %v", network, addr, err);
        }
@@ -47,7 +46,7 @@ func runServe(t *testing.T, network, addr string, listening chan<- string, done
 }
 
 func connect(t *testing.T, network, addr string) {
-       fd, err := net.Dial(network, "", addr);
+       fd, err := Dial(network, "", addr);
        if err != nil {
                t.Fatalf("net.Dial(%q, %q, %q) = _, %v", network, "", addr, err);
        }
index 0aebce88a44bb6fbe94dda18c4ad4bc58e097f10..bc49dadf45a0ec803d1ae9df58f5676a824d9265 100644 (file)
@@ -5,14 +5,13 @@
 package net
 
 import (
-       "net";
        "os";
        "testing";
        "time";
 )
 
 func testTimeout(t *testing.T, network, addr string) {
-       fd, err := net.Dial(network, "", addr);
+       fd, err := Dial(network, "", addr);
        defer fd.Close();
        if err != nil {
                t.Errorf("dial %s %s failed: %v", network, addr, err);
index d9f9fd562b826e2546aaa997a367c0fe928115d9..d3a40bfcfad963f0a2330d1be29a13d67f466bfc 100644 (file)
@@ -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=
-
 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=\
-       path.$O\
-
-
-phases: a1
-_obj$D/path.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/path.a path.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/path.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/path.a
 
-packages: _obj$D/path.a
+TARG=path
+GOFILES=\
+       path.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/path.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/path.a
+include $(GOROOT)/src/Make.pkg
index 1238ac1cd28bb4b55347a5924b80eff325560186..386c17c70723f78e5eb01c3dcbcf37646ac241cf 100644 (file)
@@ -5,7 +5,6 @@
 package path
 
 import (
-       "path";
        "testing"
 )
 
@@ -120,7 +119,6 @@ type ExtTest struct {
 var exttests = []ExtTest {
        ExtTest{"path.go", ".go"},
        ExtTest{"path.pb.go", ".go"},
-       ExtTest{"path", ""},
        ExtTest{"a.dir/b", ""},
        ExtTest{"a.dir/b.go", ".go"},
        ExtTest{"a.dir/", ""},
index 63d26ac99c97b2cf1e9930791ffd27004fb9dce8..142aa7f4cd7fbd61e5eb0853cde34cf9bc0768f5 100644 (file)
@@ -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=
-
 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=\
-       rand.$O\
-
-
-phases: a1
-_obj$D/rand.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/rand.a rand.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/rand.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/rand.a
 
-packages: _obj$D/rand.a
+TARG=rand
+GOFILES=\
+       rand.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/rand.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/rand.a
+include $(GOROOT)/src/Make.pkg
index 0312d510ef8b72d2fa6e9744788d47011f508a33..84d1a5d5110e78986f32e3ace0a9b6f41b38f4c8 100644 (file)
@@ -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=
-
 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=\
-       regexp.$O\
-
-
-phases: a1
-_obj$D/regexp.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/regexp.a regexp.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/regexp.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/regexp.a
 
-packages: _obj$D/regexp.a
+TARG=regexp
+GOFILES=\
+       regexp.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/regexp.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/regexp.a
+include $(GOROOT)/src/Make.pkg
index c985dad429a1d38ff8af7d00532cf51e02b73947..e6e3eb2f15561817621db4b7372ad1f3c0176467 100644 (file)
@@ -6,7 +6,6 @@ package regexp
 
 import (
        "os";
-       "regexp";
        "strings";
        "testing";
 )
index f78bf864e69e098c44c4b4ba6637cf40fd9a6afa..15361a2f7c2c17f4960fe8318974cb5a56c9f41f 100644 (file)
@@ -288,8 +288,6 @@ func newParser(re *Regexp) *parser {
        return p;
 }
 
-func (p *parser) regexp() (start, end instr)
-
 var iNULL instr
 
 func special(c int) bool {
index a06250326c2ea79123ee40e69a63b2a760086d91..9ea1782381369c7bac27bf3602d68ae4d9790278 100644 (file)
@@ -2,69 +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=
-
 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=\
-       server.$O\
-
-O2=\
-       client.$O\
-       debug.$O\
-
-
-phases: a1 a2
-_obj$D/rpc.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/rpc.a server.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/rpc.a client.$O debug.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/rpc.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/rpc.a
 
-packages: _obj$D/rpc.a
+TARG=rpc
+GOFILES=\
+       client.go\
+       debug.go\
+       server.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/rpc.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/rpc.a
+include $(GOROOT)/src/Make.pkg
index 92c283e6b8c186c187e61cb0ff58084bfe544cd9..5846d6b335e88e8f508173224153549d639f7769 100644 (file)
@@ -12,7 +12,6 @@ import (
        "log";
        "net";
        "os";
-       "rpc";
        "strconv";
        "sync";
 )
index 3b927cf2475ccbc87d2361294a6a6a2756c57c8d..990bd1f9cbcd5005656f7563c4235e3a0422490c 100644 (file)
@@ -16,7 +16,6 @@ import (
        "io";
        "log";
        "os";
-       "rpc";
        "sort";
        "template";
 )
index d1b7de714c761d39b13a954bb11d10bcddea9326..37afa774800aa7c3708b3f7d94e63c506dbe5f1c 100644 (file)
@@ -409,8 +409,6 @@ func serveHTTP(c *http.Conn, req *http.Request) {
        server.input(conn);
 }
 
-func debugHTTP(c *http.Conn, req *http.Request)
-
 // HandleHTTP registers an HTTP handler for RPC messages.
 // It is still necessary to invoke http.Serve(), typically in a go statement.
 func HandleHTTP() {
index e21680eb6f3a9a8cfad903299da83e07ea701328..ff5de90c8b2088196d5c975c5859a75ae123646a 100644 (file)
@@ -12,7 +12,6 @@ import (
        "net";
        "once";
        "os";
-       "rpc";
        "strings";
        "testing";
 )
index 4d193f85978d6c8bef75839ef24e1c8c37906d21..a10e407d629dec40e21266b385aad7fdb64977e6 100644 (file)
@@ -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=
-
 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=\
-       sort.$O\
-
-
-phases: a1
-_obj$D/sort.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/sort.a sort.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/sort.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/sort.a
 
-packages: _obj$D/sort.a
+TARG=sort
+GOFILES=\
+       sort.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/sort.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/sort.a
+include $(GOROOT)/src/Make.pkg
index 1747daca6c88cf94d3ffcb928951add54f53d159..bc56469bbd701755bcf85b246fe15f9fbdcec7b4 100644 (file)
@@ -7,7 +7,6 @@ package sort
 import (
        "fmt";
        "rand";
-       "sort";
        "testing";
 )
 
@@ -19,8 +18,8 @@ var strings = [...]string{"", "Hello", "foo", "bar", "foo", "f00", "%*&^*&^&", "
 func TestSortIntArray(t *testing.T) {
        data := ints;
        a := IntArray(&data);
-       sort.Sort(a);
-       if !sort.IsSorted(a) {
+       Sort(a);
+       if !IsSorted(a) {
                t.Errorf("sorted %v", ints);
                t.Errorf("   got %v", data);
        }
@@ -29,8 +28,8 @@ func TestSortIntArray(t *testing.T) {
 func TestSortFloatArray(t *testing.T) {
        data := floats;
        a := FloatArray(&data);
-       sort.Sort(a);
-       if !sort.IsSorted(a) {
+       Sort(a);
+       if !IsSorted(a) {
                t.Errorf("sorted %v", floats);
                t.Errorf("   got %v", data);
        }
@@ -39,8 +38,8 @@ func TestSortFloatArray(t *testing.T) {
 func TestSortStringArray(t *testing.T) {
        data := strings;
        a := StringArray(&data);
-       sort.Sort(a);
-       if !sort.IsSorted(a) {
+       Sort(a);
+       if !IsSorted(a) {
                t.Errorf("sorted %v", strings);
                t.Errorf("   got %v", data);
        }
@@ -48,8 +47,8 @@ func TestSortStringArray(t *testing.T) {
 
 func TestSortInts(t *testing.T) {
        data := ints;
-       sort.SortInts(&data);
-       if !sort.IntsAreSorted(&data) {
+       SortInts(&data);
+       if !IntsAreSorted(&data) {
                t.Errorf("sorted %v", ints);
                t.Errorf("   got %v", data);
        }
@@ -57,8 +56,8 @@ func TestSortInts(t *testing.T) {
 
 func TestSortFloats(t *testing.T) {
        data := floats;
-       sort.SortFloats(&data);
-       if !sort.FloatsAreSorted(&data) {
+       SortFloats(&data);
+       if !FloatsAreSorted(&data) {
                t.Errorf("sorted %v", floats);
                t.Errorf("   got %v", data);
        }
@@ -66,8 +65,8 @@ func TestSortFloats(t *testing.T) {
 
 func TestSortStrings(t *testing.T) {
        data := strings;
-       sort.SortStrings(&data);
-       if !sort.StringsAreSorted(&data) {
+       SortStrings(&data);
+       if !StringsAreSorted(&data) {
                t.Errorf("sorted %v", strings);
                t.Errorf("   got %v", data);
        }
@@ -78,11 +77,11 @@ func TestSortLarge_Random(t *testing.T) {
        for i := 0; i < len(data); i++ {
                data[i] = rand.Intn(100);
        }
-       if sort.IntsAreSorted(data) {
+       if IntsAreSorted(data) {
                t.Fatalf("terrible rand.rand");
        }
-       sort.SortInts(data);
-       if !sort.IntsAreSorted(data) {
+       SortInts(data);
+       if !IntsAreSorted(data) {
                t.Errorf("sort didn't sort - 1M ints");
        }
 }
@@ -195,9 +194,9 @@ func TestBentleyMcIlroy(t *testing.T) {
                                                for i := 0; i < n; i++ {
                                                        mdata[i] = data[i];
                                                }
-                                               // sort.SortInts is known to be correct
+                                               // SortInts is known to be correct
                                                // because mode Sort runs after mode _Copy.
-                                               sort.SortInts(mdata);
+                                               SortInts(mdata);
                                        case _Dither:
                                                for i := 0; i < n; i++ {
                                                        mdata[i] = data[i] + i%5;
@@ -206,7 +205,7 @@ func TestBentleyMcIlroy(t *testing.T) {
 
                                        desc := fmt.Sprintf("n=%d m=%d dist=%s mode=%s", n, m, dists[dist], modes[mode]);
                                        d := &testingData{desc, t, mdata[0:n], n*lg(n)*12/10, 0};
-                                       sort.Sort(d);
+                                       Sort(d);
 
                                        // If we were testing C qsort, we'd have to make a copy
                                        // of the array and sort it ourselves and then compare
@@ -214,9 +213,9 @@ func TestBentleyMcIlroy(t *testing.T) {
                                        // the data, not (for example) overwriting it with zeros.
                                        //
                                        // In go, we don't have to be so paranoid: since the only
-                                       // mutating method sort.Sort can call is TestingData.swap,
+                                       // mutating method Sort can call is TestingData.swap,
                                        // it suffices here just to check that the final array is sorted.
-                                       if !sort.IntsAreSorted(mdata) {
+                                       if !IntsAreSorted(mdata) {
                                                t.Errorf("%s: ints not sorted", desc);
                                                t.Errorf("\t%v", mdata);
                                                t.FailNow();
index b6660cfc7057d2d19f407f684b1da3a0fcaf79f9..dcfa6066cdae8660626ce9aa114a9a64cc3efed3 100644 (file)
@@ -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=
-
 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=\
-       strings.$O\
-
-
-phases: a1
-_obj$D/strings.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/strings.a strings.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/strings.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/strings.a
 
-packages: _obj$D/strings.a
+TARG=strings
+GOFILES=\
+       strings.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/strings.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/strings.a
+include $(GOROOT)/src/Make.pkg
index a1733b3df584952bdb12923eb01e72f5460d43b6..714507b6d9bbd0e30795c0bc384d3e5cbf75c5fd 100644 (file)
@@ -5,7 +5,6 @@
 package strings
 
 import (
-       "strings";
        "testing";
 )
 
index a5cc042d7b83a5b90a51862a277f4e6b63ecb11c..2800a8470a72345099e26a3acb6aa093c98692f7 100644 (file)
@@ -2,96 +2,22 @@
 # 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 asm_${GOOS}_${GOARCH}.s errstr.go exec.go syscall.go syscall_${GOOS}.go syscall_${GOOS}_${GOARCH}.go zerrors_${GOOS}_${GOARCH}.go zsyscall_${GOOS}_${GOARCH}.go zsysnum_${GOOS}_${GOARCH}.go ztypes_${GOOS}_${GOARCH}.go >Makefile
-
-D=
-
 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=\
+TARG=syscall
+GOFILES=\
+       errstr.go\
+       exec.go\
+       syscall.go\
+       syscall_$(GOOS).go\
+       syscall_$(GOOS)_$(GOARCH).go\
+       zerrors_$(GOOS)_$(GOARCH).go\
+       zsyscall_$(GOOS)_$(GOARCH).go\
+       zsysnum_$(GOOS)_$(GOARCH).go\
+       ztypes_$(GOOS)_$(GOARCH).go\
+
+OFILES=\
        asm_$(GOOS)_$(GOARCH).$O\
-       syscall.$O\
-       zerrors_$(GOOS)_$(GOARCH).$O\
-       zsysnum_$(GOOS)_$(GOARCH).$O\
-       ztypes_$(GOOS)_$(GOARCH).$O\
-
-O2=\
-       errstr.$O\
-       zsyscall_$(GOOS)_$(GOARCH).$O\
-
-O3=\
-       syscall_$(GOOS)_$(GOARCH).$O\
-
-O4=\
-       syscall_$(GOOS).$O\
-
-O5=\
-       exec.$O\
-
-
-phases: a1 a2 a3 a4 a5
-_obj$D/syscall.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/syscall.a asm_$(GOOS)_$(GOARCH).$O syscall.$O zerrors_$(GOOS)_$(GOARCH).$O zsysnum_$(GOOS)_$(GOARCH).$O ztypes_$(GOOS)_$(GOARCH).$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/syscall.a errstr.$O zsyscall_$(GOOS)_$(GOARCH).$O
-       rm -f $(O2)
-
-a3: $(O3)
-       $(AR) grc _obj$D/syscall.a syscall_$(GOOS)_$(GOARCH).$O
-       rm -f $(O3)
-
-a4: $(O4)
-       $(AR) grc _obj$D/syscall.a syscall_$(GOOS).$O
-       rm -f $(O4)
-
-a5: $(O5)
-       $(AR) grc _obj$D/syscall.a exec.$O
-       rm -f $(O5)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/syscall.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-$(O4): a3
-$(O5): a4
-$(O6): a5
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/syscall.a
-
-packages: _obj$D/syscall.a
+       types_$(GOOS)_$(GOARCH).$O\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/syscall.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/syscall.a
+include $(GOROOT)/src/Make.pkg
index 67a529d34721d00e04a00c16559fb0e6f4234aff..12a2c0d62d0c21f6227926cb11c38cc43f06299f 100644 (file)
@@ -4,7 +4,6 @@
 
 package syscall
 
-import "syscall"
 
 func str(val int) string {  // do it here rather than with fmt to avoid dependency
        if val < 0 {
index 3dd0727f81ad1673d26707278ff79ed53e85ea54..91d8a3f8ccea698bd07922b26ca9d400b23c3de3 100644 (file)
@@ -8,7 +8,6 @@ package syscall
 
 import (
        "sync";
-       "syscall";
        "unsafe";
 )
 
index 5ee44e3e84f34eaa3d4544645a004ec593147bb4..59f35b2bfb458c457d50d47be679f10045bd5d47 100644 (file)
 // the manuals for the appropriate operating system.
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
 func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
index 49d2815b36d398f00f260218af8e6825b887fdb7..b19d4278235074dab5c10ff9435c4a95011f55e6 100644 (file)
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 const OS = "darwin"
 
index 6792109d7837299d238cfdc4f8264d76a3e85244..aa558c217f135d0f440fa760b4409f28dc04375d 100644 (file)
@@ -4,8 +4,6 @@
 
 package syscall
 
-import "syscall"
-
 func Getpagesize() int {
        return 4096
 }
index f7a93f1216901237e1165fa97a747a13723f321a..34e83ec6b45278049c9a317054ca08e46248819e 100644 (file)
@@ -4,8 +4,6 @@
 
 package syscall
 
-import "syscall"
-
 func Getpagesize() int {
        return 4096
 }
index ac77942a324cdbe7389b9e73a285c17971028ed0..10fedb93945534a4531c49b215cad307d1922e63 100644 (file)
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 const OS = "linux"
 
index b44428e119556812d13f1bec5adca71fa822625d..dc64ae79f22be8b4e3bbd049285dfb626fe11c43 100644 (file)
@@ -4,10 +4,7 @@
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 func Getpagesize() int {
        return 4096
index 4f7b33bc12adf735d0eb1674db6d7370159c6962..28d74b758e3ca0c36bdd792db2b41b9aeafe6905 100644 (file)
@@ -4,8 +4,6 @@
 
 package syscall
 
-import "syscall"
-
 //sys  Chown(path string, uid int, gid int) (errno int)
 //sys  Fchown(fd int, uid int, gid int) (errno int)
 //sys  Fstat(fd int, stat *Stat_t) (errno int)
index c83e63de3f93855e9dad761b39876b4723a92924..688649abf52380055e9ad39f4b7efa50a01ee0cc 100644 (file)
@@ -3,10 +3,7 @@
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 func getgroups(ngid int, gid *_Gid_t) (n int, errno int) {
        r0, r1, e1 := Syscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0);
index 7afb209538f6c78ae6cdf11cf7af76f9d3ffc835..28d04c62635393f28caca336746321e51bd67509 100644 (file)
@@ -3,10 +3,7 @@
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 func getgroups(ngid int, gid *_Gid_t) (n int, errno int) {
        r0, r1, e1 := Syscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0);
index 11d08d2c7a061ec5623717e1add96d926530ef77..3444c6dfbe724f49df5827dd76408dae3fa15463 100644 (file)
@@ -3,10 +3,7 @@
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 func pipe(p *[2]_C_int) (errno int) {
        r0, r1, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0);
index 743c5285b5a13d6e452902e6fac8b92ee55a34ff..7834cfbeaa9b53a42fd023f0de2d750c3c72a654 100644 (file)
@@ -3,10 +3,7 @@
 
 package syscall
 
-import (
-       "syscall";
-       "unsafe";
-)
+import "unsafe"
 
 func pipe(p *[2]_C_int) (errno int) {
        r0, r1, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0);
index 1c4518066121c8e4d4ce670ca9eecd849fa63c0e..28cb50580300f444527ea5792533b29f9d8a4762 100644 (file)
@@ -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=
-
 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=\
-       tabwriter.$O\
-
-
-phases: a1
-_obj$D/tabwriter.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/tabwriter.a tabwriter.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/tabwriter.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/tabwriter.a
 
-packages: _obj$D/tabwriter.a
+TARG=tabwriter
+GOFILES=\
+       tabwriter.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/tabwriter.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/tabwriter.a
+include $(GOROOT)/src/Make.pkg
index 7967a467433417015ed61ca7c2398523aa583bef..65641dad0e862b8b0aebef049ffe89b0a3988760 100644 (file)
@@ -7,7 +7,6 @@ package tabwriter
 import (
        "io";
        "os";
-       "tabwriter";
        "testing";
 )
 
@@ -47,7 +46,7 @@ func (b *buffer) String() string {
 }
 
 
-func write(t *testing.T, testname string, w *tabwriter.Writer, src string) {
+func write(t *testing.T, testname string, w *Writer, src string) {
        written, err := io.WriteString(w, src);
        if err != nil {
                t.Errorf("--- test: %s\n--- src:\n%s\n--- write error: %v\n", testname, src, err);
@@ -58,7 +57,7 @@ func write(t *testing.T, testname string, w *tabwriter.Writer, src string) {
 }
 
 
-func verify(t *testing.T, testname string, w *tabwriter.Writer, b *buffer, src, expected string) {
+func verify(t *testing.T, testname string, w *Writer, b *buffer, src, expected string) {
        err := w.Flush();
        if err != nil {
                t.Errorf("--- test: %s\n--- src:\n%s\n--- flush error: %v\n", testname, src, err);
@@ -75,7 +74,7 @@ func check(t *testing.T, testname string, tabwidth, padding int, padchar byte, f
        var b buffer;
        b.init(1000);
 
-       var w tabwriter.Writer;
+       var w Writer;
        w.Init(&b, tabwidth, padding, padchar, flags);
 
        // write all at once
@@ -143,7 +142,7 @@ var tests = []entry {
 
        entry{
                "4b",
-               8, 1, '.', tabwriter.AlignRight,
+               8, 1, '.', AlignRight,
                "\t",  // '\t' terminates an empty cell on last line - nothing to print
                ""
        },
@@ -171,7 +170,7 @@ var tests = []entry {
 
        entry{
                "5d",
-               8, 1, '.', tabwriter.AlignRight,
+               8, 1, '.', AlignRight,
                "*\t*\t",
                ".......**"
        },
@@ -220,14 +219,14 @@ var tests = []entry {
 
        entry{
                "7f",
-               8, 1, '.', tabwriter.FilterHTML,
+               8, 1, '.', FilterHTML,
                "f) f&lt;o\t<b>bar</b>\t\n",
                "f) f&lt;o..<b>bar</b>.....\n"
        },
 
        entry{
                "7g",
-               8, 1, '.', tabwriter.FilterHTML,
+               8, 1, '.', FilterHTML,
                "g) f&lt;o\t<b>bar</b>\t non-terminated entity &amp",
                "g) f&lt;o..<b>bar</b>..... non-terminated entity &amp"
        },
@@ -251,7 +250,7 @@ var tests = []entry {
 
        entry{
                "9b",
-               0, 0, '.', tabwriter.FilterHTML,
+               0, 0, '.', FilterHTML,
                "1\t2<!---\f--->\t3\t4\n"  // \f inside HTML is ignored
                "11\t222\t3333\t44444\n",
 
@@ -297,7 +296,7 @@ var tests = []entry {
 
        entry{
                "12a",
-               8, 1, ' ', tabwriter.AlignRight,
+               8, 1, ' ', AlignRight,
                "a\tè\tc\t\n"
                "aa\tèèè\tcccc\tddddd\t\n"
                "aaa\tèèèè\t\n",
@@ -373,7 +372,7 @@ var tests = []entry {
 
        entry{
                "13c",
-               8, 1, '\t', tabwriter.FilterHTML,
+               8, 1, '\t', FilterHTML,
                "4444\t333\t22\t1\t333\n"
                "999999999\t22\n"
                "7\t22\n"
@@ -393,7 +392,7 @@ var tests = []entry {
 
        entry{
                "14",
-               0, 2, ' ', tabwriter.AlignRight,
+               0, 2, ' ', AlignRight,
                ".0\t.3\t2.4\t-5.1\t\n"
                "23.0\t12345678.9\t2.4\t-989.4\t\n"
                "5.1\t12.0\t2.4\t-7.0\t\n"
index e91c0881865c5c45d9c3a322363a6653e4ac97ff..832f5046cc004d2133066ff262d2b1872c9b0919 100644 (file)
@@ -2,67 +2,11 @@
 # 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=
-
 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=\
-       format.$O\
-
-O2=\
-       template.$O\
-
-
-phases: a1 a2
-_obj$D/template.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/template.a format.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/template.a template.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/template.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/template.a
 
-packages: _obj$D/template.a
+TARG=template
+GOFILES=\
+       format.go\
+       template.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/template.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/template.a
+include $(GOROOT)/src/Make.pkg
index 956e452576a1967bfe9be3eda24d046083e8c936..a752655354c787f2657c0bd076a0e39dc9e8ec34 100644 (file)
@@ -63,7 +63,6 @@ import (
        "reflect";
        "runtime";
        "strings";
-       "template";
 )
 
 // Errors returned during parsing and execution.  Users may extract the information and reformat
@@ -442,8 +441,7 @@ func (t *Template) parseSimple(item []byte) (done bool, tok int, w []string) {
        return false, tok, w
 }
 
-// parseSection and parseRepeated are mutually recursive
-func (t *Template) parseSection(words []string) *sectionElement
+// parseRepeated and parseSection are mutually recursive
 
 func (t *Template) parseRepeated(words []string) *repeatedElement {
        r := new(repeatedElement);
@@ -641,10 +639,6 @@ func (t *Template) writeVariable(v *variableElement, st *state) {
        t.execError(st, v.linenum, "missing formatter %s for variable %s", v.formatter, v.name)
 }
 
-// execute{|Element|Section|Repeated} are mutually recursive
-func (t *Template) executeSection(s *sectionElement, st *state)
-func (t *Template) executeRepeated(r *repeatedElement, st *state)
-
 // Execute element i.  Return next index to execute.
 func (t *Template) executeElement(i int, st *state) int {
        switch elem := t.elems.At(i).(type) {
index c293f6646a2bdb17c5f750ac5f5054d052ae95d3..f31f43d1eb39d0bcdb70b6fb9a0b8ced6dd314c8 100644 (file)
@@ -10,7 +10,6 @@ import (
        "io";
        "os";
        "reflect";
-       "template";
        "testing";
 )
 
index eab8a4cf0ee03a1c853077c28d91e175946bb523..809bb56427aad9de70e75528dd2e5f3e5f38df1b 100644 (file)
@@ -2,68 +2,11 @@
 # 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=
-
 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=\
-       regexp.$O\
-
-O2=\
-       testing.$O\
-
-
-phases: a1 a2
-_obj$D/testing.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/testing.a regexp.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/testing.a testing.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/testing.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/testing.a
 
-packages: _obj$D/testing.a
+TARG=testing
+GOFILES=\
+       regexp.go\
+       testing.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/testing.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/testing.a
+include $(GOROOT)/src/Make.pkg
index 1d01041f53dda6346b9c7da58f0a7184bc5ff8e9..b223fb9321441fa0d125c1bd4f2570fe2b172071 100644 (file)
@@ -2,60 +2,11 @@
 # 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=/testing/
-
 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=\
-       logger.$O\
-       reader.$O\
-
-
-phases: a1
-_obj$D/iotest.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/iotest.a logger.$O reader.$O
-       rm -f $(O1)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/iotest.a
-
-$(O1): newpkg
-$(O2): a1
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/iotest.a
 
-packages: _obj$D/iotest.a
+TARG=testing/iotest
+GOFILES=\
+       logger.go\
+       reader.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/iotest.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/iotest.a
+include $(GOROOT)/src/Make.pkg
index ae698264f1fa2c8ec9588f8f4d3ddcf8cbc8d3e7..2b12250f589a8ce41a0c6648496f646270249c65 100644 (file)
@@ -306,8 +306,6 @@ func newParser(re *Regexp) *parser {
        return p;
 }
 
-func (p *parser) regexp() (start, end instr)
-
 var iNULL instr
 
 func special(c int) bool {
index 27612939389c16f8011107ff6ab5b4fe5147d3be..617efa4abffe9e506b75079bdd1611462a2bc38b 100644 (file)
@@ -16,7 +16,6 @@ import (
        "fmt";
        "os";
        "runtime";
-       "testing";
 )
 
 // Report as tests are run; default is silent for success.
index de1677b8de5920a1209169232b29a82552dee4db..7ab29c6c4b19fd1717bd0ecc5646f9986e58fa64 100644 (file)
@@ -2,67 +2,11 @@
 # 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=
-
 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=\
-       letter.$O\
-
-O2=\
-       decimaldigit.$O\
-
-
-phases: a1 a2
-_obj$D/unicode.a: phases
-
-a1: $(O1)
-       $(AR) grc _obj$D/unicode.a letter.$O
-       rm -f $(O1)
-
-a2: $(O2)
-       $(AR) grc _obj$D/unicode.a decimaldigit.$O
-       rm -f $(O2)
-
-
-newpkg: clean
-       mkdir -p _obj$D
-       $(AR) grc _obj$D/unicode.a
-
-$(O1): newpkg
-$(O2): a1
-$(O3): a2
-
-nuke: clean
-       rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/unicode.a
 
-packages: _obj$D/unicode.a
+TARG=unicode
+GOFILES=\
+       decimaldigit.go\
+       letter.go\
 
-install: packages
-       test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D
-       cp _obj$D/unicode.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/unicode.a
+include $(GOROOT)/src/Make.pkg
index 1165e3ae15a35dc662002205854368551fb87684..ab65b433d4f7d5b324c34d45cb777070b77d4fb3 100644 (file)
@@ -9,8 +9,6 @@ package unicode
 // These ranges are the characters with the third field "Nd".
 // Should generate automatically etc.
 
-import "unicode"
-
 // Decimal digit is the set of Unicode characters with the "decimal digit" property.
 var DecimalDigit = []Range{
        Range{0x0030, 0x0039, 1},
index 393846e2e927a0cc926d7c35568711785e68de42..05d75b4b2a170d0d55295870d960f87290da913c 100644 (file)
@@ -4,10 +4,7 @@
 
 package unicode
 
-import (
-       "testing";
-       "unicode";
-)
+import "testing"
 
 // To get data:
 //     grep '^....;[^;]*;Nd;' UnicodeData.txt
index 8e4290d6dad5ffd06f22c7cb8353698914c81380..15a0a0eed6cd7b5413ad49c3a04ac8837f0aa7ab 100644 (file)
@@ -4,10 +4,7 @@
 
 package unicode
 
-import (
-       "testing";
-       "unicode";
-)
+import "testing"
 
 var upper = []int{
        0x41,