Skip to content

Commit 4703a48

Browse files
committed
ecpg: Use bool instead of int
Use "bool" for Boolean variables, rather than "int", matching backend change f505eda. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parent d6148e7 commit 4703a48

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/interfaces/ecpg/pgtypeslib/dt_common.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ dt2time(double jd, int *hour, int *min, int *sec, fsec_t *fsec)
10891089
*/
10901090
static int
10911091
DecodeNumberField(int len, char *str, int fmask,
1092-
int *tmask, struct tm *tm, fsec_t *fsec, int *is2digits)
1092+
int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits)
10931093
{
10941094
char *cp;
10951095

@@ -1199,7 +1199,7 @@ DecodeNumberField(int len, char *str, int fmask,
11991199
*/
12001200
static int
12011201
DecodeNumber(int flen, char *str, int fmask,
1202-
int *tmask, struct tm *tm, fsec_t *fsec, int *is2digits, bool EuroDates)
1202+
int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits, bool EuroDates)
12031203
{
12041204
int val;
12051205
char *cp;
@@ -1314,8 +1314,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct tm *tm, bool EuroDates)
13141314
int nf = 0;
13151315
int i,
13161316
len;
1317-
int bc = FALSE;
1318-
int is2digits = FALSE;
1317+
bool bc = FALSE;
1318+
bool is2digits = FALSE;
13191319
int type,
13201320
val,
13211321
dmask = 0;
@@ -1792,9 +1792,9 @@ DecodeDateTime(char **field, int *ftype, int nf,
17921792
int i;
17931793
int val;
17941794
int mer = HR24;
1795-
int haveTextMonth = FALSE;
1796-
int is2digits = FALSE;
1797-
int bc = FALSE;
1795+
bool haveTextMonth = FALSE;
1796+
bool is2digits = FALSE;
1797+
bool bc = FALSE;
17981798
int t = 0;
17991799
int *tzp = &t;
18001800

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy