Port date to sys crate

This commit is contained in:
Steven Fackler
2015-08-24 23:36:29 -07:00
parent 80593ffc5d
commit 9c6d29219c
4 changed files with 2 additions and 2 deletions
-16
View File
@@ -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;
}
-1
View File
@@ -58,7 +58,6 @@ pub mod set;
pub mod string;
pub mod url;
pub mod bundle;
pub mod date;
pub mod runloop;
#[cfg(test)]
+1 -1
View File
@@ -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);