about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-03-18 13:53:49 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-03-18 13:53:49 -0700
commit368eb4bab615feb99e203eecdcec6d0be02f5b42 (patch)
tree4c6349efdd41baf1caa8d1a774166f0f6b5372b0 /src/rt/rust_builtin.cpp
parent8b82a549bf89f101efc19638357d360a968b1348 (diff)
downloadrust-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.cpp6
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)
 {