R=rsc
DELTA=9 (3 added, 3 deleted, 3 changed)
OCL=24640
CL=24653
import (
"utf8";
"sync";
+ "unsafe";
)
type Type interface
UintptrKind;
)
-// Int is guaranteed large enough to store a size.
-var ptrsize int
-var interfacesize int
+var tmp_interface interface{} // used just to compute sizes of these constants
+const (
+ ptrsize = unsafe.Sizeof(&tmp_interface);
+ interfacesize = unsafe.Sizeof(tmp_interface);
+)
var missingString = "$missing$" // syntactic name for undefined type names
var dotDotDotString = "..."
}
func init() {
- ptrsize = 8; // TODO: compute this
- interfacesize = 2*ptrsize; // TODO: compute this
-
lock(); // not necessary because of init ordering but be safe.
types = make(map[string] Type);