~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-11-18 15:12:26 UTC
  • mfrom: (14.2.12 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141118151226-zug7vn93mn3dtiz3
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - Support co-installability with gccgo-go tool:
    - d/rules,golang-go.install: Rename bin/go -> bin/golang-go
    - d/golang-go.{postinst,prerm}: Install/remove /usr/bin/go using
      alternatives.
  - d/copyright: Amendments for full compiliance with copyright format.
  - d/control: Demote golang-go.tools to Suggests to support Ubuntu MIR.
  - dropped patches (now upstream):
    - d/p/issue27650045_40001_50001.diff
    - d/p/issue28050043_60001_70001.diff
    - d/p/issue54790044_100001_110001.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
typedef struct IMethod IMethod;
16
16
typedef struct SliceType SliceType;
17
17
typedef struct FuncType FuncType;
18
 
typedef struct PtrType PtrType;
19
18
 
20
 
// Needs to be in sync with typekind.h/CommonSize
 
19
// Needs to be in sync with ../../cmd/ld/decodesym.c:/^commonsize
21
20
struct Type
22
21
{
23
22
        uintptr size;
31
30
        String *string;
32
31
        UncommonType *x;
33
32
        Type *ptrto;
 
33
        byte *zero;  // ptr to the zero value for this type
34
34
};
35
35
 
36
36
struct Method
100
100
        Type;
101
101
        Type *elem;
102
102
};
103
 
 
104
 
// Here instead of in runtime.h because it uses the type names.
105
 
bool    runtime·addfinalizer(void*, FuncVal *fn, uintptr, Type*, PtrType*);
106
 
bool    runtime·getfinalizer(void *p, bool del, FuncVal **fn, uintptr *nret, Type**, PtrType**);