Remove estrs and evecs from runtime. Issue #855
This commit is contained in:
@@ -164,36 +164,6 @@ isaac_init(sched_or_kernel *sched, randctx *rctx)
|
||||
randinit(rctx, 1);
|
||||
}
|
||||
|
||||
// Vectors (rust-user-code level).
|
||||
|
||||
struct
|
||||
rust_evec
|
||||
{
|
||||
RUST_REFCOUNTED(rust_evec)
|
||||
|
||||
size_t alloc;
|
||||
size_t fill;
|
||||
size_t pad; // Pad to align data[0] to 16 bytes.
|
||||
uint8_t data[];
|
||||
rust_evec(size_t alloc, size_t fill,
|
||||
uint8_t const *d)
|
||||
: ref_count(1),
|
||||
alloc(alloc),
|
||||
fill(fill)
|
||||
{
|
||||
if (d)
|
||||
memcpy(&data[0], d, fill);
|
||||
}
|
||||
~rust_evec() {}
|
||||
|
||||
inline void *operator new(size_t size, void *mem) {
|
||||
return mem;
|
||||
}
|
||||
};
|
||||
|
||||
// Strings are just exterior vecs
|
||||
typedef rust_evec rust_str;
|
||||
|
||||
// Interior vectors (rust-user-code level).
|
||||
|
||||
struct
|
||||
|
||||
Reference in New Issue
Block a user