summaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_int4.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2025-04-03 10:39:33 +0000
committerHeikki Linnakangas2025-04-03 10:39:33 +0000
commit9370978da8ac8f0e31867859282b0f2be724fe48 (patch)
tree5da91f476e7ba9eee548ee67eeabea80f5f1ded9 /contrib/btree_gist/btree_int4.c
parent82a46cca99fa967cc3c6c2cf55254dd44eebbcfd (diff)
Fix boilerplate comments in btree_gist
A few of these were copy-pasted wrong, like the comment "Bytea ops" in btree_numeric.c. Instead of fixing the incorrect ones, replace them all with generic comment "GiST support functions". Also tidy up the inconsistent newlines between various functions while we're at it.
Diffstat (limited to 'contrib/btree_gist/btree_int4.c')
-rw-r--r--contrib/btree_gist/btree_int4.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/contrib/btree_gist/btree_int4.c b/contrib/btree_gist/btree_int4.c
index 90d183be6e8..9abda7ef009 100644
--- a/contrib/btree_gist/btree_int4.c
+++ b/contrib/btree_gist/btree_int4.c
@@ -13,9 +13,7 @@ typedef struct int32key
int32 upper;
} int32KEY;
-/*
-** int32 ops
-*/
+/* GiST support functions */
PG_FUNCTION_INFO_V1(gbt_int4_compress);
PG_FUNCTION_INFO_V1(gbt_int4_fetch);
PG_FUNCTION_INFO_V1(gbt_int4_union);
@@ -25,7 +23,6 @@ PG_FUNCTION_INFO_V1(gbt_int4_distance);
PG_FUNCTION_INFO_V1(gbt_int4_penalty);
PG_FUNCTION_INFO_V1(gbt_int4_same);
-
static bool
gbt_int4gt(const void *a, const void *b, FmgrInfo *flinfo)
{
@@ -113,10 +110,9 @@ int4_dist(PG_FUNCTION_ARGS)
/**************************************************
- * int32 ops
+ * GiST support functions
**************************************************/
-
Datum
gbt_int4_compress(PG_FUNCTION_ARGS)
{
@@ -155,7 +151,6 @@ gbt_int4_consistent(PG_FUNCTION_ARGS)
GIST_LEAF(entry), &tinfo, fcinfo->flinfo));
}
-
Datum
gbt_int4_distance(PG_FUNCTION_ARGS)
{
@@ -173,7 +168,6 @@ gbt_int4_distance(PG_FUNCTION_ARGS)
&tinfo, fcinfo->flinfo));
}
-
Datum
gbt_int4_union(PG_FUNCTION_ARGS)
{
@@ -184,7 +178,6 @@ gbt_int4_union(PG_FUNCTION_ARGS)
PG_RETURN_POINTER(gbt_num_union(out, entryvec, &tinfo, fcinfo->flinfo));
}
-
Datum
gbt_int4_penalty(PG_FUNCTION_ARGS)
{