stdlib: Add a pointer equality function to the standard library and a test case

This commit is contained in:
Patrick Walton
2011-04-21 16:44:17 -07:00
parent 5dbf554bb3
commit 735435bf96
5 changed files with 27 additions and 0 deletions

View File

@@ -468,6 +468,11 @@ rust_file_is_dir(rust_task *task, rust_str *path) {
extern "C" CDECL FILE* rust_get_stdin() {return stdin;}
extern "C" CDECL FILE* rust_get_stdout() {return stdout;}
extern "C" CDECL int
rust_ptr_eq(rust_task *task, type_desc *t, rust_box *a, rust_box *b) {
return a == b;
}
//
// Local Variables:
// mode: C++