diff options
Diffstat (limited to 'src/pkg/runtime/typekind.h')
| -rw-r--r-- | src/pkg/runtime/typekind.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/pkg/runtime/typekind.h b/src/pkg/runtime/typekind.h new file mode 100644 index 0000000000..8c58872e17 --- /dev/null +++ b/src/pkg/runtime/typekind.h @@ -0,0 +1,38 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +enum { + KindBool = 1, + KindInt, + KindInt8, + KindInt16, + KindInt32, + KindInt64, + KindUint, + KindUint8, + KindUint16, + KindUint32, + KindUint64, + KindUintptr, + KindFloat32, + KindFloat64, + KindComplex64, + KindComplex128, + KindArray, + KindChan, + KindFunc, + KindInterface, + KindMap, + KindPtr, + KindSlice, + KindString, + KindStruct, + KindUnsafePointer, + + KindNoPointers = 1<<7, + + // size of Type interface header + CommonType structure. + CommonSize = 2*sizeof(void*) + 6*sizeof(void*) + 8, +}; + |
