Fix build errors: use extern keyword

This commit is contained in:
Tuncer Ayaz 2012-07-04 20:58:57 +02:00
parent 8861aba3ec
commit 7f343661a6
3 changed files with 9 additions and 9 deletions

View file

@ -77,9 +77,9 @@ fn do_draw(sender: chan<AzDrawTargetRef>,
listen(|data_ch: chan<[u8]>| {
crust fn write_fn(closure: *c_void,
data: *c_uchar,
len: c_uint)
extern fn write_fn(closure: *c_void,
data: *c_uchar,
len: c_uint)
-> cairo_status_t unsafe {

View file

@ -271,7 +271,7 @@ mod platform {
}
mod MainObj {
crust fn applicationDidFinishLaunching(this: id, _sel: SEL) {
extern fn applicationDidFinishLaunching(this: id, _sel: SEL) {
#debug("applicationDidFinishLaunching");
let fptr: *fn() = ptr::null();

View file

@ -101,7 +101,7 @@ fn shape_text(font: &Font, text: str) -> [Glyph] unsafe {
ret glyphs;
}
crust fn glyph_func(_font: *hb_font_t,
extern fn glyph_func(_font: *hb_font_t,
font_data: *c_void,
unicode: hb_codepoint_t,
_variant_selector: hb_codepoint_t,
@ -122,10 +122,10 @@ crust fn glyph_func(_font: *hb_font_t,
} as hb_bool_t;
}
crust fn glyph_h_advance_func(_font: *hb_font_t,
font_data: *c_void,
glyph: hb_codepoint_t,
_user_data: *c_void) -> hb_position_t unsafe {
extern fn glyph_h_advance_func(_font: *hb_font_t,
font_data: *c_void,
glyph: hb_codepoint_t,
_user_data: *c_void) -> hb_position_t unsafe {
let font: *Font = reinterpret_cast(font_data);
assert font.is_not_null();