mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@@ -35,7 +35,7 @@ static int dry_run = false;
|
||||
static void run_testspec(TestSpec *testspec);
|
||||
static void run_all_permutations(TestSpec *testspec);
|
||||
static void run_all_permutations_recurse(TestSpec *testspec, int nsteps,
|
||||
Step **steps);
|
||||
Step **steps);
|
||||
static void run_named_permutations(TestSpec *testspec);
|
||||
static void run_permutation(TestSpec *testspec, int nsteps, Step **steps);
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@ typedef struct
|
||||
} worker_state;
|
||||
|
||||
static void setup_dynamic_shared_memory(int64 queue_size, int nworkers,
|
||||
dsm_segment **segp,
|
||||
test_shm_mq_header **hdrp,
|
||||
shm_mq **outp, shm_mq **inp);
|
||||
dsm_segment **segp,
|
||||
test_shm_mq_header **hdrp,
|
||||
shm_mq **outp, shm_mq **inp);
|
||||
static worker_state *setup_background_workers(int nworkers,
|
||||
dsm_segment *seg);
|
||||
dsm_segment *seg);
|
||||
static void cleanup_background_workers(dsm_segment *seg, Datum arg);
|
||||
static void wait_for_workers_to_become_ready(worker_state *wstate,
|
||||
volatile test_shm_mq_header *hdr);
|
||||
volatile test_shm_mq_header *hdr);
|
||||
static bool check_worker_status(worker_state *wstate);
|
||||
|
||||
/*
|
||||
|
||||
@@ -27,7 +27,7 @@ PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);
|
||||
void _PG_init(void);
|
||||
|
||||
static void verify_message(Size origlen, char *origdata, Size newlen,
|
||||
char *newdata);
|
||||
char *newdata);
|
||||
|
||||
/*
|
||||
* Simple test of the shared memory message queue infrastructure.
|
||||
|
||||
@@ -36,8 +36,8 @@ typedef struct
|
||||
|
||||
/* Set up dynamic shared memory and background workers for test run. */
|
||||
extern void test_shm_mq_setup(int64 queue_size, int32 nworkers,
|
||||
dsm_segment **seg, shm_mq_handle **output,
|
||||
shm_mq_handle **input);
|
||||
dsm_segment **seg, shm_mq_handle **output,
|
||||
shm_mq_handle **input);
|
||||
|
||||
/* Main entrypoint for a worker. */
|
||||
extern void test_shm_mq_main(Datum) pg_attribute_noreturn();
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
static void handle_sigterm(SIGNAL_ARGS);
|
||||
static void attach_to_queues(dsm_segment *seg, shm_toc *toc,
|
||||
int myworkernumber, shm_mq_handle **inqhp,
|
||||
shm_mq_handle **outqhp);
|
||||
int myworkernumber, shm_mq_handle **inqhp,
|
||||
shm_mq_handle **outqhp);
|
||||
static void copy_messages(shm_mq_handle *inqh, shm_mq_handle *outqh);
|
||||
|
||||
/*
|
||||
|
||||
@@ -45,8 +45,8 @@ extern char *launcher;
|
||||
extern const char *basic_diff_opts;
|
||||
extern const char *pretty_diff_opts;
|
||||
|
||||
int regression_main(int argc, char *argv[],
|
||||
init_function ifunc, test_function tfunc);
|
||||
int regression_main(int argc, char *argv[],
|
||||
init_function ifunc, test_function tfunc);
|
||||
void add_stringlist_item(_stringlist **listhead, const char *str);
|
||||
PID_TYPE spawn_process(const char *cmdline);
|
||||
void replace_string(char *string, const char *replace, const char *replacement);
|
||||
|
||||
Reference in New Issue
Block a user