Add some mutable variants of vector functions to the standard library

This commit is contained in:
Patrick Walton
2011-03-18 13:53:49 -07:00
parent 8b82a549bf
commit 368eb4bab6
2 changed files with 31 additions and 0 deletions

View File

@@ -100,6 +100,12 @@ vec_alloc(rust_task *task, type_desc *t, type_desc *elem_t, size_t n_elts)
return vec;
}
extern "C" CDECL rust_vec*
vec_alloc_mut(rust_task *task, type_desc *t, type_desc *elem_t, size_t n_elts)
{
return vec_alloc(task, t, elem_t, n_elts);
}
extern "C" CDECL void *
vec_buf(rust_task *task, type_desc *ty, rust_vec *v, size_t offset)
{