Skip to content
Snippets Groups Projects
Commit 4784fe9e authored by Teodor Sigaev's avatar Teodor Sigaev
Browse files

Simplify defines

parent 47979e67
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ static bool ...@@ -36,7 +36,7 @@ static bool
gbt_timegt(const void *a, const void *b) gbt_timegt(const void *a, const void *b)
{ {
return DatumGetBool( return DatumGetBool(
DirectFunctionCall2(time_gt, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b))) DirectFunctionCall2(time_gt, PointerGetDatum(a), PointerGetDatum(b))
); );
} }
...@@ -44,7 +44,7 @@ static bool ...@@ -44,7 +44,7 @@ static bool
gbt_timege(const void *a, const void *b) gbt_timege(const void *a, const void *b)
{ {
return DatumGetBool( return DatumGetBool(
DirectFunctionCall2(time_ge, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b))) DirectFunctionCall2(time_ge, PointerGetDatum(a), PointerGetDatum(b))
); );
} }
...@@ -52,7 +52,7 @@ static bool ...@@ -52,7 +52,7 @@ static bool
gbt_timeeq(const void *a, const void *b) gbt_timeeq(const void *a, const void *b)
{ {
return DatumGetBool( return DatumGetBool(
DirectFunctionCall2(time_eq, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b))) DirectFunctionCall2(time_eq, PointerGetDatum(a), PointerGetDatum(b))
); );
} }
...@@ -60,7 +60,7 @@ static bool ...@@ -60,7 +60,7 @@ static bool
gbt_timele(const void *a, const void *b) gbt_timele(const void *a, const void *b)
{ {
return DatumGetBool( return DatumGetBool(
DirectFunctionCall2(time_le, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b))) DirectFunctionCall2(time_le, PointerGetDatum(a), PointerGetDatum(b))
); );
} }
...@@ -68,7 +68,7 @@ static bool ...@@ -68,7 +68,7 @@ static bool
gbt_timelt(const void *a, const void *b) gbt_timelt(const void *a, const void *b)
{ {
return DatumGetBool( return DatumGetBool(
DirectFunctionCall2(time_lt, P_TimeADTGetDatum(*((TimeADT *) a)), P_TimeADTGetDatum(*((TimeADT *) b))) DirectFunctionCall2(time_lt, PointerGetDatum(a), PointerGetDatum(b))
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment