Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit870b1d6

Browse files
committed
Remove superfluous newlines in function prototypes.
These were introduced by pgindent due to fixe to brokenindentation (c.f.8255c7a). Previously the mis-indentation offunction prototypes was creatively used to reduce indentation in a fewplaces.As that formatting only exists in master and REL_12_STABLE, it seemsbetter to fix it in both, rather than having some odd indentation inv12 that somebody might copy for future patches or such.Author: Andres FreundDiscussion:https://postgr.es/m/20190728013754.jwcbe5nfyt3533vx@alap3.anarazel.deBackpatch: 12-
1 parent6384e87 commit870b1d6

File tree

10 files changed

+22
-44
lines changed

10 files changed

+22
-44
lines changed

‎src/backend/commands/event_trigger.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ static void AlterEventTriggerOwner_internal(Relation rel,
151151
HeapTupletup,
152152
OidnewOwnerId);
153153
staticevent_trigger_command_tag_check_resultcheck_ddl_tag(constchar*tag);
154-
staticevent_trigger_command_tag_check_resultcheck_table_rewrite_ddl_tag(
155-
constchar*tag);
154+
staticevent_trigger_command_tag_check_resultcheck_table_rewrite_ddl_tag(constchar*tag);
156155
staticvoiderror_duplicate_filter_variable(constchar*defname);
157156
staticDatumfilter_list_to_array(List*filterlist);
158157
staticOidinsert_event_trigger_tuple(constchar*trigname,constchar*eventname,

‎src/backend/executor/nodeBitmapHeapscan.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@
5454

5555

5656
staticTupleTableSlot*BitmapHeapNext(BitmapHeapScanState*node);
57-
staticinlinevoidBitmapDoneInitializingSharedState(
58-
ParallelBitmapHeapState*pstate);
57+
staticinlinevoidBitmapDoneInitializingSharedState(ParallelBitmapHeapState*pstate);
5958
staticinlinevoidBitmapAdjustPrefetchIterator(BitmapHeapScanState*node,
6059
TBMIterateResult*tbmres);
6160
staticinlinevoidBitmapAdjustPrefetchTarget(BitmapHeapScanState*node);
6261
staticinlinevoidBitmapPrefetch(BitmapHeapScanState*node,
6362
TableScanDescscan);
64-
staticboolBitmapShouldInitializeSharedState(
65-
ParallelBitmapHeapState*pstate);
63+
staticboolBitmapShouldInitializeSharedState(ParallelBitmapHeapState*pstate);
6664

6765

6866
/* ----------------------------------------------------------------

‎src/backend/libpq/auth.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ static intCheckBSDAuth(Port *port, char *user);
133133

134134
/* Correct header from the Platform SDK */
135135
typedef
136-
ULONG(*__ldap_start_tls_sA) (
137-
INPLDAPExternalHandle,
136+
ULONG(*__ldap_start_tls_sA) (INPLDAPExternalHandle,
138137
OUTPULONGServerReturnValue,
139138
OUTLDAPMessage**result,
140139
INPLDAPControlA*ServerControls,

‎src/backend/storage/ipc/sinval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ SendSharedInvalidMessages(const SharedInvalidationMessage *msgs, int n)
6868
* sucked out of sinvaladt.c.
6969
*/
7070
void
71-
ReceiveSharedInvalidMessages(
72-
void (*invalFunction) (SharedInvalidationMessage*msg),
71+
ReceiveSharedInvalidMessages(void (*invalFunction) (SharedInvalidationMessage*msg),
7372
void (*resetFunction) (void))
7473
{
7574
#defineMAXINVALMSGS 32

‎src/backend/utils/adt/jsonpath_exec.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,9 @@ static JsonPathExecResult executeItemUnwrapTargetArray(JsonPathExecContext *cxt,
185185
staticJsonPathExecResultexecuteNextItem(JsonPathExecContext*cxt,
186186
JsonPathItem*cur,JsonPathItem*next,
187187
JsonbValue*v,JsonValueList*found,boolcopy);
188-
staticJsonPathExecResultexecuteItemOptUnwrapResult(
189-
JsonPathExecContext*cxt,JsonPathItem*jsp,JsonbValue*jb,
188+
staticJsonPathExecResultexecuteItemOptUnwrapResult(JsonPathExecContext*cxt,JsonPathItem*jsp,JsonbValue*jb,
190189
boolunwrap,JsonValueList*found);
191-
staticJsonPathExecResultexecuteItemOptUnwrapResultNoThrow(
192-
JsonPathExecContext*cxt,JsonPathItem*jsp,
190+
staticJsonPathExecResultexecuteItemOptUnwrapResultNoThrow(JsonPathExecContext*cxt,JsonPathItem*jsp,
193191
JsonbValue*jb,boolunwrap,JsonValueList*found);
194192
staticJsonPathBoolexecuteBoolItem(JsonPathExecContext*cxt,
195193
JsonPathItem*jsp,JsonbValue*jb,boolcanHaveNext);

‎src/include/access/gist_private.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,7 @@ extern bool gistPageRecyclable(Page page);
473473
externvoidgistfillbuffer(Pagepage,IndexTuple*itup,intlen,
474474
OffsetNumberoff);
475475
externIndexTuple*gistextractpage(Pagepage,int*len/* out */ );
476-
externIndexTuple*gistjoinvector(
477-
IndexTuple*itvec,int*len,
476+
externIndexTuple*gistjoinvector(IndexTuple*itvec,int*len,
478477
IndexTuple*additvec,intaddlen);
479478
externIndexTupleData*gistfillitupvec(IndexTuple*vec,intveclen,int*memlen);
480479

‎src/include/replication/logical.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@
1717

1818
structLogicalDecodingContext;
1919

20-
typedefvoid (*LogicalOutputPluginWriterWrite) (
21-
structLogicalDecodingContext*lr,
20+
typedefvoid (*LogicalOutputPluginWriterWrite) (structLogicalDecodingContext*lr,
2221
XLogRecPtrPtr,
2322
TransactionIdxid,
2423
boollast_write
2524
);
2625

2726
typedefLogicalOutputPluginWriterWriteLogicalOutputPluginWriterPrepareWrite;
2827

29-
typedefvoid (*LogicalOutputPluginWriterUpdateProgress) (
30-
structLogicalDecodingContext*lr,
28+
typedefvoid (*LogicalOutputPluginWriterUpdateProgress) (structLogicalDecodingContext*lr,
3129
XLogRecPtrPtr,
3230
TransactionIdxid
3331
);
@@ -102,8 +100,7 @@ extern LogicalDecodingContext *CreateInitDecodingContext(char *plugin,
102100
LogicalOutputPluginWriterPrepareWriteprepare_write,
103101
LogicalOutputPluginWriterWritedo_write,
104102
LogicalOutputPluginWriterUpdateProgressupdate_progress);
105-
externLogicalDecodingContext*CreateDecodingContext(
106-
XLogRecPtrstart_lsn,
103+
externLogicalDecodingContext*CreateDecodingContext(XLogRecPtrstart_lsn,
107104
List*output_plugin_options,
108105
boolfast_forward,
109106
XLogPageReadCBread_page,

‎src/include/replication/reorderbuffer.h

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,34 +292,29 @@ typedef struct ReorderBufferTXN
292292
typedefstructReorderBufferReorderBuffer;
293293

294294
/* change callback signature */
295-
typedefvoid (*ReorderBufferApplyChangeCB) (
296-
ReorderBuffer*rb,
295+
typedefvoid (*ReorderBufferApplyChangeCB) (ReorderBuffer*rb,
297296
ReorderBufferTXN*txn,
298297
Relationrelation,
299298
ReorderBufferChange*change);
300299

301300
/* truncate callback signature */
302-
typedefvoid (*ReorderBufferApplyTruncateCB) (
303-
ReorderBuffer*rb,
301+
typedefvoid (*ReorderBufferApplyTruncateCB) (ReorderBuffer*rb,
304302
ReorderBufferTXN*txn,
305303
intnrelations,
306304
Relationrelations[],
307305
ReorderBufferChange*change);
308306

309307
/* begin callback signature */
310-
typedefvoid (*ReorderBufferBeginCB) (
311-
ReorderBuffer*rb,
308+
typedefvoid (*ReorderBufferBeginCB) (ReorderBuffer*rb,
312309
ReorderBufferTXN*txn);
313310

314311
/* commit callback signature */
315-
typedefvoid (*ReorderBufferCommitCB) (
316-
ReorderBuffer*rb,
312+
typedefvoid (*ReorderBufferCommitCB) (ReorderBuffer*rb,
317313
ReorderBufferTXN*txn,
318314
XLogRecPtrcommit_lsn);
319315

320316
/* message callback signature */
321-
typedefvoid (*ReorderBufferMessageCB) (
322-
ReorderBuffer*rb,
317+
typedefvoid (*ReorderBufferMessageCB) (ReorderBuffer*rb,
323318
ReorderBufferTXN*txn,
324319
XLogRecPtrmessage_lsn,
325320
booltransactional,

‎src/include/storage/sinval.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ extern volatile sig_atomic_t catchupInterruptPending;
129129

130130
externvoidSendSharedInvalidMessages(constSharedInvalidationMessage*msgs,
131131
intn);
132-
externvoidReceiveSharedInvalidMessages(
133-
void (*invalFunction) (SharedInvalidationMessage*msg),
132+
externvoidReceiveSharedInvalidMessages(void (*invalFunction) (SharedInvalidationMessage*msg),
134133
void (*resetFunction) (void));
135134

136135
/* signal handler for catchup events (PROCSIG_CATCHUP_INTERRUPT) */

‎src/include/utils/guc.h

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ extern bool trace_sort;
283283
externvoidSetConfigOption(constchar*name,constchar*value,
284284
GucContextcontext,GucSourcesource);
285285

286-
externvoidDefineCustomBoolVariable(
287-
constchar*name,
286+
externvoidDefineCustomBoolVariable(constchar*name,
288287
constchar*short_desc,
289288
constchar*long_desc,
290289
bool*valueAddr,
@@ -295,8 +294,7 @@ extern void DefineCustomBoolVariable(
295294
GucBoolAssignHookassign_hook,
296295
GucShowHookshow_hook);
297296

298-
externvoidDefineCustomIntVariable(
299-
constchar*name,
297+
externvoidDefineCustomIntVariable(constchar*name,
300298
constchar*short_desc,
301299
constchar*long_desc,
302300
int*valueAddr,
@@ -309,8 +307,7 @@ extern void DefineCustomIntVariable(
309307
GucIntAssignHookassign_hook,
310308
GucShowHookshow_hook);
311309

312-
externvoidDefineCustomRealVariable(
313-
constchar*name,
310+
externvoidDefineCustomRealVariable(constchar*name,
314311
constchar*short_desc,
315312
constchar*long_desc,
316313
double*valueAddr,
@@ -323,8 +320,7 @@ extern void DefineCustomRealVariable(
323320
GucRealAssignHookassign_hook,
324321
GucShowHookshow_hook);
325322

326-
externvoidDefineCustomStringVariable(
327-
constchar*name,
323+
externvoidDefineCustomStringVariable(constchar*name,
328324
constchar*short_desc,
329325
constchar*long_desc,
330326
char**valueAddr,
@@ -335,8 +331,7 @@ extern void DefineCustomStringVariable(
335331
GucStringAssignHookassign_hook,
336332
GucShowHookshow_hook);
337333

338-
externvoidDefineCustomEnumVariable(
339-
constchar*name,
334+
externvoidDefineCustomEnumVariable(constchar*name,
340335
constchar*short_desc,
341336
constchar*long_desc,
342337
int*valueAddr,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp