ecc080ed0b
be passed to the "linker". Use that for libc.
18 lines
314 B
Rust
18 lines
314 B
Rust
|
|
|
|
native "rust" mod rustrt {
|
|
type vbuf;
|
|
fn vec_buf[T](vec[T] v, uint offset) -> vbuf;
|
|
}
|
|
|
|
native "rust" mod bar = "" { }
|
|
|
|
native "cdecl" mod zed = "" { }
|
|
|
|
native "cdecl" mod libc = "" {
|
|
fn write(int fd, rustrt::vbuf buf, uint count) -> int;
|
|
}
|
|
|
|
native "cdecl" mod baz = "" { }
|
|
|
|
fn main(vec[str] args) { } |