Update for standard library changes

This commit is contained in:
Patrick Walton
2012-09-20 10:02:03 -07:00
parent ac7115cc7e
commit be4e26b2c7
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
use base::{AbstractCFType, CFRelease, CFRetain, CFTypeRef};
use unsafe::reinterpret_cast;
use cast::reinterpret_cast;
struct __CFBoolean { private: () }
pub type CFBooleanRef = *__CFBoolean;
+2 -2
View File
@@ -1,8 +1,8 @@
use base::{AbstractCFType, CFAllocatorRef, CFIndex, CFRelease, CFTypeRef, kCFAllocatorDefault};
use cast::reinterpret_cast;
use dvec::DVec;
use libc::c_void;
use ptr::to_unsafe_ptr;
use unsafe::reinterpret_cast;
use vec::raw::to_ptr;
pub type CFDictionaryRetainCallBack = *u8;
@@ -50,7 +50,7 @@ mod CFDictionary {
let (keys, values) = (DVec(), DVec());
for pairs.each |pair| {
// FIXME: "let" would be much nicer here, but that doesn't work yet.
match pair {
match *pair {
(ref key, ref value) => {
keys.push(key.as_type_ref());
values.push(value.as_type_ref());
+1 -1
View File
@@ -1,6 +1,6 @@
use base::{AbstractCFType, CFAllocatorRef, CFIndex, CFRelease, CFTypeRef, kCFAllocatorDefault};
use cast::reinterpret_cast;
use libc::{c_int, c_void};
use unsafe::reinterpret_cast;
struct __CFNumber { private: () }
pub type CFNumberRef = *__CFNumber;
+1 -1
View File
@@ -1,7 +1,7 @@
use base::{AbstractCFType, Boolean, CFAllocatorRef, CFIndex, CFRelease, CFTypeRef};
use base::{kCFAllocatorDefault, kCFAllocatorNull};
use cast::reinterpret_cast;
use libc::c_char;
use unsafe::reinterpret_cast;
type CFStringEncoding = u32;