Commit 870b1d68 authored by Andres Freund's avatar Andres Freund

Remove superfluous newlines in function prototypes.

These were introduced by pgindent due to fixe to broken
indentation (c.f. 8255c7a5). Previously the mis-indentation of
function prototypes was creatively used to reduce indentation in a few
places.

As that formatting only exists in master and REL_12_STABLE, it seems
better to fix it in both, rather than having some odd indentation in
v12 that somebody might copy for future patches or such.

Author: Andres Freund
Discussion: https://postgr.es/m/20190728013754.jwcbe5nfyt3533vx@alap3.anarazel.de
Backpatch: 12-
parent 6384e87b
...@@ -151,8 +151,7 @@ static void AlterEventTriggerOwner_internal(Relation rel, ...@@ -151,8 +151,7 @@ static void AlterEventTriggerOwner_internal(Relation rel,
HeapTuple tup, HeapTuple tup,
Oid newOwnerId); Oid newOwnerId);
static event_trigger_command_tag_check_result check_ddl_tag(const char *tag); static event_trigger_command_tag_check_result check_ddl_tag(const char *tag);
static event_trigger_command_tag_check_result check_table_rewrite_ddl_tag( static event_trigger_command_tag_check_result check_table_rewrite_ddl_tag(const char *tag);
const char *tag);
static void error_duplicate_filter_variable(const char *defname); static void error_duplicate_filter_variable(const char *defname);
static Datum filter_list_to_array(List *filterlist); static Datum filter_list_to_array(List *filterlist);
static Oid insert_event_trigger_tuple(const char *trigname, const char *eventname, static Oid insert_event_trigger_tuple(const char *trigname, const char *eventname,
......
...@@ -54,15 +54,13 @@ ...@@ -54,15 +54,13 @@
static TupleTableSlot *BitmapHeapNext(BitmapHeapScanState *node); static TupleTableSlot *BitmapHeapNext(BitmapHeapScanState *node);
static inline void BitmapDoneInitializingSharedState( static inline void BitmapDoneInitializingSharedState(ParallelBitmapHeapState *pstate);
ParallelBitmapHeapState *pstate);
static inline void BitmapAdjustPrefetchIterator(BitmapHeapScanState *node, static inline void BitmapAdjustPrefetchIterator(BitmapHeapScanState *node,
TBMIterateResult *tbmres); TBMIterateResult *tbmres);
static inline void BitmapAdjustPrefetchTarget(BitmapHeapScanState *node); static inline void BitmapAdjustPrefetchTarget(BitmapHeapScanState *node);
static inline void BitmapPrefetch(BitmapHeapScanState *node, static inline void BitmapPrefetch(BitmapHeapScanState *node,
TableScanDesc scan); TableScanDesc scan);
static bool BitmapShouldInitializeSharedState( static bool BitmapShouldInitializeSharedState(ParallelBitmapHeapState *pstate);
ParallelBitmapHeapState *pstate);
/* ---------------------------------------------------------------- /* ----------------------------------------------------------------
......
...@@ -133,8 +133,7 @@ static int CheckBSDAuth(Port *port, char *user); ...@@ -133,8 +133,7 @@ static int CheckBSDAuth(Port *port, char *user);
/* Correct header from the Platform SDK */ /* Correct header from the Platform SDK */
typedef typedef
ULONG (*__ldap_start_tls_sA) ( ULONG (*__ldap_start_tls_sA) (IN PLDAP ExternalHandle,
IN PLDAP ExternalHandle,
OUT PULONG ServerReturnValue, OUT PULONG ServerReturnValue,
OUT LDAPMessage **result, OUT LDAPMessage **result,
IN PLDAPControlA * ServerControls, IN PLDAPControlA * ServerControls,
......
...@@ -68,8 +68,7 @@ SendSharedInvalidMessages(const SharedInvalidationMessage *msgs, int n) ...@@ -68,8 +68,7 @@ SendSharedInvalidMessages(const SharedInvalidationMessage *msgs, int n)
* sucked out of sinvaladt.c. * sucked out of sinvaladt.c.
*/ */
void void
ReceiveSharedInvalidMessages( ReceiveSharedInvalidMessages(void (*invalFunction) (SharedInvalidationMessage *msg),
void (*invalFunction) (SharedInvalidationMessage *msg),
void (*resetFunction) (void)) void (*resetFunction) (void))
{ {
#define MAXINVALMSGS 32 #define MAXINVALMSGS 32
......
...@@ -185,11 +185,9 @@ static JsonPathExecResult executeItemUnwrapTargetArray(JsonPathExecContext *cxt, ...@@ -185,11 +185,9 @@ static JsonPathExecResult executeItemUnwrapTargetArray(JsonPathExecContext *cxt,
static JsonPathExecResult executeNextItem(JsonPathExecContext *cxt, static JsonPathExecResult executeNextItem(JsonPathExecContext *cxt,
JsonPathItem *cur, JsonPathItem *next, JsonPathItem *cur, JsonPathItem *next,
JsonbValue *v, JsonValueList *found, bool copy); JsonbValue *v, JsonValueList *found, bool copy);
static JsonPathExecResult executeItemOptUnwrapResult( static JsonPathExecResult executeItemOptUnwrapResult(JsonPathExecContext *cxt, JsonPathItem *jsp, JsonbValue *jb,
JsonPathExecContext *cxt, JsonPathItem *jsp, JsonbValue *jb,
bool unwrap, JsonValueList *found); bool unwrap, JsonValueList *found);
static JsonPathExecResult executeItemOptUnwrapResultNoThrow( static JsonPathExecResult executeItemOptUnwrapResultNoThrow(JsonPathExecContext *cxt, JsonPathItem *jsp,
JsonPathExecContext *cxt, JsonPathItem *jsp,
JsonbValue *jb, bool unwrap, JsonValueList *found); JsonbValue *jb, bool unwrap, JsonValueList *found);
static JsonPathBool executeBoolItem(JsonPathExecContext *cxt, static JsonPathBool executeBoolItem(JsonPathExecContext *cxt,
JsonPathItem *jsp, JsonbValue *jb, bool canHaveNext); JsonPathItem *jsp, JsonbValue *jb, bool canHaveNext);
......
...@@ -473,8 +473,7 @@ extern bool gistPageRecyclable(Page page); ...@@ -473,8 +473,7 @@ extern bool gistPageRecyclable(Page page);
extern void gistfillbuffer(Page page, IndexTuple *itup, int len, extern void gistfillbuffer(Page page, IndexTuple *itup, int len,
OffsetNumber off); OffsetNumber off);
extern IndexTuple *gistextractpage(Page page, int *len /* out */ ); extern IndexTuple *gistextractpage(Page page, int *len /* out */ );
extern IndexTuple *gistjoinvector( extern IndexTuple *gistjoinvector(IndexTuple *itvec, int *len,
IndexTuple *itvec, int *len,
IndexTuple *additvec, int addlen); IndexTuple *additvec, int addlen);
extern IndexTupleData *gistfillitupvec(IndexTuple *vec, int veclen, int *memlen); extern IndexTupleData *gistfillitupvec(IndexTuple *vec, int veclen, int *memlen);
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
struct LogicalDecodingContext; struct LogicalDecodingContext;
typedef void (*LogicalOutputPluginWriterWrite) ( typedef void (*LogicalOutputPluginWriterWrite) (struct LogicalDecodingContext *lr,
struct LogicalDecodingContext *lr,
XLogRecPtr Ptr, XLogRecPtr Ptr,
TransactionId xid, TransactionId xid,
bool last_write bool last_write
...@@ -26,8 +25,7 @@ typedef void (*LogicalOutputPluginWriterWrite) ( ...@@ -26,8 +25,7 @@ typedef void (*LogicalOutputPluginWriterWrite) (
typedef LogicalOutputPluginWriterWrite LogicalOutputPluginWriterPrepareWrite; typedef LogicalOutputPluginWriterWrite LogicalOutputPluginWriterPrepareWrite;
typedef void (*LogicalOutputPluginWriterUpdateProgress) ( typedef void (*LogicalOutputPluginWriterUpdateProgress) (struct LogicalDecodingContext *lr,
struct LogicalDecodingContext *lr,
XLogRecPtr Ptr, XLogRecPtr Ptr,
TransactionId xid TransactionId xid
); );
...@@ -102,8 +100,7 @@ extern LogicalDecodingContext *CreateInitDecodingContext(char *plugin, ...@@ -102,8 +100,7 @@ extern LogicalDecodingContext *CreateInitDecodingContext(char *plugin,
LogicalOutputPluginWriterPrepareWrite prepare_write, LogicalOutputPluginWriterPrepareWrite prepare_write,
LogicalOutputPluginWriterWrite do_write, LogicalOutputPluginWriterWrite do_write,
LogicalOutputPluginWriterUpdateProgress update_progress); LogicalOutputPluginWriterUpdateProgress update_progress);
extern LogicalDecodingContext *CreateDecodingContext( extern LogicalDecodingContext *CreateDecodingContext(XLogRecPtr start_lsn,
XLogRecPtr start_lsn,
List *output_plugin_options, List *output_plugin_options,
bool fast_forward, bool fast_forward,
XLogPageReadCB read_page, XLogPageReadCB read_page,
......
...@@ -292,34 +292,29 @@ typedef struct ReorderBufferTXN ...@@ -292,34 +292,29 @@ typedef struct ReorderBufferTXN
typedef struct ReorderBuffer ReorderBuffer; typedef struct ReorderBuffer ReorderBuffer;
/* change callback signature */ /* change callback signature */
typedef void (*ReorderBufferApplyChangeCB) ( typedef void (*ReorderBufferApplyChangeCB) (ReorderBuffer *rb,
ReorderBuffer *rb,
ReorderBufferTXN *txn, ReorderBufferTXN *txn,
Relation relation, Relation relation,
ReorderBufferChange *change); ReorderBufferChange *change);
/* truncate callback signature */ /* truncate callback signature */
typedef void (*ReorderBufferApplyTruncateCB) ( typedef void (*ReorderBufferApplyTruncateCB) (ReorderBuffer *rb,
ReorderBuffer *rb,
ReorderBufferTXN *txn, ReorderBufferTXN *txn,
int nrelations, int nrelations,
Relation relations[], Relation relations[],
ReorderBufferChange *change); ReorderBufferChange *change);
/* begin callback signature */ /* begin callback signature */
typedef void (*ReorderBufferBeginCB) ( typedef void (*ReorderBufferBeginCB) (ReorderBuffer *rb,
ReorderBuffer *rb,
ReorderBufferTXN *txn); ReorderBufferTXN *txn);
/* commit callback signature */ /* commit callback signature */
typedef void (*ReorderBufferCommitCB) ( typedef void (*ReorderBufferCommitCB) (ReorderBuffer *rb,
ReorderBuffer *rb,
ReorderBufferTXN *txn, ReorderBufferTXN *txn,
XLogRecPtr commit_lsn); XLogRecPtr commit_lsn);
/* message callback signature */ /* message callback signature */
typedef void (*ReorderBufferMessageCB) ( typedef void (*ReorderBufferMessageCB) (ReorderBuffer *rb,
ReorderBuffer *rb,
ReorderBufferTXN *txn, ReorderBufferTXN *txn,
XLogRecPtr message_lsn, XLogRecPtr message_lsn,
bool transactional, bool transactional,
......
...@@ -129,8 +129,7 @@ extern volatile sig_atomic_t catchupInterruptPending; ...@@ -129,8 +129,7 @@ extern volatile sig_atomic_t catchupInterruptPending;
extern void SendSharedInvalidMessages(const SharedInvalidationMessage *msgs, extern void SendSharedInvalidMessages(const SharedInvalidationMessage *msgs,
int n); int n);
extern void ReceiveSharedInvalidMessages( extern void ReceiveSharedInvalidMessages(void (*invalFunction) (SharedInvalidationMessage *msg),
void (*invalFunction) (SharedInvalidationMessage *msg),
void (*resetFunction) (void)); void (*resetFunction) (void));
/* signal handler for catchup events (PROCSIG_CATCHUP_INTERRUPT) */ /* signal handler for catchup events (PROCSIG_CATCHUP_INTERRUPT) */
......
...@@ -283,8 +283,7 @@ extern bool trace_sort; ...@@ -283,8 +283,7 @@ extern bool trace_sort;
extern void SetConfigOption(const char *name, const char *value, extern void SetConfigOption(const char *name, const char *value,
GucContext context, GucSource source); GucContext context, GucSource source);
extern void DefineCustomBoolVariable( extern void DefineCustomBoolVariable(const char *name,
const char *name,
const char *short_desc, const char *short_desc,
const char *long_desc, const char *long_desc,
bool *valueAddr, bool *valueAddr,
...@@ -295,8 +294,7 @@ extern void DefineCustomBoolVariable( ...@@ -295,8 +294,7 @@ extern void DefineCustomBoolVariable(
GucBoolAssignHook assign_hook, GucBoolAssignHook assign_hook,
GucShowHook show_hook); GucShowHook show_hook);
extern void DefineCustomIntVariable( extern void DefineCustomIntVariable(const char *name,
const char *name,
const char *short_desc, const char *short_desc,
const char *long_desc, const char *long_desc,
int *valueAddr, int *valueAddr,
...@@ -309,8 +307,7 @@ extern void DefineCustomIntVariable( ...@@ -309,8 +307,7 @@ extern void DefineCustomIntVariable(
GucIntAssignHook assign_hook, GucIntAssignHook assign_hook,
GucShowHook show_hook); GucShowHook show_hook);
extern void DefineCustomRealVariable( extern void DefineCustomRealVariable(const char *name,
const char *name,
const char *short_desc, const char *short_desc,
const char *long_desc, const char *long_desc,
double *valueAddr, double *valueAddr,
...@@ -323,8 +320,7 @@ extern void DefineCustomRealVariable( ...@@ -323,8 +320,7 @@ extern void DefineCustomRealVariable(
GucRealAssignHook assign_hook, GucRealAssignHook assign_hook,
GucShowHook show_hook); GucShowHook show_hook);
extern void DefineCustomStringVariable( extern void DefineCustomStringVariable(const char *name,
const char *name,
const char *short_desc, const char *short_desc,
const char *long_desc, const char *long_desc,
char **valueAddr, char **valueAddr,
...@@ -335,8 +331,7 @@ extern void DefineCustomStringVariable( ...@@ -335,8 +331,7 @@ extern void DefineCustomStringVariable(
GucStringAssignHook assign_hook, GucStringAssignHook assign_hook,
GucShowHook show_hook); GucShowHook show_hook);
extern void DefineCustomEnumVariable( extern void DefineCustomEnumVariable(const char *name,
const char *name,
const char *short_desc, const char *short_desc,
const char *long_desc, const char *long_desc,
int *valueAddr, int *valueAddr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment