diff options
| author | Marijn Haverbeke <[email protected]> | 2011-05-12 17:24:54 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-05-12 21:30:44 +0200 |
| commit | 3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2 (patch) | |
| tree | 508982ed2f789aedd89eebd529343d9dc88b8e01 /src/lib/sys.rs | |
| parent | Transitional change to make extfmt output lowercase module name (diff) | |
| download | rust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.tar.xz rust-3816e57fd2a8ab19e4ac6d4b3ddd5b49d5973ff2.zip | |
Downcase std modules again, move to :: for module dereferencing
This should be a snapshot transition.
Diffstat (limited to 'src/lib/sys.rs')
| -rw-r--r-- | src/lib/sys.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/sys.rs b/src/lib/sys.rs new file mode 100644 index 00000000..77eab003 --- /dev/null +++ b/src/lib/sys.rs @@ -0,0 +1,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: |