Commit 373cc86b authored by John Hodge's avatar John Hodge

Fix tests, add travis config

parent 6981bb09
language: rust language: rust
rust: nightly rust:
- stable
- beta
- nightly
sudo: false sudo: false
script: script:
......
...@@ -6,13 +6,14 @@ ...@@ -6,13 +6,14 @@
* ## Example * ## Example
* ```rust * ```rust
* extern crate va_list; * extern crate va_list;
* use va_list::VaList;
* *
* extern "C" print_ints_va(count: u32, mut args: VaList) * extern "C" fn print_ints_va(count: u32, mut args: va_list::VaList)
* { * {
* for i in (0 .. count) { * unsafe {
* println!("{}: {}", i, args.get::<i32>()); * for i in (0 .. count) {
* } * println!("{}: {}", i, args.get::<i32>());
* }
* }
* } * }
* ``` * ```
*/ */
......
extern crate va_list; extern crate va_list;
#[link(name="va_list_test")]
extern "C" { extern "C" {
fn dispatch(context: *mut (), count: u32, ...); fn dispatch(context: *mut (), count: u32, ...);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment