convert gob to whole-package compilation.

had to reorder some init code.

R=r
DELTA=136  (15 added, 110 deleted, 11 changed)
OCL=33071
CL=33102
This commit is contained in:
Russ Cox 2009-08-12 13:19:27 -07:00
parent b04ac108fd
commit a5bf45e389
9 changed files with 26 additions and 121 deletions

View file

@ -9,7 +9,6 @@ package gob
import (
"bytes";
"gob";
"io";
"math";
"os";
@ -40,7 +39,7 @@ func newDecodeState(b *bytes.Buffer) *decodeState {
}
func overflow(name string) os.ErrorString {
return os.ErrorString(`value for "` + name + `" out of range`);
return os.ErrorString(`value for "` + name + `" out of range`);
}
// decodeUintReader reads an encoded unsigned integer from an io.Reader.
@ -512,9 +511,6 @@ var decIgnoreOpMap = map[typeId] decOp {
tString: ignoreUint8Array,
}
func getDecEnginePtr(wireId typeId, rt reflect.Type) (enginePtr **decEngine, err os.Error)
func getIgnoreEnginePtr(wireId typeId) (enginePtr **decEngine, err os.Error)
// Return the decoding op for the base type under rt and
// the indirection count to reach it.
func decOpFor(wireId typeId, rt reflect.Type, name string) (decOp, int, os.Error) {