1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
native "rust" mod rustrt { type vbuf; fn vec_buf[T](vec[T] v, uint offset) -> vbuf; } native "rust" mod bar = "foo" { } native mod zed { } native mod libc = "libc.dylib" { fn write(int fd, rustrt::vbuf buf, uint count) -> int; } native "cdecl" mod baz { } fn main(vec[str] args) { }