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/box.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/box.rs')
| -rw-r--r-- | src/lib/box.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/box.rs b/src/lib/box.rs new file mode 100644 index 00000000..4429fd6a --- /dev/null +++ b/src/lib/box.rs @@ -0,0 +1,8 @@ +export rustrt; + +native "rust" mod rustrt { + fn rust_ptr_eq[T](@T a, @T b) -> int; +} + +fn ptr_eq[T](@T a, @T b) -> bool { ret rustrt::rust_ptr_eq[T](a, b) != 0; } + |