mirror of
https://github.com/postgres/postgres.git
synced 2026-01-27 21:43:08 +03:00
Harmonize more parameter names in bulk.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in optimizer, parser, utility, libpq, and "commands" code, as well as in remaining library code. Do the same for all code related to frontend programs (with the exception of pg_dump/pg_dumpall related code). Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will handle ecpg and pg_dump/pg_dumpall. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -27,6 +27,6 @@ extern void ResetCancelConn(void);
|
||||
* A callback can be optionally set up to be called at cancellation
|
||||
* time.
|
||||
*/
|
||||
extern void setup_cancel_handler(void (*cancel_callback) (void));
|
||||
extern void setup_cancel_handler(void (*query_cancel_callback) (void));
|
||||
|
||||
#endif /* CANCEL_H */
|
||||
|
||||
@@ -24,6 +24,7 @@ extern int pg_wcswidth(const char *pwcs, size_t len, int encoding);
|
||||
extern void pg_wcsformat(const unsigned char *pwcs, size_t len, int encoding,
|
||||
struct lineptr *lines, int count);
|
||||
extern void pg_wcssize(const unsigned char *pwcs, size_t len, int encoding,
|
||||
int *width, int *height, int *format_size);
|
||||
int *result_width, int *result_height,
|
||||
int *result_format_size);
|
||||
|
||||
#endif /* MBPRINT_H */
|
||||
|
||||
@@ -58,7 +58,7 @@ ParallelSlotClearHandler(ParallelSlot *slot)
|
||||
slot->handler_context = NULL;
|
||||
}
|
||||
|
||||
extern ParallelSlot *ParallelSlotsGetIdle(ParallelSlotArray *slots,
|
||||
extern ParallelSlot *ParallelSlotsGetIdle(ParallelSlotArray *sa,
|
||||
const char *dbname);
|
||||
|
||||
extern ParallelSlotArray *ParallelSlotsSetup(int numslots, ConnParams *cparams,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
|
||||
|
||||
extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
|
||||
char *pg_replication_slot);
|
||||
char *replication_slot);
|
||||
extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
|
||||
PQExpBuffer contents);
|
||||
|
||||
|
||||
@@ -65,6 +65,6 @@ extern void simple_string_list_destroy(SimpleStringList *list);
|
||||
|
||||
extern const char *simple_string_list_not_touched(SimpleStringList *list);
|
||||
|
||||
extern void simple_ptr_list_append(SimplePtrList *list, void *val);
|
||||
extern void simple_ptr_list_append(SimplePtrList *list, void *ptr);
|
||||
|
||||
#endif /* SIMPLE_LIST_H */
|
||||
|
||||
@@ -24,7 +24,7 @@ extern PGDLLIMPORT int quote_all_identifiers;
|
||||
extern PQExpBuffer (*getLocalPQExpBuffer) (void);
|
||||
|
||||
/* Functions */
|
||||
extern const char *fmtId(const char *identifier);
|
||||
extern const char *fmtId(const char *rawid);
|
||||
extern const char *fmtQualifiedId(const char *schema, const char *id);
|
||||
|
||||
extern char *formatPGVersionNumber(int version_number, bool include_minor,
|
||||
|
||||
Reference in New Issue
Block a user