mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
ecpg: Use bool instead of int
Use "bool" for Boolean variables, rather than "int", matching backend
change f505edace1
.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
parent
d6148e7d44
commit
4703a480a9
@ -1089,7 +1089,7 @@ dt2time(double jd, int *hour, int *min, int *sec, fsec_t *fsec)
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
DecodeNumberField(int len, char *str, int fmask,
|
DecodeNumberField(int len, char *str, int fmask,
|
||||||
int *tmask, struct tm *tm, fsec_t *fsec, int *is2digits)
|
int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits)
|
||||||
{
|
{
|
||||||
char *cp;
|
char *cp;
|
||||||
|
|
||||||
@ -1199,7 +1199,7 @@ DecodeNumberField(int len, char *str, int fmask,
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
DecodeNumber(int flen, char *str, int fmask,
|
DecodeNumber(int flen, char *str, int fmask,
|
||||||
int *tmask, struct tm *tm, fsec_t *fsec, int *is2digits, bool EuroDates)
|
int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits, bool EuroDates)
|
||||||
{
|
{
|
||||||
int val;
|
int val;
|
||||||
char *cp;
|
char *cp;
|
||||||
@ -1314,8 +1314,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct tm *tm, bool EuroDates)
|
|||||||
int nf = 0;
|
int nf = 0;
|
||||||
int i,
|
int i,
|
||||||
len;
|
len;
|
||||||
int bc = FALSE;
|
bool bc = FALSE;
|
||||||
int is2digits = FALSE;
|
bool is2digits = FALSE;
|
||||||
int type,
|
int type,
|
||||||
val,
|
val,
|
||||||
dmask = 0;
|
dmask = 0;
|
||||||
@ -1792,9 +1792,9 @@ DecodeDateTime(char **field, int *ftype, int nf,
|
|||||||
int i;
|
int i;
|
||||||
int val;
|
int val;
|
||||||
int mer = HR24;
|
int mer = HR24;
|
||||||
int haveTextMonth = FALSE;
|
bool haveTextMonth = FALSE;
|
||||||
int is2digits = FALSE;
|
bool is2digits = FALSE;
|
||||||
int bc = FALSE;
|
bool bc = FALSE;
|
||||||
int t = 0;
|
int t = 0;
|
||||||
int *tzp = &t;
|
int *tzp = &t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user