mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained in:
@ -245,8 +245,8 @@ ecpg_build_compat_sqlda(int line, PGresult *res, int row, enum COMPAT_MODE compa
|
||||
/*
|
||||
* Sets values from PGresult.
|
||||
*/
|
||||
static int2 value_is_null = -1;
|
||||
static int2 value_is_not_null = 0;
|
||||
static int16 value_is_null = -1;
|
||||
static int16 value_is_not_null = 0;
|
||||
|
||||
void
|
||||
ecpg_set_compat_sqlda(int lineno, struct sqlda_compat ** _sqlda, const PGresult *res, int row, enum COMPAT_MODE compat)
|
||||
|
Reference in New Issue
Block a user