about summary refs log tree commit diff
path: root/src/libstd/rt/stack.rs
diff options
context:
space:
mode:
authorEric Reed <ereed@mozilla.com>2013-06-17 12:45:40 -0700
committerEric Reed <ereed@mozilla.com>2013-06-17 12:45:40 -0700
commit35f3fa6383b5ed278879bfe5c74a913b885a2d4f (patch)
treebe8ca61c0beccd0b4c5d1e486c5322c1181c49f5 /src/libstd/rt/stack.rs
parent33ae193a3c1a156e73bf6880366c9785dd4b7393 (diff)
parent319cf6e465f203c794d71800808c2bd60a1e7613 (diff)
downloadrust-35f3fa6383b5ed278879bfe5c74a913b885a2d4f.tar.gz
rust-35f3fa6383b5ed278879bfe5c74a913b885a2d4f.zip
Merge remote-tracking branch 'upstream/io' into io
Conflicts:
	src/libstd/rt/uvio.rs
Diffstat (limited to 'src/libstd/rt/stack.rs')
-rw-r--r--src/libstd/rt/stack.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs
index ec56e65931c..b0e87a62c8b 100644
--- a/src/libstd/rt/stack.rs
+++ b/src/libstd/rt/stack.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 use container::Container;
-use ptr::Ptr;
+use ptr::RawPtr;
 use vec;
 use ops::Drop;
 use libc::{c_uint, uintptr_t};
@@ -19,8 +19,8 @@ pub struct StackSegment {
     valgrind_id: c_uint
 }
 
-pub impl StackSegment {
-    fn new(size: uint) -> StackSegment {
+impl StackSegment {
+    pub fn new(size: uint) -> StackSegment {
         unsafe {
             // Crate a block of uninitialized values
             let mut stack = vec::with_capacity(size);
@@ -38,12 +38,12 @@ pub impl StackSegment {
     }
 
     /// Point to the low end of the allocated stack
-    fn start(&self) -> *uint {
-      vec::raw::to_ptr(self.buf) as *uint
+    pub fn start(&self) -> *uint {
+        vec::raw::to_ptr(self.buf) as *uint
     }
 
     /// Point one word beyond the high end of the allocated stack
-    fn end(&self) -> *uint {
+    pub fn end(&self) -> *uint {
         vec::raw::to_ptr(self.buf).offset(self.buf.len()) as *uint
     }
 }