diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-19 17:11:54 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-19 17:11:54 -0800 |
| commit | c3077f7606b8f45d010d5d87c7fa748ef5b88368 (patch) | |
| tree | cb81af416ec881adddae83a041978d025019be1f /src/runtime/runtime.h | |
| parent | 33907d1346f13f0ce30a3b3fce73965df8248b74 (diff) | |
| download | go-c3077f7606b8f45d010d5d87c7fa748ef5b88368.tar.xz | |
[] and struct in interfaces.
other [] cleanup.
convert() is gone.
R=r
DELTA=352 (144 added, 68 deleted, 140 changed)
OCL=21660
CL=21662
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index c0f943abf4..bb970da8af 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -48,8 +48,10 @@ typedef union Note Note; typedef struct Stktop Stktop; typedef struct String *string; typedef struct Usema Usema; -typedef struct SigTab SigTab; -typedef struct MCache MCache; +typedef struct SigTab SigTab; +typedef struct MCache MCache; +typedef struct Iface Iface; +typedef struct Itype Itype; /* * per cpu declaration @@ -105,6 +107,11 @@ struct String int32 len; byte str[1]; }; +struct Iface +{ + Itype *type; + void *data[1]; // could make bigger later +}; struct Array { // must not move anything |
