aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-19 12:05:22 -0800
committerRuss Cox <rsc@golang.org>2008-12-19 12:05:22 -0800
commiteee50ae1ac25dec3047e111fd62ee1f83e874e26 (patch)
treed43976b2cd9eccadecab471683f3248c928480ce /src/runtime/runtime.h
parentcbff09d6666bf4c2e4152fba5c858ae481a263d5 (diff)
downloadgo-eee50ae1ac25dec3047e111fd62ee1f83e874e26.tar.xz
chan and map of [] and struct
R=r DELTA=192 (145 added, 8 deleted, 39 changed) OCL=21609 CL=21614
Diffstat (limited to 'src/runtime/runtime.h')
-rw-r--r--src/runtime/runtime.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index fc4e5ba462..c0f943abf4 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -215,9 +215,22 @@ struct Func
#define nil ((void*)0)
/*
+ * known to compiler
+ */
+enum
+{
+ ASIMP = 0,
+ ASTRING,
+ APTR,
+ AINTER,
+ AARRAY,
+ ASTRUCT,
+};
+
+/*
* external data
*/
-extern Alg algarray[4];
+extern Alg algarray[];
extern string emptystring;
G* allg;
int32 goidgen;