summaryrefslogtreecommitdiff
path: root/contrib/seg/seg.c
diff options
context:
space:
mode:
authorAlvaro Herrera2020-01-30 16:42:14 +0000
committerAlvaro Herrera2020-01-30 16:42:14 +0000
commitc9d29775195922136c09cc980bb1b7091bf3d859 (patch)
tree2a7ffae1890975a24c18aa92f6dfe5307051492a /contrib/seg/seg.c
parent4e89c79a52f8a898edd648b56a00f0f4f840cfe7 (diff)
Clean up newlines following left parentheses
We used to strategically place newlines after some function call left parentheses to make pgindent move the argument list a few chars to the left, so that the whole line would fit under 80 chars. However, pgindent no longer does that, so the newlines just made the code vertically longer for no reason. Remove those newlines, and reflow some of those lines for some extra naturality. Reviewed-by: Michael Paquier, Tom Lane Discussion: https://postgr.es/m/20200129200401.GA6303@alvherre.pgsql
Diffstat (limited to 'contrib/seg/seg.c')
-rw-r--r--contrib/seg/seg.c30
1 files changed, 18 insertions, 12 deletions
diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c
index 4ff6694193c..4a8e2be3290 100644
--- a/contrib/seg/seg.c
+++ b/contrib/seg/seg.c
@@ -557,8 +557,9 @@ seg_contained(PG_FUNCTION_ARGS)
Datum
seg_same(PG_FUNCTION_ARGS)
{
- int cmp = DatumGetInt32(
- DirectFunctionCall2(seg_cmp, PG_GETARG_DATUM(0), PG_GETARG_DATUM(1)));
+ int cmp = DatumGetInt32(DirectFunctionCall2(seg_cmp,
+ PG_GETARG_DATUM(0),
+ PG_GETARG_DATUM(1)));
PG_RETURN_BOOL(cmp == 0);
}
@@ -845,8 +846,9 @@ seg_cmp(PG_FUNCTION_ARGS)
Datum
seg_lt(PG_FUNCTION_ARGS)
{
- int cmp = DatumGetInt32(
- DirectFunctionCall2(seg_cmp, PG_GETARG_DATUM(0), PG_GETARG_DATUM(1)));
+ int cmp = DatumGetInt32(DirectFunctionCall2(seg_cmp,
+ PG_GETARG_DATUM(0),
+ PG_GETARG_DATUM(1)));
PG_RETURN_BOOL(cmp < 0);
}
@@ -854,8 +856,9 @@ seg_lt(PG_FUNCTION_ARGS)
Datum
seg_le(PG_FUNCTION_ARGS)
{
- int cmp = DatumGetInt32(
- DirectFunctionCall2(seg_cmp, PG_GETARG_DATUM(0), PG_GETARG_DATUM(1)));
+ int cmp = DatumGetInt32(DirectFunctionCall2(seg_cmp,
+ PG_GETARG_DATUM(0),
+ PG_GETARG_DATUM(1)));
PG_RETURN_BOOL(cmp <= 0);
}
@@ -863,8 +866,9 @@ seg_le(PG_FUNCTION_ARGS)
Datum
seg_gt(PG_FUNCTION_ARGS)
{
- int cmp = DatumGetInt32(
- DirectFunctionCall2(seg_cmp, PG_GETARG_DATUM(0), PG_GETARG_DATUM(1)));
+ int cmp = DatumGetInt32(DirectFunctionCall2(seg_cmp,
+ PG_GETARG_DATUM(0),
+ PG_GETARG_DATUM(1)));
PG_RETURN_BOOL(cmp > 0);
}
@@ -872,8 +876,9 @@ seg_gt(PG_FUNCTION_ARGS)
Datum
seg_ge(PG_FUNCTION_ARGS)
{
- int cmp = DatumGetInt32(
- DirectFunctionCall2(seg_cmp, PG_GETARG_DATUM(0), PG_GETARG_DATUM(1)));
+ int cmp = DatumGetInt32(DirectFunctionCall2(seg_cmp,
+ PG_GETARG_DATUM(0),
+ PG_GETARG_DATUM(1)));
PG_RETURN_BOOL(cmp >= 0);
}
@@ -882,8 +887,9 @@ seg_ge(PG_FUNCTION_ARGS)
Datum
seg_different(PG_FUNCTION_ARGS)
{
- int cmp = DatumGetInt32(
- DirectFunctionCall2(seg_cmp, PG_GETARG_DATUM(0), PG_GETARG_DATUM(1)));
+ int cmp = DatumGetInt32(DirectFunctionCall2(seg_cmp,
+ PG_GETARG_DATUM(0),
+ PG_GETARG_DATUM(1)));
PG_RETURN_BOOL(cmp != 0);
}