I've been meaning to make this change for a little while. It makes a few bits of static analysis easier. I don't have time to do this next week, but if you send a patch I'd be happy to commit it.
David On 23 Aug 2013, at 10:25, "Vincent R." <[email protected]> wrote: > Hi, > > Do you think it would be possible to use clang extension to define type like > BOOL and nil ? > Actually I am using clang to rewrite objc into another syntax and macros are > not really helpful for this, > I would need to get a specific type for BOOL/YES/NO and not just (unsigned > char)/(BOOL)1/(BOOL)0. > When compiling a Cocoa application on mac with clang there are the following > definitions : > > #if __has_feature(objc_bool) > #define YES __objc_yes > #define NO __objc_no > #else > #define YES ((BOOL)1) > #define NO ((BOOL)0) > #endif > > > #ifndef nil > # if __has_feature(cxx_nullptr) > # define nil nullptr > # else > # define nil __DARWIN_NULL > # endif > #endif > > I suppose it could help me in my task but I am wondering if it would work > with GNUStep, > and of course I will try tonight once I am at home on my linux box but if > someone(let's say David C. :-) ) > have some idea about that. > > _______________________________________________ > Gnustep-dev mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/gnustep-dev _______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
