mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -15,9 +15,7 @@ typedef struct
|
||||
/* make struct size = sizeof(gbtreekey16) */
|
||||
} mac8KEY;
|
||||
|
||||
/*
|
||||
** OID ops
|
||||
*/
|
||||
/* GiST support functions */
|
||||
PG_FUNCTION_INFO_V1(gbt_macad8_compress);
|
||||
PG_FUNCTION_INFO_V1(gbt_macad8_fetch);
|
||||
PG_FUNCTION_INFO_V1(gbt_macad8_union);
|
||||
@ -26,7 +24,6 @@ PG_FUNCTION_INFO_V1(gbt_macad8_consistent);
|
||||
PG_FUNCTION_INFO_V1(gbt_macad8_penalty);
|
||||
PG_FUNCTION_INFO_V1(gbt_macad8_same);
|
||||
|
||||
|
||||
static bool
|
||||
gbt_macad8gt(const void *a, const void *b, FmgrInfo *flinfo)
|
||||
{
|
||||
@ -88,11 +85,9 @@ static const gbtree_ninfo tinfo =
|
||||
|
||||
|
||||
/**************************************************
|
||||
* macaddr ops
|
||||
* GiST support functions
|
||||
**************************************************/
|
||||
|
||||
|
||||
|
||||
static uint64
|
||||
mac8_2_uint64(macaddr8 *m)
|
||||
{
|
||||
@ -105,8 +100,6 @@ mac8_2_uint64(macaddr8 *m)
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Datum
|
||||
gbt_macad8_compress(PG_FUNCTION_ARGS)
|
||||
{
|
||||
@ -145,7 +138,6 @@ gbt_macad8_consistent(PG_FUNCTION_ARGS)
|
||||
GIST_LEAF(entry), &tinfo, fcinfo->flinfo));
|
||||
}
|
||||
|
||||
|
||||
Datum
|
||||
gbt_macad8_union(PG_FUNCTION_ARGS)
|
||||
{
|
||||
@ -156,7 +148,6 @@ gbt_macad8_union(PG_FUNCTION_ARGS)
|
||||
PG_RETURN_POINTER(gbt_num_union(out, entryvec, &tinfo, fcinfo->flinfo));
|
||||
}
|
||||
|
||||
|
||||
Datum
|
||||
gbt_macad8_penalty(PG_FUNCTION_ARGS)
|
||||
{
|
||||
|
Reference in New Issue
Block a user