-
Notifications
You must be signed in to change notification settings - Fork 7
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
Discussion: how to deal with XED's static inline functions #10
Comments
The major problem with running c2rust automatically here is that the output of c2rust includes a lot of stuff that's also generated by bindgen. Specifically, it has external function declarations, struct definitions, enum definitions, anything that's not an inline method from the headers. In order for us to be able to use it automatically we'd have to figure out how to only generate the parts we want. I don't know if that is possible with c2rust. I think this leaves these options
|
Just another perspective chiming in: I've got the same issue with my port of LV2, and I've found that It seems like this project has a lot of actual C code (as opposed to just headers) and tests, so |
Worked around in #24 |
Bindgen is currently unable to deal with functions declared as
static inline
(see #1344 and #1090).XED has way too many functions like this.
The current workaround being used in this repository is to manually run c2rust to transpile the whole functions.
Disadvantages of current approach
Possible solutions
The text was updated successfully, but these errors were encountered: