twchapman / nativeclient-sdk

Automatically exported from code.google.com/p/nativeclient-sdk
0 stars 0 forks source link

Why define a PP_Bool type? #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The documentation says:

"The standard bool type is not available to pre-C99 compilers, and is not 
guaranteed to be compatible between C and C++, whereas the PPAPI C headers can 
be included from C or C++ code."

But realistically, there exist no pre-C99 compilers which can output NaCl code, 
and as far as I know all compilers that can also have an stdbool.h which is in 
fact compatible with C++. And stdint.h seems to be used all over the place, 
which is also C99.

So why define this type at all? It seems completely unnecessary, and only makes 
the code uglier.

Original issue reported on code.google.com by paracel...@gmail.com on 6 Sep 2011 at 12:00

GoogleCodeExporter commented 9 years ago
Issue 122 has been merged into this issue.

Original comment by dsprin...@chromium.org on 8 Sep 2011 at 11:00

GoogleCodeExporter commented 9 years ago
This is part of Pepper.

Original comment by dsprin...@chromium.org on 8 Sep 2011 at 11:00

GoogleCodeExporter commented 9 years ago
Even so, though: Is there some reason stdint.h can be used, but not stdbool.h?

Original comment by paracel...@gmail.com on 8 Sep 2011 at 11:09