From 87e44af2f2731ea59207aef456caa391ef230645 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 5 Mar 2013 12:21:02 -0800 Subject: libstd: Remove `extern mod { ... }` from libstd. rs=deexterning --- src/libstd/unicode.rs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/libstd/unicode.rs') diff --git a/src/libstd/unicode.rs b/src/libstd/unicode.rs index baf3610591a..acafc4035f8 100644 --- a/src/libstd/unicode.rs +++ b/src/libstd/unicode.rs @@ -157,16 +157,19 @@ pub mod icu { pub const UCHAR_INVALID_CODE : UProperty = -1; - #[link_name = "icuuc"] - #[abi = "cdecl"] - pub extern mod libicu { - 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; + pub mod libicu { + #[link_name = "icuuc"] + #[abi = "cdecl"] + pub extern { + 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; + } } } -- cgit 1.4.1-3-g733a5