RESOLVED WORKSFORME 19554
JavaScriptCore API uses "bool" type
https://bugs.webkit.org/show_bug.cgi?id=19554
Summary JavaScriptCore API uses "bool" type
Christian Dywan
Reported 2008-06-15 06:44:26 PDT
The JavaScriptCore API is basically usable from C. However the "bool" type is used. That means only compilers supporting that part of C99 or even only that particular datatype can use the API. A workaround is to implement stdbool.h locally for compilers that don't have it.
Attachments
Gavin Barraclough
Comment 1 2012-03-13 12:22:37 PDT
I believe the JavaScriptCore API is intended to be fully usable from C, yes, it does depend on stdbool.h (for better or for worse), and since this is API I don't think we could change this if we wanted to. That said, using stdbool.h doesn't seem like a bad choice for C compilers, and is probably a good choice for making the API work well with C++ too. I think implementing stdbool.h locally is going to be the right choice for non-C99 compilers. I think the code & design is probably all correct. If you have a specific issue or enhancement request here, please feel free to reopen this bug, but otherwise I think don't see anything to be addressed here.
Note You need to log in before you can comment on or make changes to this bug.