From f154da9e12608589e8d5f0508f908a0c3e88a1bb Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 15 Jan 2015 11:54:00 -0700 Subject: Imported Upstream version 1.4 --- src/runtime/typekind.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/runtime/typekind.h (limited to 'src/runtime/typekind.h') diff --git a/src/runtime/typekind.h b/src/runtime/typekind.h new file mode 100644 index 000000000..e0fe177bb --- /dev/null +++ b/src/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, + + KindDirectIface = 1<<5, + KindGCProg = 1<<6, // Type.gc points to GC program + KindNoPointers = 1<<7, + KindMask = (1<<5)-1, +}; + -- cgit v1.2.3