Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRegenerate bindings using the latest bindgen++ #198
Conversation
|
Tested and working on 64 bit OSX and 64 bit Linux. Had to fix an issue with the mangled names on OSX where an extra underscore was being prefixed to the mangled name. |
|
Tested and working on Gonk. Android is the only one left to check, I think. |
|
Adjusted the bindings generation a bit after @larsbergstrom found missing symbols on Android. Need to test once more, but I think this is ready for review. r? @jdm |
|
Works on Android. |
|
| HandleValue { | ||
| ptr: &JSVAL_NULL | ||
| unsafe { | ||
| HandleValue::from_marked_location(&JSVAL_NULL) | ||
| } |
This comment has been minimized.
This comment has been minimized.
| HandleValue { | ||
| ptr: &JSVAL_VOID | ||
| unsafe { | ||
| HandleValue::from_marked_location(&JSVAL_VOID) | ||
| } |
This comment has been minimized.
This comment has been minimized.
| @@ -508,35 +543,41 @@ impl JSJitMethodCallArgs { | |||
| // to duplicate so much code here | |||
| impl CallArgs { | |||
| pub fn from_vp(vp: *mut Value, argc: u32) -> CallArgs { | |||
| use jsapi::{CallArgsBase, CallReceiverBase, IncludeUsedRval, UsedRvalBase}; | |||
This comment has been minimized.
This comment has been minimized.
|
|
|
||
| reserved: [0 as *mut libc::c_void; 25] | ||
| }; | ||
|
|
||
| unsafe { assert_eq!(JS_Init(), 1); } | ||
| unsafe { assert_eq!(JS_Init(), true); } |
This comment has been minimized.
This comment has been minimized.
|
Ok, I've pointed out all of the things in the generated output for linux32 that made me scratch my head, and the stuff in the non-generated files that could be improved, so I think my part here is complete. |
|
@bors-servo: r+ |
|
|
Regenerate bindings using the latest bindgen++ Need to test this a bit more, but it's structured roughly the way I want it and no manual edits of jsapi_*.rs are required. Fixes #158 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/198) <!-- Reviewable:end -->
|
|
9e76ea6
into
servo:master
michaelwu commentedSep 24, 2015
Need to test this a bit more, but it's structured roughly the way I want it and no manual edits of jsapi_*.rs are required.
Fixes #158