about summary refs log tree commit diff
path: root/src/lib/sys.rs
blob: 77eab003573a683a547e463e5f9af125b2f4e915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export rustrt;

native "rust" mod rustrt {

    // Explicitly re-export native stuff we want to be made
    // available outside this crate. Otherwise it's
    // visible-in-crate, but not re-exported.

    export last_os_error;
    export size_of;
    export align_of;
    export refcount;
    export do_gc;

    fn last_os_error() -> str;
    fn size_of[T]() -> uint;
    fn align_of[T]() -> uint;
    fn refcount[T](@T t) -> uint;
    fn do_gc();
    fn unsupervise();
}

// Local Variables:
// mode: rust;
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End: