aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_vec.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-13 14:23:49 -0700
committerGraydon Hoare <[email protected]>2010-07-13 14:23:49 -0700
commit40d6aacb822c4e5d7e2d3c743ffe54de7acbad86 (patch)
tree907a3ea4c6d1fff14240ddf2d4a14931cfec91fd /src/lib/_vec.rs
parentAccept effect-qualified local item declarations. (diff)
downloadrust-40d6aacb822c4e5d7e2d3c743ffe54de7acbad86.tar.xz
rust-40d6aacb822c4e5d7e2d3c743ffe54de7acbad86.zip
Add differently-typed refcount synonyms to _str and _vec.
Diffstat (limited to 'src/lib/_vec.rs')
-rw-r--r--src/lib/_vec.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/_vec.rs b/src/lib/_vec.rs
index 3074df2c..06e738f5 100644
--- a/src/lib/_vec.rs
+++ b/src/lib/_vec.rs
@@ -6,6 +6,7 @@ native "rust" mod rustrt {
fn vec_buf[T](vec[T] v) -> vbuf;
fn vec_len[T](vec[T] v) -> uint;
fn vec_alloc[T](uint n_elts) -> vec[T];
+ fn refcount[T](vec[T] v) -> uint;
}
fn alloc[T](uint n_elts) -> vec[T] {