Skip to content
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

Update SM headers to reflect the headers used in bindings generation #55

Closed
wants to merge 3 commits into from

Conversation

@michaelwu
Copy link
Contributor

michaelwu commented Sep 24, 2015

This isn't necessary to use the new bindings, but allow people other than myself to generate the bindings.

CC @tschneidereit

Review on Reviewable

@@ -29,8 +29,10 @@ enum TransferableOwnership {
// Structured clone buffer does not yet own the data
SCTAG_TMO_UNOWNED = 1,

#ifndef RUST_BINDGEN

This comment has been minimized.

@tschneidereit

tschneidereit Sep 25, 2015

It'd be good to have comments on stuff like this. We can do that during upstreaming, though.

@tschneidereit

This comment has been minimized.

Copy link

tschneidereit commented on mozjs/js/src/jsapi.h in cbc562d Sep 25, 2015

What's the issue with using aliases in enums? It seems like bindgen converts those just fine.

This comment has been minimized.

Copy link
Owner Author

michaelwu replied Sep 25, 2015

It converts enums to consts, not enums. bindgen++ actually tries to convert them to Rust enums.

This comment has been minimized.

Copy link

tschneidereit replied Sep 25, 2015

Oh, of course. I wasn't able to build your clang fork so didn't check what bindgen++ does.

@metajack
Copy link
Contributor

metajack commented Nov 3, 2015

r? @jdm

@michaelwu
Copy link
Contributor Author

michaelwu commented Nov 4, 2015

I think this is useful as a reference, but we don't have to merge it. It should be obsolete at some point since we want to upstream it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.