Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions text/0000-cbool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- Feature Name: cbool
- Start Date: Mon Mar 9 00:16:53 CET 2015
- RFC PR: (leave this empty)
- Rust Issue: (leave this empty)

# Summary

Specify that `bool` is compatible with the `_Bool` C type.

# Motivation

You cannot safely call ffi functions with boolean arguments without a compatible
type.

# Detailed design

Specify that `bool` is compatible with the `_Bool` C type.

# Drawbacks

None.

# Alternatives

Define `_Bool` as a platform dependent integer type. This is unsafe because the behavior is supposedly undefined if you pass a value other than 0 or 1 to such a function.

# Unresolved questions

None.