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

Commit524d64e

Browse files
committed
Remove bogus "extern" annotations on function definitions.
While this is not illegal C, project style is to put "extern" only ondeclarations not definitions.David RowleyDiscussion:https://postgr.es/m/CAKJS1f9RKLWXcMBQhvDYhmsMEo+ALuNgA-NE+AX5Uoke9DJ2Xg@mail.gmail.com
1 parent8c44802 commit524d64e

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

‎contrib/postgres_fdw/deparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ build_tlist_to_deparse(RelOptInfo *foreignrel)
927927
*
928928
* List of columns selected is returned in retrieved_attrs.
929929
*/
930-
externvoid
930+
void
931931
deparseSelectStmtForRel(StringInfobuf,PlannerInfo*root,RelOptInfo*rel,
932932
List*tlist,List*remote_conds,List*pathkeys,
933933
boolis_subquery,List**retrieved_attrs,
@@ -1313,7 +1313,7 @@ appendConditions(List *exprs, deparse_expr_cxt *context)
13131313
}
13141314

13151315
/* Output join name for given join type */
1316-
externconstchar*
1316+
constchar*
13171317
get_jointype_name(JoinTypejointype)
13181318
{
13191319
switch (jointype)

‎contrib/postgres_fdw/postgres_fdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5567,7 +5567,7 @@ conversion_error_callback(void *arg)
55675567
* Find an equivalence class member expression, all of whose Vars, come from
55685568
* the indicated relation.
55695569
*/
5570-
externExpr*
5570+
Expr*
55715571
find_em_expr_for_rel(EquivalenceClass*ec,RelOptInfo*rel)
55725572
{
55735573
ListCell*lc_em;

‎src/backend/catalog/index.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@ ResetReindexPending(void)
40234023
* EstimateReindexStateSpace
40244024
*Estimate space needed to pass reindex state to parallel workers.
40254025
*/
4026-
externSize
4026+
Size
40274027
EstimateReindexStateSpace(void)
40284028
{
40294029
return offsetof(SerializedReindexState,pendingReindexedIndexes)
@@ -4034,7 +4034,7 @@ EstimateReindexStateSpace(void)
40344034
* SerializeReindexState
40354035
*Serialize reindex state for parallel workers.
40364036
*/
4037-
externvoid
4037+
void
40384038
SerializeReindexState(Sizemaxsize,char*start_address)
40394039
{
40404040
SerializedReindexState*sistate= (SerializedReindexState*)start_address;
@@ -4052,7 +4052,7 @@ SerializeReindexState(Size maxsize, char *start_address)
40524052
* RestoreReindexState
40534053
*Restore reindex state in a parallel worker.
40544054
*/
4055-
externvoid
4055+
void
40564056
RestoreReindexState(void*reindexstate)
40574057
{
40584058
SerializedReindexState*sistate= (SerializedReindexState*)reindexstate;

‎src/backend/catalog/partition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ partition_bounds_equal(int partnatts, int16 *parttyplen, bool *parttypbyval,
856856
* Return a copy of given PartitionBoundInfo structure. The data types of bounds
857857
* are described by given partition key specification.
858858
*/
859-
externPartitionBoundInfo
859+
PartitionBoundInfo
860860
partition_bounds_copy(PartitionBoundInfosrc,
861861
PartitionKeykey)
862862
{

‎src/backend/foreign/foreign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ get_foreign_server_oid(const char *servername, bool missing_ok)
712712
* path list in RelOptInfo is anyway sorted by total cost we are likely to
713713
* choose the most efficient path, which is all for the best.
714714
*/
715-
externPath*
715+
Path*
716716
GetExistingLocalJoinPath(RelOptInfo*joinrel)
717717
{
718718
ListCell*lc;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ shm_toc_create(uint64 magic, void *address, Size nbytes)
6060
* Attach to an existing table of contents. If the magic number found at
6161
* the target address doesn't match our expectations, return NULL.
6262
*/
63-
externshm_toc*
63+
shm_toc*
6464
shm_toc_attach(uint64magic,void*address)
6565
{
6666
shm_toc*toc= (shm_toc*)address;
@@ -84,7 +84,7 @@ shm_toc_attach(uint64 magic, void *address)
8484
* We allocate backwards from the end of the segment, so that the TOC entries
8585
* can grow forward from the start of the segment.
8686
*/
87-
externvoid*
87+
void*
8888
shm_toc_allocate(shm_toc*toc,Sizenbytes)
8989
{
9090
volatileshm_toc*vtoc=toc;
@@ -127,7 +127,7 @@ shm_toc_allocate(shm_toc *toc, Size nbytes)
127127
/*
128128
* Return the number of bytes that can still be allocated.
129129
*/
130-
externSize
130+
Size
131131
shm_toc_freespace(shm_toc*toc)
132132
{
133133
volatileshm_toc*vtoc=toc;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ add_json(Datum val, bool is_null, StringInfo result,
18431843
/*
18441844
* SQL function array_to_json(row)
18451845
*/
1846-
externDatum
1846+
Datum
18471847
array_to_json(PG_FUNCTION_ARGS)
18481848
{
18491849
Datumarray=PG_GETARG_DATUM(0);
@@ -1859,7 +1859,7 @@ array_to_json(PG_FUNCTION_ARGS)
18591859
/*
18601860
* SQL function array_to_json(row, prettybool)
18611861
*/
1862-
externDatum
1862+
Datum
18631863
array_to_json_pretty(PG_FUNCTION_ARGS)
18641864
{
18651865
Datumarray=PG_GETARG_DATUM(0);
@@ -1876,7 +1876,7 @@ array_to_json_pretty(PG_FUNCTION_ARGS)
18761876
/*
18771877
* SQL function row_to_json(row)
18781878
*/
1879-
externDatum
1879+
Datum
18801880
row_to_json(PG_FUNCTION_ARGS)
18811881
{
18821882
Datumarray=PG_GETARG_DATUM(0);
@@ -1892,7 +1892,7 @@ row_to_json(PG_FUNCTION_ARGS)
18921892
/*
18931893
* SQL function row_to_json(row, prettybool)
18941894
*/
1895-
externDatum
1895+
Datum
18961896
row_to_json_pretty(PG_FUNCTION_ARGS)
18971897
{
18981898
Datumarray=PG_GETARG_DATUM(0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp