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

Commitb27644b

Browse files
committed
Sync typedefs.list with the buildfarm.
Our maintenance of typedefs.list has been a little haphazard(and apparently we can't alphabetize worth a darn). Replacethe file with the authoritative list from our buildfarm, andrun pgindent using that.I also updated the additions/exclusions lists in pgindent wherenecessary to keep pgindent from messing things up significantly.Notably, now that regex_t and some related names are macros not realtypedefs, we have to whitelist them explicitly. The exclusions listhas also drifted noticeably, presumably due to changes of systemheaders on the buildfarm animals that contribute to the list.Unlike in prior years, I've not manually added typedef names thatare missing from the buildfarm's list because they are not used todeclare any variables or fields. So there are a few places wherethe typedef declaration itself is formatted worse than before,e.g. typedef enum IoMethod. I could preserve the names that weremanually added to the list previously, but I'd really prefer to finda less manual way of dealing with these cases. A quick grep findsabout 75 such symbols, most of which have never gotten any specialtreatment.Per discussion among pgsql-release, doing this now seems appropriateeven though we're still a week or two away from making the v18 branch.
1 parent6d64800 commitb27644b

File tree

16 files changed

+116
-84
lines changed

16 files changed

+116
-84
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef struct MemoryContextId
3838
{
3939
MemoryContextcontext;
4040
intcontext_id;
41-
}MemoryContextId;
41+
}MemoryContextId;
4242

4343
/*
4444
* int_list_to_array

‎src/include/access/heapam.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ typedef struct HeapScanDescData
9696
uint32rs_cindex;/* current tuple's index in vistuples */
9797
uint32rs_ntuples;/* number of visible tuples on page */
9898
OffsetNumberrs_vistuples[MaxHeapTuplesPerPage];/* their offsets */
99-
}HeapScanDescData;
99+
}HeapScanDescData;
100100
typedefstructHeapScanDescData*HeapScanDesc;
101101

102102
typedefstructBitmapHeapScanDescData

‎src/include/executor/nodeAgg.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ typedef struct AggStatePerGroupData
264264
* NULL and not auto-replace it with a later input value. Only the first
265265
* non-NULL input will be auto-substituted.
266266
*/
267-
}AggStatePerGroupData;
267+
}AggStatePerGroupData;
268268

269269
/*
270270
* AggStatePerPhaseData - per-grouping-set-phase state

‎src/include/storage/aio.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef enum IoMethod
3636
#ifdefIOMETHOD_IO_URING_ENABLED
3737
IOMETHOD_IO_URING,
3838
#endif
39-
}IoMethod;
39+
}IoMethod;
4040

4141
/* We'll default to worker based execution. */
4242
#defineDEFAULT_IO_METHOD IOMETHOD_WORKER

‎src/include/storage/copydir.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ typedef enum FileCopyMethod
1717
{
1818
FILE_COPY_METHOD_COPY,
1919
FILE_COPY_METHOD_CLONE,
20-
}FileCopyMethod;
20+
}FileCopyMethod;
2121

2222
/* GUC parameters */
2323
externPGDLLIMPORTintfile_copy_method;

‎src/include/storage/sinval.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef struct
119119
OiddbId;/* database ID */
120120
Oidrelid;/* relation ID, or 0 if whole
121121
* RelationSyncCache */
122-
}SharedInvalRelSyncMsg;
122+
}SharedInvalRelSyncMsg;
123123

124124
typedefunion
125125
{

‎src/include/tcop/backend_startup.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ typedef enum LogConnectionOption
8686
LOG_CONNECTION_AUTHENTICATION |
8787
LOG_CONNECTION_AUTHORIZATION |
8888
LOG_CONNECTION_SETUP_DURATIONS,
89-
}LogConnectionOption;
89+
}LogConnectionOption;
9090

9191
/*
9292
* A collection of timings of various stages of connection establishment and

‎src/include/utils/elog.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ typedef enum
485485
PGERROR_TERSE,/* single-line error messages */
486486
PGERROR_DEFAULT,/* recommended style */
487487
PGERROR_VERBOSE,/* all the facts, ma'am */
488-
}PGErrorVerbosity;
488+
}PGErrorVerbosity;
489489

490490
externPGDLLIMPORTintLog_error_verbosity;
491491
externPGDLLIMPORTchar*Log_line_prefix;

‎src/include/utils/skipsupport.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ typedef struct SkipSupportData
9090
*/
9191
SkipSupportIncDecdecrement;
9292
SkipSupportIncDecincrement;
93-
}SkipSupportData;
93+
}SkipSupportData;
9494

9595
externSkipSupportPrepareSkipSupportFromOpclass(Oidopfamily,Oidopcintype,
9696
boolreverse);

‎src/pl/plpython/plpy_cursorobject.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ static PyType_Slot PLyCursor_slots[] =
5858
staticPyType_SpecPLyCursor_spec=
5959
{
6060
.name="PLyCursor",
61-
.basicsize=sizeof(PLyCursorObject),
62-
.flags=Py_TPFLAGS_DEFAULT |Py_TPFLAGS_BASETYPE,
63-
.slots=PLyCursor_slots,
61+
.basicsize=sizeof(PLyCursorObject),
62+
.flags=Py_TPFLAGS_DEFAULT |Py_TPFLAGS_BASETYPE,
63+
.slots=PLyCursor_slots,
6464
};
6565

6666
staticPyTypeObject*PLy_CursorType;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp