diff options
author | Peter Geoghegan <pg@bowt.ie> | 2024-06-12 17:01:51 -0400 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2024-06-12 17:01:51 -0400 |
commit | 6207f08f700ddc874765919202727fb0171b5403 (patch) | |
tree | a1781e4c75cf2c334976322ad823bbfaf7d94c06 /src/include/utils | |
parent | a0fe90efef91fcd578a85a0f0c5bcab55285b1d7 (diff) | |
download | postgresql-6207f08f700ddc874765919202727fb0171b5403.tar.gz postgresql-6207f08f700ddc874765919202727fb0171b5403.zip |
Harmonize function parameter names for Postgres 17.
Make sure that function declarations use names that exactly match the
corresponding names from function definitions in a few places. These
inconsistencies were all introduced during Postgres 17 development.
pg_bsd_indent still has a couple of similar inconsistencies, which I
(pgeoghegan) have left untouched for now.
This commit was written with help from clang-tidy, by mechanically
applying the same rules as similar clean-up commits (the earliest such
commit was commit 035ce1fe).
Diffstat (limited to 'src/include/utils')
-rw-r--r-- | src/include/utils/guc.h | 4 | ||||
-rw-r--r-- | src/include/utils/jsonpath.h | 2 | ||||
-rw-r--r-- | src/include/utils/pg_locale.h | 4 | ||||
-rw-r--r-- | src/include/utils/resowner.h | 4 | ||||
-rw-r--r-- | src/include/utils/tuplesort.h | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index e4a594b5e80..ff506bf48d9 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -402,8 +402,8 @@ extern void AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt); extern char *GetConfigOptionByName(const char *name, const char **varname, bool missing_ok); -extern void TransformGUCArray(ArrayType *array, List **configNames, - List **configValues); +extern void TransformGUCArray(ArrayType *array, List **names, + List **values); extern void ProcessGUCArray(ArrayType *array, GucContext context, GucSource source, GucAction action); extern ArrayType *GUCArrayAdd(ArrayType *array, const char *name, const char *value); diff --git a/src/include/utils/jsonpath.h b/src/include/utils/jsonpath.h index 69c180c2e29..9d2b8533d54 100644 --- a/src/include/utils/jsonpath.h +++ b/src/include/utils/jsonpath.h @@ -295,7 +295,7 @@ typedef struct JsonPathVariable /* SQL/JSON query functions */ -extern bool JsonPathExists(Datum jb, JsonPath *path, bool *error, List *vars); +extern bool JsonPathExists(Datum jb, JsonPath *jp, bool *error, List *vars); extern Datum JsonPathQuery(Datum jb, JsonPath *jp, JsonWrapper wrapper, bool *empty, bool *error, List *vars, const char *column_name); diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h index 205aa200672..040968d6ff2 100644 --- a/src/include/utils/pg_locale.h +++ b/src/include/utils/pg_locale.h @@ -117,8 +117,8 @@ extern size_t pg_strxfrm_prefix(char *dest, const char *src, size_t destsize, extern size_t pg_strnxfrm_prefix(char *dest, size_t destsize, const char *src, size_t srclen, pg_locale_t locale); -extern int builtin_locale_encoding(const char *loc_str); -extern const char *builtin_validate_locale(int encoding, const char *loc_str); +extern int builtin_locale_encoding(const char *locale); +extern const char *builtin_validate_locale(int encoding, const char *locale); extern void icu_validate_locale(const char *loc_str); extern char *icu_language_tag(const char *loc_str, int elevel); diff --git a/src/include/utils/resowner.h b/src/include/utils/resowner.h index 68eba1822b3..4e534bc3e70 100644 --- a/src/include/utils/resowner.h +++ b/src/include/utils/resowner.h @@ -146,8 +146,8 @@ extern void ResourceOwnerNewParent(ResourceOwner owner, ResourceOwner newparent); extern void ResourceOwnerEnlarge(ResourceOwner owner); -extern void ResourceOwnerRemember(ResourceOwner owner, Datum res, const ResourceOwnerDesc *kind); -extern void ResourceOwnerForget(ResourceOwner owner, Datum res, const ResourceOwnerDesc *kind); +extern void ResourceOwnerRemember(ResourceOwner owner, Datum value, const ResourceOwnerDesc *kind); +extern void ResourceOwnerForget(ResourceOwner owner, Datum value, const ResourceOwnerDesc *kind); extern void ResourceOwnerReleaseAllOfKind(ResourceOwner owner, const ResourceOwnerDesc *kind); diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h index e7941a1f09f..cde83f62015 100644 --- a/src/include/utils/tuplesort.h +++ b/src/include/utils/tuplesort.h @@ -455,7 +455,7 @@ extern void tuplesort_putheaptuple(Tuplesortstate *state, HeapTuple tup); extern void tuplesort_putindextuplevalues(Tuplesortstate *state, Relation rel, ItemPointer self, const Datum *values, const bool *isnull); -extern void tuplesort_putbrintuple(Tuplesortstate *state, BrinTuple *tup, Size len); +extern void tuplesort_putbrintuple(Tuplesortstate *state, BrinTuple *tuple, Size size); extern void tuplesort_putdatum(Tuplesortstate *state, Datum val, bool isNull); |