-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typedef chains via __ symbols cause errors #442
Comments
Example function: pub fn wait(arg1: *mut ::std::os::raw::c_int) -> root::pid_t; |
Relevant cxx design sketch for supporting things like pid_t: dtolnay/cxx#529. |
This turns out to be nothing to do with anything above, and it's an interaction between #437 and #220. Types undergo conversion from a bindgen format (e.g. The Then, when we encounter a function that uses a type which has a typedef name, it gets resolved recursively until we end up with something which isn't a typedef. That's what ends up in Something similar happens with fields of POD structs, but I can't remember when this resolution occurs. So far so... grudgingly OK. The problem happens because in #437 The specific issue is fixed here: https://github.com/google/autocxx/compare/double-underscore-typedefs-wip but this needs significant rework:
|
Further problems encountered in #452. |
Build the s2 example with #438 and no
generate!
directives.See:
Rather than have a blocklist, I think we should ignore functions that refer to any type which isn't in
known_types
or specified in bindgen.The text was updated successfully, but these errors were encountered: