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

@@ -55,7 +55,7 @@ export try;
#[abi = "rust-intrinsic"]
native mod rusti {
// these must run on the Rust stack so that they can swap stacks etc:
fn task_sleep(task: *rust_task, time_in_us: uint, &killed: bool);
fn task_sleep(task: *rust_task, time_in_us: c::size_t, &killed: bool);
}
type rust_closure = {