diff options
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; |
