Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
stdbool.h
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="David Brown" data-source="post: 5149379"><p>OK, that clause makes it quite a lot harder. Perhaps the best way then</p><p>would be to include <stdint.h> and use types <u>intN_t for _Generic -</u></p><p><u>the different sizes (assuming the platform supports them, of course)</u></p><p><u>will not be compatible with each other.</u></p><p><u></u></p><p><u>Are different standard integer types "compatible" if they are the same</u></p><p><u>size? i.e., if both "int" and "long int" are 32-bit, are they</u></p><p><u>considered "compatible" for _Generic? I couldn't find a clear statement</u></p><p><u>in the C11 standard.</u></p><p><u></u></p><p><u></u></p><p><u>I guess _Generic will have its uses - but replacing gcc's very nice</u></p><p><u>"typeof" operator is not one of them!</u></p></blockquote><p></p>
[QUOTE="David Brown, post: 5149379"] OK, that clause makes it quite a lot harder. Perhaps the best way then would be to include <stdint.h> and use types [u]intN_t for _Generic - the different sizes (assuming the platform supports them, of course) will not be compatible with each other. Are different standard integer types "compatible" if they are the same size? i.e., if both "int" and "long int" are 32-bit, are they considered "compatible" for _Generic? I couldn't find a clear statement in the C11 standard. I guess _Generic will have its uses - but replacing gcc's very nice "typeof" operator is not one of them![/u] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
stdbool.h
Top