Issue #3678: Remove wrappers and call foreign functions directly

This commit is contained in:
Niko Matsakis 2013-05-21 15:25:44 -04:00
parent c178b52fe5
commit 303f650ecf
28 changed files with 1751 additions and 1620 deletions

View file

@ -8,15 +8,15 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//error-pattern:libc::c_int or libc::c_long should be used
#[forbid(ctypes)];
mod xx {
extern {
pub fn strlen(str: *u8) -> uint;
pub fn foo(x: int, y: uint);
pub fn strlen(str: *u8) -> uint; //~ ERROR found rust type `uint`
pub fn foo(x: int, y: uint); //~ ERROR found rust type `int`
//~^ ERROR found rust type `uint`
}
}
fn main() {
// let it fail to verify warning message
fail!()
}

View file

@ -8,9 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-win32 #5745
// xfail-macos Broken on mac i686
struct TwoU16s {
one: u16, two: u16
}

View file

@ -8,9 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-win32 #5745
// xfail-macos Broken on mac i686
struct TwoU8s {
one: u8, two: u8
}

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// xfail-test - FIXME(#8538) some kind of problem linking induced by extern "C" fns that I do not understand
// xfail-fast - windows doesn't like this
// Smallest hello world with no runtime