diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2011-03-18 13:53:49 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2011-03-18 13:53:49 -0700 |
| commit | 368eb4bab615feb99e203eecdcec6d0be02f5b42 (patch) | |
| tree | 4c6349efdd41baf1caa8d1a774166f0f6b5372b0 /src/rt/rust_builtin.cpp | |
| parent | 8b82a549bf89f101efc19638357d360a968b1348 (diff) | |
| download | rust-368eb4bab615feb99e203eecdcec6d0be02f5b42.tar.gz rust-368eb4bab615feb99e203eecdcec6d0be02f5b42.zip | |
Add some mutable variants of vector functions to the standard library
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 1f17fc8c075..1d8f8ba82aa 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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) { |
