Fix new ctype lint in 1.3

This commit is contained in:
Steven Fackler
2015-09-19 19:16:18 -07:00
parent d9a3185edd
commit db4499d7b4
9 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ pub struct CFArrayCallBacks {
}
#[repr(C)]
struct __CFArray;
struct __CFArray(c_void);
pub type CFArrayRef = *const __CFArray;
+1 -1
View File
@@ -13,7 +13,7 @@ use base::CFTypeID;
use string::CFStringRef;
#[repr(C)]
struct __CFBundle;
struct __CFBundle(c_void);
pub type CFBundleRef = *const __CFBundle;
+3 -1
View File
@@ -1,7 +1,9 @@
use libc::c_void;
use base::{CFAllocatorRef, CFTypeID, CFIndex};
#[repr(C)]
struct __CFData;
struct __CFData(c_void);
pub type CFDataRef = *const __CFData;
+1 -1
View File
@@ -42,7 +42,7 @@ pub struct CFDictionaryValueCallBacks {
}
#[repr(C)]
struct __CFDictionary;
struct __CFDictionary(c_void);
pub type CFDictionaryRef = *const __CFDictionary;
+1 -1
View File
@@ -12,7 +12,7 @@ use libc::c_void;
use base::{CFAllocatorRef, CFTypeID};
#[repr(C)]
struct __CFBoolean;
struct __CFBoolean(c_void);
pub type CFBooleanRef = *const __CFBoolean;
+3 -3
View File
@@ -15,17 +15,17 @@ use date::{CFAbsoluteTime, CFTimeInterval};
use string::CFStringRef;
#[repr(C)]
struct __CFRunLoop;
struct __CFRunLoop(c_void);
pub type CFRunLoopRef = *const __CFRunLoop;
#[repr(C)]
struct __CFRunLoopSource;
struct __CFRunLoopSource(c_void);
pub type CFRunLoopSourceRef = *const __CFRunLoopSource;
#[repr(C)]
struct __CFRunLoopObserver;
struct __CFRunLoopObserver(c_void);
pub type CFRunLoopObserverRef = *const __CFRunLoopObserver;
+1 -1
View File
@@ -29,7 +29,7 @@ pub struct CFSetCallBacks {
}
#[repr(C)]
struct __CFSet;
struct __CFSet(c_void);
pub type CFSetRef = *const __CFSet;
+2 -2
View File
@@ -7,7 +7,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use libc::{c_char, c_ushort};
use libc::{c_char, c_ushort, c_void};
use base::{Boolean, CFOptionFlags, CFIndex, CFAllocatorRef, CFRange, CFTypeID};
@@ -188,7 +188,7 @@ pub type CFStringEncodings = CFIndex;
//static kCFStringEncodingShiftJIS_X0213_00: CFStringEncoding = 0x0628; /* Deprecated */
#[repr(C)]
struct __CFString;
struct __CFString(c_void);
pub type CFStringRef = *const __CFString;
+2 -1
View File
@@ -6,12 +6,13 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use libc::c_void;
use base::{CFOptionFlags, CFIndex, CFAllocatorRef, Boolean, CFTypeID};
use string::CFStringRef;
#[repr(C)]
struct __CFURL;
struct __CFURL(c_void);
pub type CFURLRef = *const __CFURL;