From: | "Dann Corbit" <DCorbit(at)connx(dot)com> |
---|---|
To: | "Bernd Helmle" <mailings(at)oopsware(dot)de>, "Grzegorz Jaskiewicz" <gj(at)pointblue(dot)com(dot)pl> |
Cc: | "pgsql-hackers Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: boolean in C |
Date: | 2009-07-16 22:45:11 |
Message-ID: | D425483C2C5C9F49B5B7A41F894415470296235D@postal.corporate.connx.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org [mailto:pgsql-hackers-
> owner(at)postgresql(dot)org] On Behalf Of Bernd Helmle
> Sent: Thursday, July 16, 2009 8:47 AM
> To: Grzegorz Jaskiewicz
> Cc: pgsql-hackers Hackers
> Subject: Re: [HACKERS] boolean in C
>
> --On 16. Juli 2009 13:32:03 +0100 Grzegorz Jaskiewicz
> <gj(at)pointblue(dot)com(dot)pl>
> wrote:
>
> > oh, another thing.
> > stdbool is C99 standard feature. Not gcc extension.
>
> There might be compiler versions out there which claims to be C99 but
> do
> not provide full compliant include headers. SUN Studio 12 at least has
> the
> following in its documentation, as a quick research brings up:
>
> "Though the compiler defaults to supporting the features of C99 listed
> below, standard headers provided by the Solaris software in
> /usr/include do
> not yet conform with the 1999 ISO/IEC C standard"
It's more or less a generic problem. There is only a handful of fully
functional C99 compilers[0], and all the others have "Some c99 features"
to one degree or another.
Microsoft's compiler is particularly abysmal, but then again, they have
no claims of C99 compliance so there is nothing to complain about there.
Those few features that they do implement are implemented in a
non-standard way.
GCC is also only partially compliant[1].
I believe that the Dinkum library is the only certified C99 standard
library[2] as well.
[0] see: http://www.peren.com/pages/branding_set.htm
[1] see: http://gcc.gnu.org/c99status.html
[2] see: http://www.dinkumware.com/manuals/
I don't think that a product (that is expected to run on as many
platforms as PostgreSQL is expected to run on) is even possible to write
in C99 code because there are not enough compliant compilers available.
IMO-YMMV
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2009-07-16 22:55:39 | Re: Status report: getting plpgsql to use the core lexer |
Previous Message | Alvaro Herrera | 2009-07-16 21:47:08 | Re: Launching commitfest.postgresql.org |