Suggestions
David Bryan
D.J.Bryan at cranfield.ac.uk
Fri Apr 28 11:55:32 BST 2000
In message <WnH8hEAWFVC5Ew8q at mk-net.demon.co.uk>
Tony van der Hoff <OSLib at mk-net.demon.co.uk> wrote:
> On Thu, 27 Apr 2000, at 10:39:47, Jonathan Coxhead
> <jonathan at doves.demon.co.uk> wrote on the subject "Suggestions":
>
> > There are 2 "natural laws" we should attempt to respect:
> >
> > ---if |__cplusplus| is defined, |bool| is a keyword, and we
> > shouldn't touch it or rely on it anywhere.
>
> That is not correct. As I pointed out in an earlier post, the other
> mainstream C++ compiler for RISC OS, CFront, defines __cplusplus, but
> does *not* define bool.
>
> Unfortunately, there doesn't seem to be any way of detecting CFront
> specifically to allow an exception to be made.
Which is one reason I suggested making it a user contolled switch
only.
> How do we recognise C99? Does the standard define a compile-time flag?
> Or will <stdbool.h> define a macro?
>
> Has anyone got a URL for the standard, please?
http://anubis.dkuug.dk/JTC1/SC22/open/n2620/
--
David Bryan
More information about the oslib-user
mailing list