aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-19 17:11:54 -0800
committerRuss Cox <rsc@golang.org>2008-12-19 17:11:54 -0800
commitc3077f7606b8f45d010d5d87c7fa748ef5b88368 (patch)
treecb81af416ec881adddae83a041978d025019be1f /src/runtime/runtime.h
parent33907d1346f13f0ce30a3b3fce73965df8248b74 (diff)
downloadgo-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.h11
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