~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/runtime/typekind.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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