Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4703a48

Browse files
committed
ecpg: Use bool instead of int
Use "bool" for Boolean variables, rather than "int", matching backendchangef505eda.Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
1 parentd6148e7 commit4703a48

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
staticint
10911091
DecodeNumberField(intlen,char*str,intfmask,
1092-
int*tmask,structtm*tm,fsec_t*fsec,int*is2digits)
1092+
int*tmask,structtm*tm,fsec_t*fsec,bool*is2digits)
10931093
{
10941094
char*cp;
10951095

@@ -1199,7 +1199,7 @@ DecodeNumberField(int len, char *str, int fmask,
11991199
*/
12001200
staticint
12011201
DecodeNumber(intflen,char*str,intfmask,
1202-
int*tmask,structtm*tm,fsec_t*fsec,int*is2digits,boolEuroDates)
1202+
int*tmask,structtm*tm,fsec_t*fsec,bool*is2digits,boolEuroDates)
12031203
{
12041204
intval;
12051205
char*cp;
@@ -1314,8 +1314,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct tm *tm, bool EuroDates)
13141314
intnf=0;
13151315
inti,
13161316
len;
1317-
intbc= FALSE;
1318-
intis2digits= FALSE;
1317+
boolbc= FALSE;
1318+
boolis2digits= FALSE;
13191319
inttype,
13201320
val,
13211321
dmask=0;
@@ -1792,9 +1792,9 @@ DecodeDateTime(char **field, int *ftype, int nf,
17921792
inti;
17931793
intval;
17941794
intmer=HR24;
1795-
inthaveTextMonth= FALSE;
1796-
intis2digits= FALSE;
1797-
intbc= FALSE;
1795+
boolhaveTextMonth= FALSE;
1796+
boolis2digits= FALSE;
1797+
boolbc= FALSE;
17981798
intt=0;
17991799
int*tzp=&t;
18001800

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp