github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/runtime/typekind.h (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // PtrSize vs sizeof(void*): This file is also included from src/cmd/ld/... 6 // which defines PtrSize to be different from sizeof(void*) when crosscompiling. 7 8 enum { 9 KindBool = 1, 10 KindInt, 11 KindInt8, 12 KindInt16, 13 KindInt32, 14 KindInt64, 15 KindUint, 16 KindUint8, 17 KindUint16, 18 KindUint32, 19 KindUint64, 20 KindUintptr, 21 KindFloat32, 22 KindFloat64, 23 KindComplex64, 24 KindComplex128, 25 KindArray, 26 KindChan, 27 KindFunc, 28 KindInterface, 29 KindMap, 30 KindPtr, 31 KindSlice, 32 KindString, 33 KindStruct, 34 KindUnsafePointer, 35 36 KindNoPointers = 1<<7, 37 38 // size of Type structure. 39 CommonSize = 6*PtrSize + 8, 40 }; 41