From ecc080ed0b4aa8a93e6e9f190c7e2638ff13bbca Mon Sep 17 00:00:00 2001 From: Rafael Ávila de Espíndola Date: Tue, 28 Jun 2011 08:21:13 -0400 Subject: Use "" in the native_name as an indication that no extra options have to be passed to the "linker". Use that for libc. --- src/test/run-pass/binops.rs | 2 +- src/test/run-pass/import-glob-1.rs | 2 +- src/test/run-pass/native-opaque-type.rs | 2 +- src/test/run-pass/native2.rs | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/test') diff --git a/src/test/run-pass/binops.rs b/src/test/run-pass/binops.rs index e265028af8c..4e3dee3ccf9 100644 --- a/src/test/run-pass/binops.rs +++ b/src/test/run-pass/binops.rs @@ -112,7 +112,7 @@ fn test_fn() { assert (h1 >= h2); } -native "rust" mod native_mod = "c" { +native "rust" mod native_mod = "" { fn str_byte_len(str s) -> vec[u8]; fn str_alloc(uint n_bytes) -> str; } diff --git a/src/test/run-pass/import-glob-1.rs b/src/test/run-pass/import-glob-1.rs index 717e722a87a..72f44d12c1a 100644 --- a/src/test/run-pass/import-glob-1.rs +++ b/src/test/run-pass/import-glob-1.rs @@ -12,7 +12,7 @@ mod a1 { // } // | | | // | | | mod a2 { // | | | - native mod b1 = "c" { // | | | + native mod b1 = "" { // | | | import a1::b2::*; // | <-/ -/ export word_traveler; // | } // | diff --git a/src/test/run-pass/native-opaque-type.rs b/src/test/run-pass/native-opaque-type.rs index 1a304fddf83..fa4a5e25e5a 100644 --- a/src/test/run-pass/native-opaque-type.rs +++ b/src/test/run-pass/native-opaque-type.rs @@ -1,6 +1,6 @@ -native "cdecl" mod libc = "c" { +native "cdecl" mod libc = "" { type file_handle; } diff --git a/src/test/run-pass/native2.rs b/src/test/run-pass/native2.rs index 40bb8304d7f..d03440462ce 100644 --- a/src/test/run-pass/native2.rs +++ b/src/test/run-pass/native2.rs @@ -5,14 +5,14 @@ native "rust" mod rustrt { fn vec_buf[T](vec[T] v, uint offset) -> vbuf; } -native "rust" mod bar = "c" { } +native "rust" mod bar = "" { } -native "cdecl" mod zed = "c" { } +native "cdecl" mod zed = "" { } -native "cdecl" mod libc = "c" { +native "cdecl" mod libc = "" { fn write(int fd, rustrt::vbuf buf, uint count) -> int; } -native "cdecl" mod baz = "c" { } +native "cdecl" mod baz = "" { } fn main(vec[str] args) { } \ No newline at end of file -- cgit 1.4.1-3-g733a5