summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-12-23Fix buildEdward Barnard
2014-12-20Adds support for nested structs and unions.Christopher Chambers
parser.rs - Adds detection of nested composite fields so that they can be handled specially during generation (see visit_composite). - Changes to manual recursion through Clang's cursors so that top-level and nested composites can be handled separately. gen.rs - Improves generation for nested composite types. - Unifies handling of structs and unions somewhat. types.rs - Adds CompKind to distinguish between structs and unions. - Updates CompInfo to use CompKind rather than a bool.
2014-12-19Improves argument name parsing in function pointers.Christopher Chambers
Previously, all function pointer types always had their arguments bound as arg1, arg2, etc. This change preserves the argument names, when they are available. parser.rs - Uses the type cursor to visit children and gather argument names and types. tests/func_ptr.rs - Binds tests/headers/func_ptr.h and tests/headers/func_ptr_in_struct.h and ensures that argument names are correctly bound.
2014-12-18Updates tests in macro.rs and cmath.rs.Christopher Chambers
macro.rs - Removes make_string_vec in favor of the vec! macro. - Updates test_parse_process_args with vec!. cmath.rs - Adds needed 'extern crate libc;' declaration. - bindgen! invocation now references math.h as "/usr/include/math.h", which should be pretty universal. Clang was not able to find the file using just "math.h". - Moves contents of main method into a #[test] method.
2014-12-15Correct output for empty structs.Andrew Cann
This fixes a bug where empty C structs would be outputted as struct Struct_Foo { } instead of struct Struct_Foo;
2014-12-15Fix for rustc update 2014-12-15Andrew Cann
2014-12-13Add #[deriving(Copy)] to rustified structs and unionsAndrew Cann
2014-12-13Fix build for rustc 2014-12-13Andrew Cann
2014-12-03ast::TyPath breakageGyörgy Andrasek
2014-11-20Fixes for rustc updateAndrew Cann
2014-11-18Add enum namespaceJyun-Yan You
2014-11-17Fix buildJyun-Yan You
2014-11-18Fix for rust nightlyBrendan Zabarauskas
2014-11-07Fix build for compiler updatesAndrew Cann
2014-11-03Generate calling-convention-aware bindingklutzy
With this patch, rust-bindgen generates extern functions with calling conventions specified in header. This patch also removes `-abi` flag.
2014-10-30Rename `fail!` to `panic!`Jyun-Yan You
2014-10-29Fix buildJorge Aparicio
Fixes breakage caused by rust-lang/rust#18229 and rust-lang/rust#18365
2014-10-13Fix buildJyun-Yan You
2014-10-10Replace `static` with `const`Jyun-Yan You
2014-10-06Remove some warningsJyun-Yan You
2014-10-03Gc -> RcGyörgy Andrasek
2014-10-03Fix build and replace `find_or_insert_with` with `entry`Jyun-Yan You
2014-09-30Fix build and remove some warningsJyun-Yan You
2014-09-25Fix deprecated itemsEdward Barnard
2014-09-18Fix deprecated itemsEdward Barnard
2014-09-18Update for ast gc removalEdward Barnard
2014-09-12Reduce some warningsJyun-Yan You
2014-09-04Merge branch 'master' of https://github.com/alexchandel/rust-bindgenJyun-Yan You
2014-07-05Fix binary src location for cargo buildAlex Chandel
2014-07-04Build libbindgen and bindgen with CargoAlex Chandel