Commit Graph

63 Commits

Author SHA1 Message Date
Brian Anderson a8ebe76090 Add license headers 2013-04-04 19:01:35 -07:00
Josh Matthews 2a69e1c0ee Merge pull request #5 from metajack/remove-imports
Remove unused imports.
2013-04-04 07:59:35 -07:00
Jack Moffitt b997a59893 Remove unused imports. 2013-04-03 23:46:57 -06:00
Brian Anderson 296fc9a771 Add license 2013-04-03 18:18:52 -07:00
Josh Matthews bf38e896e9 Merge pull request #4 from metajack/cfdata-public-impl
Make CFData implementation public.
2013-04-02 08:01:24 -07:00
Jack Moffitt a561cf664e Make CFData implementation public. 2013-04-02 08:38:28 -06:00
Patrick Walton 27a3a8532b Merge pull request #2 from metajack/option-unwrap
Update code to use unwrap method.
2013-03-28 14:01:31 -07:00
Patrick Walton fad2bdda12 Merge pull request #3 from metajack/rust-0.6-more
Rust 0.6 more
2013-03-28 10:21:31 -07:00
Jack Moffitt d1903d4150 More 0.6 changes. 2013-03-28 09:24:28 -06:00
Jack Moffitt b568fdf814 Correct visibility of implementation. 2013-03-28 09:24:16 -06:00
Jack Moffitt 30a5e72b43 Update code to use unwrap method. 2013-03-27 10:07:42 -06:00
Patrick Walton fcf0f0b515 Merge pull request #1 from metajack/rust-0.6-syntax
Changes for new Rust 0.6 syntax
2013-03-26 15:46:28 -07:00
Jack Moffitt e9c5ee5c26 Change fail_unless! to assert!. 2013-03-26 16:44:16 -06:00
Jack Moffitt 2df7eb9ca6 Move attributes outside of test function. 2013-03-26 16:17:54 -06:00
Jack Moffitt c8dd3d2096 Specify types on cast::transmute calls. 2013-03-26 16:17:54 -06:00
Jack Moffitt 648088bad4 Upgraded to Rust 0.6 syntax.
- removed pub from `pub impl A for B`
- replaced `const` with `static`
- implemented `Drop` and `Index` traits
- removed `pure` and `static` function keywords
- removed `DVec`
- added `self` parameters to methods
2013-03-26 16:17:39 -06:00
Patrick Walton 363b2f0e6b Update for language changes 2013-02-28 18:14:06 -08:00
Patrick Walton 1152347b9f Update for language changes 2013-02-19 17:50:56 -08:00
Patrick Walton 488df0c7cd Update tests for language changes 2013-02-14 12:58:15 -08:00
Patrick Walton 01d8691bdf Update for language changes 2013-02-07 18:00:03 -08:00
Brian Anderson 990b275101 Rust upgrade 2013-01-30 14:33:26 -08:00
Brian Anderson ea2221e1ff Fix build 2013-01-15 11:26:58 -08:00
Brian Anderson c9f172bd01 Update for language churn 2012-12-04 17:01:21 -08:00
Brian J. Burg eec9e9f417 Remove duplicate type_id() implementation for CFNumber 2012-11-16 15:17:47 -08:00
Brian J. Burg 04c0856f7d Implement AbstractCFType::type_id(). Switch to use CFTypeRef::downcast(). 2012-11-16 14:29:57 -08:00
Brian J. Burg 6bac6b0601 Fix CFArray test. 2012-11-16 12:07:31 -08:00
Brian J. Burg 070bc3e50d Remove erroneous assertion about retain count; add note. 2012-11-16 11:57:45 -08:00
Brian J. Burg 8af8ef0d6d Rewrite the Core Foundation wrapper system. 2012-11-16 11:03:26 -08:00
Patrick Walton 93ac0efc6b Retain elements when iterating over an array 2012-11-15 20:45:18 -08:00
Brian J. Burg 7e60aba04a Fix double release caused by base::as_CFType. 2012-11-15 09:20:10 -08:00
Brian J. Burg 1f0bc6db0d Add bindings for most CFSet methods, and static new() for the wrapper. 2012-11-14 13:37:55 -08:00
Brian J. Burg 7fcbf5112e Add binding for CFStringCreateWithBytes. 2012-11-12 19:22:20 -08:00
Brian J. Burg 3e5e34f4f4 Add support for getting floats out of CFNumber; add conversions from CFType to some other wrapper type; add AbstractCFType::type_id() 2012-11-09 15:01:34 -08:00
Brian J. Burg 925aad58aa Add CFURLGetTypeID() binding. 2012-11-08 15:21:53 -08:00
Brian J. Burg 22ff767266 Implement ToStr for CFString; fix off-by-one error in CFString::new_static; make clean now removes test binary. 2012-11-07 19:47:22 -08:00
Brian J. Burg a7eade7fc2 Add bindings for CFGetTypeID, CFHash, CFStringGetTypeID 2012-11-07 17:39:29 -08:00
Brian J. Burg f679a48102 Add all the CFString constants and enums. 2012-11-07 17:32:48 -08:00
Brian J. Burg 7f6dad8dd4 Add ALL the CFString function headers\!11 2012-11-07 16:11:42 -08:00
Brian J. Burg d316f05c00 Add wrapped and ref versions of CFArray.each/eachi(), and fix test. 2012-11-05 11:50:34 -08:00
Brian J. Burg 50d703c00f Add wrapped and ref versions of CFDictionary::each(), and fix indenting. 2012-11-05 11:50:10 -08:00
Brian J. Burg c9b58f8e70 Add some more immutable methods to CFDictionary. 2012-11-05 11:41:09 -08:00
Brian J. Burg fde0ba88ec Change AbstractCFType::as_type_ref() to use get_ref(), and add AbstractCFTypeRef::as_CFTypeRef(). 2012-11-02 18:41:33 -07:00
Brian J. Burg 37ea78bb34 Clean up CFString; add borrow_ref experiment. 2012-11-02 17:21:41 -07:00
Brian J. Burg b3354191be Add CFSet, miscellaneous things, and clean up base.rs. 2012-11-02 16:21:01 -07:00
Brian J. Burg 13a2ef813a Rework base CF bindings, and add simple bindings for CFArray, CFURL, CFData. 2012-11-01 19:41:35 -07:00
Brian J. Burg a3ab85e4c2 Add UniChar typedef. 2012-10-19 18:12:03 -07:00
Brian J. Burg 30d1ab2228 Add some missing moves, and rename static new_foo to new 2012-10-19 11:42:53 -07:00
Patrick Walton 6ef2001b3c Update to newest Rust 2012-10-18 17:03:47 -07:00
Brian J. Burg 1104c30097 Fix build when RUSTC is undefined in env 2012-10-04 19:15:32 -07:00
Patrick Walton 9733c605bd Update more for new exports 2012-09-27 13:00:56 -07:00