|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.178 2007/03/01 14:52:03 petere Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.179 2007/05/27 20:32:16 neilc Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
|
32 | 32 |
|
33 | 33 | static int DecodeNumber(int flen, char *field, bool haveTextMonth, |
34 | 34 | int fmask, int *tmask, |
35 | | - struct pg_tm * tm, fsec_t *fsec, int *is2digits); |
| 35 | + struct pg_tm * tm, fsec_t *fsec, bool *is2digits); |
36 | 36 | static int DecodeNumberField(int len, char *str, |
37 | 37 | int fmask, int *tmask, |
38 | | - struct pg_tm * tm, fsec_t *fsec, int *is2digits); |
| 38 | + struct pg_tm * tm, fsec_t *fsec, bool *is2digits); |
39 | 39 | static int DecodeTime(char *str, int fmask, int *tmask, |
40 | 40 | struct pg_tm * tm, fsec_t *fsec); |
41 | 41 | static int DecodeTimezone(char *str, int *tzp); |
@@ -668,8 +668,8 @@ DecodeDateTime(char **field, int *ftype, int nf, |
668 | 668 | int dterr; |
669 | 669 | int mer = HR24; |
670 | 670 | bool haveTextMonth = FALSE; |
671 | | - int is2digits = FALSE; |
672 | | - int bc = FALSE; |
| 671 | + bool is2digits = FALSE; |
| 672 | + bool bc = FALSE; |
673 | 673 | pg_tz *namedTz = NULL; |
674 | 674 |
|
675 | 675 | /* |
@@ -1476,7 +1476,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf, |
1476 | 1476 | int i; |
1477 | 1477 | int val; |
1478 | 1478 | int dterr; |
1479 | | - int is2digits = FALSE; |
| 1479 | + bool is2digits = FALSE; |
1480 | 1480 | int mer = HR24; |
1481 | 1481 | pg_tz *namedTz = NULL; |
1482 | 1482 |
|
@@ -2047,8 +2047,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct pg_tm * tm) |
2047 | 2047 | len; |
2048 | 2048 | int dterr; |
2049 | 2049 | bool haveTextMonth = FALSE; |
2050 | | - int bc = FALSE; |
2051 | | - int is2digits = FALSE; |
| 2050 | + bool bc = FALSE; |
| 2051 | + bool is2digits = FALSE; |
2052 | 2052 | int type, |
2053 | 2053 | val, |
2054 | 2054 | dmask = 0; |
@@ -2193,8 +2193,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct pg_tm * tm) |
2193 | 2193 | * Decode time string which includes delimiters. |
2194 | 2194 | * Return 0 if okay, a DTERR code if not. |
2195 | 2195 | * |
2196 | | - * Only check the lower limit on hours, since this same code |
2197 | | - * can be used to represent time spans. |
| 2196 | + * Only check the lower limit on hours, since this same code can be |
| 2197 | + * used to represent time spans. |
2198 | 2198 | */ |
2199 | 2199 | static int |
2200 | 2200 | DecodeTime(char *str, int fmask, int *tmask, struct pg_tm * tm, fsec_t *fsec) |
@@ -2270,7 +2270,7 @@ DecodeTime(char *str, int fmask, int *tmask, struct pg_tm * tm, fsec_t *fsec) |
2270 | 2270 | */ |
2271 | 2271 | static int |
2272 | 2272 | DecodeNumber(int flen, char *str, bool haveTextMonth, int fmask, |
2273 | | - int *tmask, struct pg_tm * tm, fsec_t *fsec, int *is2digits) |
| 2273 | + int *tmask, struct pg_tm * tm, fsec_t *fsec, bool *is2digits) |
2274 | 2274 | { |
2275 | 2275 | int val; |
2276 | 2276 | char *cp; |
@@ -2462,7 +2462,7 @@ DecodeNumber(int flen, char *str, bool haveTextMonth, int fmask, |
2462 | 2462 | */ |
2463 | 2463 | static int |
2464 | 2464 | DecodeNumberField(int len, char *str, int fmask, |
2465 | | - int *tmask, struct pg_tm * tm, fsec_t *fsec, int *is2digits) |
| 2465 | + int *tmask, struct pg_tm * tm, fsec_t *fsec, bool *is2digits) |
2466 | 2466 | { |
2467 | 2467 | char *cp; |
2468 | 2468 |
|
@@ -2680,7 +2680,7 @@ DecodeSpecial(int field, char *lowtoken, int *val) |
2680 | 2680 | int |
2681 | 2681 | DecodeInterval(char **field, int *ftype, int nf, int *dtype, struct pg_tm * tm, fsec_t *fsec) |
2682 | 2682 | { |
2683 | | - int is_before = FALSE; |
| 2683 | + bool is_before = FALSE; |
2684 | 2684 | char *cp; |
2685 | 2685 | int fmask = 0, |
2686 | 2686 | tmask, |
@@ -3519,8 +3519,8 @@ EncodeDateTime(struct pg_tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, |
3519 | 3519 | int |
3520 | 3520 | EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str) |
3521 | 3521 | { |
3522 | | - int is_before = FALSE; |
3523 | | - int is_nonzero = FALSE; |
| 3522 | + bool is_before = FALSE; |
| 3523 | + bool is_nonzero = FALSE; |
3524 | 3524 | char *cp = str; |
3525 | 3525 |
|
3526 | 3526 | /* |
|
0 commit comments