Redefine Datum as uintptr_t, instead of unsigned long.
Tom Lane <tgl@sss.pgh.pa.us>
Redefine Datum as uintptr_t, instead of unsigned long. This is more in keeping with modern practice, and is a first step towards porting to Win64 (which has sizeof(pointer) > sizeof(long)). Tsutomu Yamada, Magnus Hagander, Tom Lane
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +395 −82 |
| configure.in | modified | +6 −6 |
| src/backend/access/common/heaptuple.c | modified | +4 −4 |
| src/backend/access/hash/hashfunc.c | modified | +2 −2 |
| src/backend/port/hpux/tas.c.template | modified | +1 −1 |
| src/backend/storage/lmgr/lwlock.c | modified | +2 −2 |
| src/backend/utils/misc/guc.c | modified | +3 −2 |
| src/include/access/tupmacs.h | modified | +8 −6 |
| src/include/c.h | modified | +8 −5 |
| src/include/pg_config.h.in | modified | +17 −3 |
| src/include/pg_config.h.win32 | modified | +7 −4 |
| src/include/postgres.h | modified | +5 −11 |
| src/include/storage/s_lock.h | modified | +2 −2 |
| src/interfaces/ecpg/ecpglib/data.c | modified | +5 −7 |
| src/pl/plperl/plperl.c | modified | +3 −3 |
| src/pl/tcl/pltcl.c | modified | +2 −2 |