Auto merge of #10358 - emilio:stylo-again, r=bholley

Stylo again

This fixes some bugs in our bindings, the most important one being that we didn't repr(C) opaque types.

r? @bholley

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10358)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-02 10:30:35 +05:30
commit 71428b5dda
2 changed files with 285 additions and 98 deletions

File diff suppressed because it is too large Load diff

View file

@ -128,3 +128,13 @@ fi
-opaque-type "imgIRequest" \
-include "$1/mozilla-config.h" \
"$DIST_INCLUDE/nsStyleStruct.h"
if [ $? -ne 0 ]; then
echo -e "\e[91warning:\e[0m bindgen exited with nonzero exit status"
else
echo -e "\e[34minfo:\e[0m bindgen exited successfully, running tests"
TESTS_FILE=$(mktemp)
rustc ../gecko_style_structs.rs --test -o $TESTS_FILE
$TESTS_FILE
rm $TESTS_FILE
fi