librustc: Make all external functions unsafe. r=tjc

This commit is contained in:
Patrick Walton
2013-01-10 21:23:07 -08:00
parent d97ab7888f
commit ca71c6ec5b
55 changed files with 4279 additions and 3101 deletions

View File

@@ -160,13 +160,13 @@ pub mod icu {
#[link_name = "icuuc"]
#[abi = "cdecl"]
pub extern mod libicu {
pure fn u_hasBinaryProperty(c: UChar32, which: UProperty) -> UBool;
pure fn u_isdigit(c: UChar32) -> UBool;
pure fn u_islower(c: UChar32) -> UBool;
pure fn u_isspace(c: UChar32) -> UBool;
pure fn u_isupper(c: UChar32) -> UBool;
pure fn u_tolower(c: UChar32) -> UChar32;
pure fn u_toupper(c: UChar32) -> UChar32;
unsafe fn u_hasBinaryProperty(c: UChar32, which: UProperty) -> UBool;
unsafe fn u_isdigit(c: UChar32) -> UBool;
unsafe fn u_islower(c: UChar32) -> UBool;
unsafe fn u_isspace(c: UChar32) -> UBool;
unsafe fn u_isupper(c: UChar32) -> UBool;
unsafe fn u_tolower(c: UChar32) -> UChar32;
unsafe fn u_toupper(c: UChar32) -> UChar32;
}
}