Port date to sys crate
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <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.
|
||||
|
||||
pub type CFTimeInterval = f64;
|
||||
pub type CFAbsoluteTime = CFTimeInterval;
|
||||
|
||||
#[link(name = "CoreFoundation", kind = "framework")]
|
||||
extern {
|
||||
pub fn CFAbsoluteTimeGetCurrent() -> CFAbsoluteTime;
|
||||
}
|
||||
@@ -58,7 +58,6 @@ pub mod set;
|
||||
pub mod string;
|
||||
pub mod url;
|
||||
pub mod bundle;
|
||||
pub mod date;
|
||||
pub mod runloop;
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -15,12 +15,12 @@ use core_foundation_sys::base::{CFTypeID, CFHashCode, mach_port_t};
|
||||
use core_foundation_sys::base::{kCFAllocatorDefault, Boolean, CFOptionFlags};
|
||||
use core_foundation_sys::array::{CFArrayRef};
|
||||
use core_foundation_sys::string::CFStringRef;
|
||||
use core_foundation_sys::date::{CFAbsoluteTime, CFTimeInterval};
|
||||
use libc::c_void;
|
||||
use std::mem;
|
||||
|
||||
use base::{TCFType};
|
||||
use string::{CFString};
|
||||
use date::{CFAbsoluteTime, CFTimeInterval};
|
||||
|
||||
pub struct CFRunLoop(CFRunLoopRef);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user