int4 or int32 - Mailing list pgsql-hackers

From Peter Eisentraut
Subject int4 or int32
Date
Msg-id Pine.LNX.4.21.0011152031320.779-100000@peter.localdomain
Whole thread Raw
Responses Re: int4 or int32
List pgsql-hackers
Which one of these should we use?

int4 is a data type, int32 isn't.  c.h has DatumGetInt8, but no
DatumGetInt64; it also has DatumGetInt32 but no DatumGetInt4.  fmgr has
PG_GETARG_INT32 et al.  Inconsistency everywhere.

The C standard has things like int32_t, but technically there's no
guarantee that int32 is really 32 bits, you only know sizeof(int32) == 4.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: termcap and curses
Next
From: Larry Rosenman
Date:
Subject: Re: Syslog Facility Patch