Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
5bc10242
Commit
5bc10242
authored
28 years ago
by
Thomas G. Lockhart
Browse files
Options
Downloads
Patches
Plain Diff
Remove troublesome type coersions from the char8 return statements.
Noted in trying to port to AIX.
parent
99643abe
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/adt/char.c
+11
-11
11 additions, 11 deletions
src/backend/utils/adt/char.c
with
11 additions
and
11 deletions
src/backend/utils/adt/char.c
+
11
−
11
View file @
5bc10242
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.
3
1997/0
3
/1
4 23:19:54 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.
4
1997/0
5
/1
7 06:20:34 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -179,14 +179,14 @@ bool char16lt(char *arg1, char *arg2)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
((
bool
)
(
strncmp
(
arg1
,
arg2
,
16
)
<
0
)
)
;
return
(
strncmp
(
arg1
,
arg2
,
16
)
<
0
);
}
bool
char16le
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
((
bool
)
(
strncmp
(
arg1
,
arg2
,
16
)
<=
0
)
)
;
return
(
strncmp
(
arg1
,
arg2
,
16
)
<=
0
);
}
bool
char16gt
(
char
*
arg1
,
char
*
arg2
)
...
...
@@ -194,7 +194,7 @@ bool char16gt(char *arg1, char *arg2)
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
((
bool
)
(
strncmp
(
arg1
,
arg2
,
16
)
>
0
)
)
;
return
(
strncmp
(
arg1
,
arg2
,
16
)
>
0
);
}
bool
char16ge
(
char
*
arg1
,
char
*
arg2
)
...
...
@@ -202,7 +202,7 @@ bool char16ge(char *arg1, char *arg2)
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
((
bool
)
(
strncmp
(
arg1
,
arg2
,
16
)
>=
0
)
)
;
return
(
strncmp
(
arg1
,
arg2
,
16
)
>=
0
);
}
...
...
@@ -355,42 +355,42 @@ bool char8eq(char *arg1, char *arg2)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
(
bool
)
strncmp
(
arg1
,
arg2
,
8
)
==
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
==
0
);
}
bool
char8ne
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
(
bool
)
strncmp
(
arg1
,
arg2
,
8
)
!=
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
!=
0
);
}
bool
char8lt
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
(
bool
)
strncmp
(
arg1
,
arg2
,
8
)
<
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
<
0
);
}
bool
char8le
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
(
bool
)
strncmp
(
arg1
,
arg2
,
8
)
<=
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
<=
0
);
}
bool
char8gt
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
(
bool
)
strncmp
(
arg1
,
arg2
,
8
)
>
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
>
0
);
}
bool
char8ge
(
char
*
arg1
,
char
*
arg2
)
{
if
(
arg1
==
NULL
||
arg2
==
NULL
)
return
((
bool
)
0
);
return
(
(
bool
)
strncmp
(
arg1
,
arg2
,
8
)
>=
0
);
return
(
strncmp
(
arg1
,
arg2
,
8
)
>=
0
);
}
int32
char8cmp
(
char
*
arg1
,
char
*
arg2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment