Skip to content

Conversation

@silverjam
Copy link
Contributor

@silverjam silverjam commented Jun 25, 2019

This change allows me to write an "entrypoint" header for bindgen so that I can automatically generate FFI bindings.

@silverjam silverjam requested a review from jbangelo October 25, 2019 21:47
@silverjam
Copy link
Contributor Author

FYI, going to merge this, seems low risk

@silverjam silverjam merged commit db93404 into master Oct 25, 2019
@silverjam silverjam deleted the silverjam/rustc-bindgen branch October 25, 2019 22:35
* `int` which can lead to portability issues between different platforms.
* \{ */

#ifndef _RUSTC_BINDGEN_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does bindgen define it's own s8 etc types? Do we actually need to not include the stdlib headers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I manually defined equivalent types to avoid the other includes that this generates. The lack of includes here is to limit the what bindgen tries to generate. Bindgen will attempt to generate bindings for everything it the .h-- so we want to avoid trying to generate bindings for everything in the c stdlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants