Add libc::c_bool type.#128
Conversation
|
I've reset the add-bool branch to the original commit, so if you're not concerned with the Travis CI failures, this is ready to merge again. |
|
Why does the test build script need stdbool.h if the tests don't add any tests from it? Are there tests we can add - do the other primitives have tests? |
|
@brson asked:
In C11, The generated which are used by the So
There are no tests for |
|
Actually, let's hold off on merging this for a bit, I had not pushed the version of the branch I thought I had. |
|
This (about to re-push) is the version I'd intended to push. This version:
One concern about this choice is that, if some as-of-yet-unencountered C ABI uses something other than a single byte that is zero for I think this risk is slight, and outweighed by the benefit of being able to use Rust's |
|
There was an RFC proposing addition of
|
|
@petrochenkov: Thanks for pointing me at the RFC; I didn't realize this had been discussed before. It makes sense to keep discussion on that thread, rather than forking it here. So I'm going to close this pull request for now. |
Okay, now you owe me one! :) |
|
Thanks for the PR @jimblandy! I think @petrochenkov was gonna do what I was gonna do which was point in the way of the RFC issue :) |
Just needed some `constify_imm8!` treatment Closes rust-lang#59
This is a revised fix for issue #116. The original pull request was #125. From that request:
And later: