Re: A Windows x64 port of PostgreSQL - Mailing list pgsql-hackers

From Ron Mayer
Subject Re: A Windows x64 port of PostgreSQL
Date
Msg-id 48701466.1070502@cheapcomplexdevices.com
Whole thread Raw
In response to Re: A Windows x64 port of PostgreSQL  (chris <chris@dba2.int.libertyrms.com>)
List pgsql-hackers
chris wrote:
>>  C++0x standards
>> committee where they finalized long long as being required to be 8
> 
> AFAIK, we oughtn't care what C++ standards say, because PostgreSQL is
> implemented in C, and therefore needs to follow what the *C* standards
> say.

I agree the C++ standards should matter one bit to postgresql, but
AFAIK C99 also says "long long" is at least 64 bits too -- but if
we're talking C99, we'd be better off using whichever of int64_t
or int_least64_t or int_fast64_t we really meant anyway.  Since we
don't I assume we're trying to be compatible with pre-c99 C too
which AFAICT means you can't assume much about "long long" either.
Pre-C99 you can't really count on much.  I've spent time where "int"
was 20 bits; and on another platform where int was 32 bits and
long 40 bits.


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCHES] Solaris ident authentication using unix domain sockets
Next
From: "David E. Wheeler"
Date:
Subject: Re: PATCH: CITEXT 2.0