diff options
| author | Ken Thompson <ken@golang.org> | 2008-08-27 17:28:30 -0700 |
|---|---|---|
| committer | Ken Thompson <ken@golang.org> | 2008-08-27 17:28:30 -0700 |
| commit | 66a603c9869a4b7eaebb08e39c16d0947a961574 (patch) | |
| tree | 6ae6ed7d2f31f727c0a999d0455f307b02e4d22d /src/runtime/runtime.h | |
| parent | 30fd44cf9d0fcfc07c08d21d01d0c8b9a431d2cc (diff) | |
| download | go-66a603c9869a4b7eaebb08e39c16d0947a961574.tar.xz | |
arrays
R=r
OCL=14603
CL=14603
Diffstat (limited to 'src/runtime/runtime.h')
| -rw-r--r-- | src/runtime/runtime.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 591af542dc..c7471cf3e6 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -37,6 +37,7 @@ typedef struct String *string; typedef struct Sigs Sigs; typedef struct Sigi Sigi; typedef struct Map Map; +typedef struct Array Array; typedef struct Gobuf Gobuf; typedef struct G G; typedef struct M M; @@ -99,6 +100,14 @@ struct Sigi uint32 hash; uint32 offset; }; + +struct Array +{ // must not move anything + byte* array; // actual data + uint32 nel; // number of elements + uint32 cap; // allocate3d number of elements + byte b[8]; // actual array - may not be contig +}; struct Map { Sigi* si; |
