From b8b2e3b2deeaab19715af063fc009b7c230b2336 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 25 Jun 2012 01:51:46 +0300 Subject: Replace int2/int4 in C code with int16/int32 The latter was already the dominant use, and it's preferable because in C the convention is that intXX means XX bits. Therefore, allowing mixed use of int2, int4, int8, int16, int32 is obviously confusing. Remove the typedefs for int2 and int4 for now. They don't seem to be widely used outside of the PostgreSQL source tree, and the few uses can probably be cleaned up by the time this ships. --- src/include/commands/vacuum.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/commands') diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h index 7a50d2fcb30..d1a3a9b0534 100644 --- a/src/include/commands/vacuum.h +++ b/src/include/commands/vacuum.h @@ -98,9 +98,9 @@ typedef struct VacAttrStats */ bool stats_valid; float4 stanullfrac; /* fraction of entries that are NULL */ - int4 stawidth; /* average width of column values */ + int32 stawidth; /* average width of column values */ float4 stadistinct; /* # distinct values */ - int2 stakind[STATISTIC_NUM_SLOTS]; + int16 stakind[STATISTIC_NUM_SLOTS]; Oid staop[STATISTIC_NUM_SLOTS]; int numnumbers[STATISTIC_NUM_SLOTS]; float4 *stanumbers[STATISTIC_NUM_SLOTS]; @@ -114,7 +114,7 @@ typedef struct VacAttrStats * elements. It should then overwrite these fields. */ Oid statypid[STATISTIC_NUM_SLOTS]; - int2 statyplen[STATISTIC_NUM_SLOTS]; + int16 statyplen[STATISTIC_NUM_SLOTS]; bool statypbyval[STATISTIC_NUM_SLOTS]; char statypalign[STATISTIC_NUM_SLOTS]; -- cgit v1.2.3