rustc: Implement on-heap resizing for interior vectors

This commit is contained in:
Patrick Walton
2011-06-14 18:22:36 -07:00
parent b7f043eeb7
commit c6be352f73
3 changed files with 23 additions and 28 deletions

View File

@@ -197,8 +197,8 @@ rust_ivec_heap
union
rust_ivec_payload
{
uint8_t data[]; // if on stack
struct rust_ivec_heap *ptr; // if on heap
rust_ivec_heap *ptr; // if on heap
uint8_t data[]; // if on stack
};
struct