Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f505edac
Commit
f505edac
authored
May 27, 2007
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup: use "bool" for Boolean variables, rather than "int".
parent
97d12b43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
src/backend/utils/adt/datetime.c
src/backend/utils/adt/datetime.c
+15
-15
No files found.
src/backend/utils/adt/datetime.c
View file @
f505edac
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.17
8 2007/03/01 14:52:03 petere
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.17
9 2007/05/27 20:32:16 neilc
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -32,10 +32,10 @@
static
int
DecodeNumber
(
int
flen
,
char
*
field
,
bool
haveTextMonth
,
int
fmask
,
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
int
*
is2digits
);
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
bool
*
is2digits
);
static
int
DecodeNumberField
(
int
len
,
char
*
str
,
int
fmask
,
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
int
*
is2digits
);
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
bool
*
is2digits
);
static
int
DecodeTime
(
char
*
str
,
int
fmask
,
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
);
static
int
DecodeTimezone
(
char
*
str
,
int
*
tzp
);
...
...
@@ -668,8 +668,8 @@ DecodeDateTime(char **field, int *ftype, int nf,
int
dterr
;
int
mer
=
HR24
;
bool
haveTextMonth
=
FALSE
;
int
is2digits
=
FALSE
;
int
bc
=
FALSE
;
bool
is2digits
=
FALSE
;
bool
bc
=
FALSE
;
pg_tz
*
namedTz
=
NULL
;
/*
...
...
@@ -1476,7 +1476,7 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
int
i
;
int
val
;
int
dterr
;
int
is2digits
=
FALSE
;
bool
is2digits
=
FALSE
;
int
mer
=
HR24
;
pg_tz
*
namedTz
=
NULL
;
...
...
@@ -2047,8 +2047,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct pg_tm * tm)
len
;
int
dterr
;
bool
haveTextMonth
=
FALSE
;
int
bc
=
FALSE
;
int
is2digits
=
FALSE
;
bool
bc
=
FALSE
;
bool
is2digits
=
FALSE
;
int
type
,
val
,
dmask
=
0
;
...
...
@@ -2193,8 +2193,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct pg_tm * tm)
* Decode time string which includes delimiters.
* Return 0 if okay, a DTERR code if not.
*
* Only check the lower limit on hours, since this same code
*
can be
used to represent time spans.
* Only check the lower limit on hours, since this same code
can be
* used to represent time spans.
*/
static
int
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)
*/
static
int
DecodeNumber
(
int
flen
,
char
*
str
,
bool
haveTextMonth
,
int
fmask
,
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
int
*
is2digits
)
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
bool
*
is2digits
)
{
int
val
;
char
*
cp
;
...
...
@@ -2462,7 +2462,7 @@ DecodeNumber(int flen, char *str, bool haveTextMonth, int fmask,
*/
static
int
DecodeNumberField
(
int
len
,
char
*
str
,
int
fmask
,
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
int
*
is2digits
)
int
*
tmask
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
,
bool
*
is2digits
)
{
char
*
cp
;
...
...
@@ -2680,7 +2680,7 @@ DecodeSpecial(int field, char *lowtoken, int *val)
int
DecodeInterval
(
char
**
field
,
int
*
ftype
,
int
nf
,
int
*
dtype
,
struct
pg_tm
*
tm
,
fsec_t
*
fsec
)
{
int
is_before
=
FALSE
;
bool
is_before
=
FALSE
;
char
*
cp
;
int
fmask
=
0
,
tmask
,
...
...
@@ -3519,8 +3519,8 @@ EncodeDateTime(struct pg_tm * tm, fsec_t fsec, int *tzp, char **tzn, int style,
int
EncodeInterval
(
struct
pg_tm
*
tm
,
fsec_t
fsec
,
int
style
,
char
*
str
)
{
int
is_before
=
FALSE
;
int
is_nonzero
=
FALSE
;
bool
is_before
=
FALSE
;
bool
is_nonzero
=
FALSE
;
char
*
cp
=
str
;
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment