1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

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.
This commit is contained in:
Heikki Linnakangas
2025-04-03 13:39:33 +03:00
parent 82a46cca99
commit 9370978da8
21 changed files with 49 additions and 187 deletions

View File

@ -13,9 +13,7 @@ typedef struct int16key
int16 upper;
} int16KEY;
/*
** int16 ops
*/
/* GiST support functions */
PG_FUNCTION_INFO_V1(gbt_int2_compress);
PG_FUNCTION_INFO_V1(gbt_int2_fetch);
PG_FUNCTION_INFO_V1(gbt_int2_union);
@ -25,6 +23,7 @@ PG_FUNCTION_INFO_V1(gbt_int2_distance);
PG_FUNCTION_INFO_V1(gbt_int2_penalty);
PG_FUNCTION_INFO_V1(gbt_int2_same);
static bool
gbt_int2gt(const void *a, const void *b, FmgrInfo *flinfo)
{
@ -112,10 +111,9 @@ int2_dist(PG_FUNCTION_ARGS)
/**************************************************
* int16 ops
* GiST support functions
**************************************************/
Datum
gbt_int2_compress(PG_FUNCTION_ARGS)
{
@ -154,7 +152,6 @@ gbt_int2_consistent(PG_FUNCTION_ARGS)
GIST_LEAF(entry), &tinfo, fcinfo->flinfo));
}
Datum
gbt_int2_distance(PG_FUNCTION_ARGS)
{
@ -172,7 +169,6 @@ gbt_int2_distance(PG_FUNCTION_ARGS)
&tinfo, fcinfo->flinfo));
}
Datum
gbt_int2_union(PG_FUNCTION_ARGS)
{
@ -183,7 +179,6 @@ gbt_int2_union(PG_FUNCTION_ARGS)
PG_RETURN_POINTER(gbt_num_union(out, entryvec, &tinfo, fcinfo->flinfo));
}
Datum
gbt_int2_penalty(PG_FUNCTION_ARGS)
{