Use ctypes in native function declarations

This commit is contained in:
Haitao Li
2012-01-16 18:21:01 +08:00
parent f03eb96f39
commit dde41869ce
17 changed files with 252 additions and 223 deletions

View File

@@ -5,6 +5,7 @@
import result::{ok, err};
import io::writer_util;
import core::ctypes;
export test_name;
export test_fn;
@@ -28,7 +29,7 @@ export joinable;
#[abi = "cdecl"]
native mod rustrt {
fn sched_threads() -> uint;
fn sched_threads() -> ctypes::size_t;
}
// The name of a test. By convention this follows the rules for rust