2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-02-01 12:40:04 -06:00
|
|
|
native "rust" mod rustrt {
|
2011-02-02 09:43:57 -06:00
|
|
|
type vbuf;
|
2011-02-04 10:10:04 -06:00
|
|
|
fn vec_buf[T](vec[T] v, uint offset) -> vbuf;
|
2011-02-01 12:40:04 -06:00
|
|
|
}
|
|
|
|
|
2011-06-27 14:24:44 -05:00
|
|
|
native "rust" mod bar = "c" { }
|
2011-02-23 13:06:37 -06:00
|
|
|
|
2011-06-27 14:24:44 -05:00
|
|
|
native "cdecl" mod zed = "c" { }
|
2011-02-23 13:06:37 -06:00
|
|
|
|
2011-06-27 14:24:44 -05:00
|
|
|
native "cdecl" mod libc = "c" {
|
2011-05-12 10:24:54 -05:00
|
|
|
fn write(int fd, rustrt::vbuf buf, uint count) -> int;
|
2011-02-07 11:46:28 -06:00
|
|
|
}
|
|
|
|
|
2011-06-27 14:24:44 -05:00
|
|
|
native "cdecl" mod baz = "c" { }
|
2011-02-23 13:06:37 -06:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main(vec[str] args) { }
|