Sebastian Dransfeld wrote:
dan sinclair wrote:

On gcc 4 bool seems compatible with int, so return an int other then 0
or 1 will convert the return value to 1. So if we just change the return
value from int to bool, people used to 0/1, TRUE/FALSE can still use it.



Does this also mean we would have a minimum of gcc4 as a compiler? Is that
really a good idea? (or have to do some nasty typedef stuff for bool on
other versions)


Just tried it on gcc 4, now I've tried it on gcc 3.3 too. Works fine. The header stdbool.h exist in egcs 1.1.2 and gcc 2.95 and newer. How it is elsewhere I don't know.

gcc 2.95.3 and egcs 1.1.2 compiles with stdbool.h just fine, but they treat bool as int, so no conversion.

Sebastian


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to