mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 22:11:21 +02:00
8255c7a5ee
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
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/*-------------------------------------------------------------------------
|
|
* pg_regress.h --- regression test driver
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/test/regress/pg_regress.h
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include <unistd.h>
|
|
|
|
#ifndef WIN32
|
|
#define PID_TYPE pid_t
|
|
#define INVALID_PID (-1)
|
|
#else
|
|
#define PID_TYPE HANDLE
|
|
#define INVALID_PID INVALID_HANDLE_VALUE
|
|
#endif
|
|
|
|
/* simple list of strings */
|
|
typedef struct _stringlist
|
|
{
|
|
char *str;
|
|
struct _stringlist *next;
|
|
} _stringlist;
|
|
|
|
typedef PID_TYPE(*test_function) (const char *,
|
|
_stringlist **,
|
|
_stringlist **,
|
|
_stringlist **);
|
|
typedef void (*init_function) (int argc, char **argv);
|
|
|
|
extern char *bindir;
|
|
extern char *libdir;
|
|
extern char *datadir;
|
|
extern char *host_platform;
|
|
|
|
extern _stringlist *dblist;
|
|
extern bool debug;
|
|
extern char *inputdir;
|
|
extern char *outputdir;
|
|
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);
|
|
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);
|
|
bool file_exists(const char *file);
|