mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Harmonize parameter names in contrib code.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in contrib code. Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Author: Peter Geoghegan <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@ -114,7 +114,7 @@ ArrayType *new_intArrayType(int num);
|
||||
ArrayType *copy_intArrayType(ArrayType *a);
|
||||
ArrayType *resize_intArrayType(ArrayType *a, int num);
|
||||
int internal_size(int *a, int len);
|
||||
ArrayType *_int_unique(ArrayType *a);
|
||||
ArrayType *_int_unique(ArrayType *r);
|
||||
int32 intarray_match_first(ArrayType *a, int32 elem);
|
||||
ArrayType *intarray_add_elem(ArrayType *a, int32 elem);
|
||||
ArrayType *intarray_concat_arrays(ArrayType *a, ArrayType *b);
|
||||
|
@ -34,8 +34,8 @@ PG_FUNCTION_INFO_V1(_int_contained_joinsel);
|
||||
PG_FUNCTION_INFO_V1(_int_matchsel);
|
||||
|
||||
|
||||
static Selectivity int_query_opr_selec(ITEM *item, Datum *values, float4 *freqs,
|
||||
int nmncelems, float4 minfreq);
|
||||
static Selectivity int_query_opr_selec(ITEM *item, Datum *mcelems, float4 *mcefreqs,
|
||||
int nmcelems, float4 minfreq);
|
||||
static int compare_val_int4(const void *a, const void *b);
|
||||
|
||||
/*
|
||||
|
@ -382,14 +382,14 @@ intarray_concat_arrays(ArrayType *a, ArrayType *b)
|
||||
}
|
||||
|
||||
ArrayType *
|
||||
int_to_intset(int32 n)
|
||||
int_to_intset(int32 elem)
|
||||
{
|
||||
ArrayType *result;
|
||||
int32 *aa;
|
||||
|
||||
result = new_intArrayType(1);
|
||||
aa = ARRPTR(result);
|
||||
aa[0] = n;
|
||||
aa[0] = elem;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user