diff options
author | Christopher Chambers <chris.chambers@peanutcode.com> | 2014-12-29 16:12:44 -0600 |
---|---|---|
committer | Christopher Chambers <chris.chambers@peanutcode.com> | 2014-12-29 16:33:48 -0600 |
commit | 97945161d298bb89f7f1ea015c5cc54acc9e7c43 (patch) | |
tree | 2b9540747f1caac3355d00a36fa2f1954691a647 /tests/headers/struct_containing_forward_declared_struct.h | |
parent | dd96a0c5f416c6d0e0689079e228de536a643153 (diff) |
Adds support for function prototypes, improves tests.
Fixes #79. Fixes #100.
Cargo.toml
- Adds `[[test]]` section pointing to tests.rs, where all former tests are
now imported as modules (cf Servo's tests).
gen.rs
- Breaks up `TFunc` handling into `TFuncPtr` and `TFuncProto`.
- Eliminates empty `extern "C" { }` block that was sometimes generated.
lib.rs
- Eliminates `dead_code` warnings and one about `LinkType` being able to
implement `Copy`.
parser.rs
- Breaks up function handling into `TFuncPtr` and `TFuncProto`.
- Uses the `FuncSig` type to capture information about function
signatures.
- Adds support for pointers to arrays at the global scope.
types.rs
- Adds types related to function prototype and pointer handling:
`FuncSig`, `TFuncPtr` and `TFuncProto`.
tests
- Adds quote-based testing. Using the `assert_bind_eq!` macro, it is
now possible--without too much ceremony--to test bindgen output of an
input file against inline source created with the `quote_item!` (and
other `quote_*` macros).
- Removes stringify-based testing.
- Combines test running into a single entry point, `test.rs`.
- Shortens test names where possible without losing context.
Diffstat (limited to 'tests/headers/struct_containing_forward_declared_struct.h')
-rw-r--r-- | tests/headers/struct_containing_forward_declared_struct.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/headers/struct_containing_forward_declared_struct.h b/tests/headers/struct_containing_forward_declared_struct.h index c68af042..d38aca2f 100644 --- a/tests/headers/struct_containing_forward_declared_struct.h +++ b/tests/headers/struct_containing_forward_declared_struct.h @@ -4,4 +4,4 @@ struct a { struct b { int val_b; -};
\ No newline at end of file +}; |