Remove bogus "extern" annotations on function definitions.
While this is not illegal C, project style is to put "extern" only on declarations not definitions. David Rowley Discussion: https://postgr.es/m/CAKJS1f9RKLWXcMBQhvDYhmsMEo+ALuNgA-NE+AX5Uoke9DJ2Xg@mail.gmail.com
This commit is contained in:
parent
8c44802b6e
commit
524d64ea8e
@ -927,7 +927,7 @@ build_tlist_to_deparse(RelOptInfo *foreignrel)
|
|||||||
*
|
*
|
||||||
* List of columns selected is returned in retrieved_attrs.
|
* List of columns selected is returned in retrieved_attrs.
|
||||||
*/
|
*/
|
||||||
extern void
|
void
|
||||||
deparseSelectStmtForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *rel,
|
deparseSelectStmtForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *rel,
|
||||||
List *tlist, List *remote_conds, List *pathkeys,
|
List *tlist, List *remote_conds, List *pathkeys,
|
||||||
bool is_subquery, List **retrieved_attrs,
|
bool is_subquery, List **retrieved_attrs,
|
||||||
@ -1313,7 +1313,7 @@ appendConditions(List *exprs, deparse_expr_cxt *context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Output join name for given join type */
|
/* Output join name for given join type */
|
||||||
extern const char *
|
const char *
|
||||||
get_jointype_name(JoinType jointype)
|
get_jointype_name(JoinType jointype)
|
||||||
{
|
{
|
||||||
switch (jointype)
|
switch (jointype)
|
||||||
|
@ -5567,7 +5567,7 @@ conversion_error_callback(void *arg)
|
|||||||
* Find an equivalence class member expression, all of whose Vars, come from
|
* Find an equivalence class member expression, all of whose Vars, come from
|
||||||
* the indicated relation.
|
* the indicated relation.
|
||||||
*/
|
*/
|
||||||
extern Expr *
|
Expr *
|
||||||
find_em_expr_for_rel(EquivalenceClass *ec, RelOptInfo *rel)
|
find_em_expr_for_rel(EquivalenceClass *ec, RelOptInfo *rel)
|
||||||
{
|
{
|
||||||
ListCell *lc_em;
|
ListCell *lc_em;
|
||||||
|
@ -4023,7 +4023,7 @@ ResetReindexPending(void)
|
|||||||
* EstimateReindexStateSpace
|
* EstimateReindexStateSpace
|
||||||
* Estimate space needed to pass reindex state to parallel workers.
|
* Estimate space needed to pass reindex state to parallel workers.
|
||||||
*/
|
*/
|
||||||
extern Size
|
Size
|
||||||
EstimateReindexStateSpace(void)
|
EstimateReindexStateSpace(void)
|
||||||
{
|
{
|
||||||
return offsetof(SerializedReindexState, pendingReindexedIndexes)
|
return offsetof(SerializedReindexState, pendingReindexedIndexes)
|
||||||
@ -4034,7 +4034,7 @@ EstimateReindexStateSpace(void)
|
|||||||
* SerializeReindexState
|
* SerializeReindexState
|
||||||
* Serialize reindex state for parallel workers.
|
* Serialize reindex state for parallel workers.
|
||||||
*/
|
*/
|
||||||
extern void
|
void
|
||||||
SerializeReindexState(Size maxsize, char *start_address)
|
SerializeReindexState(Size maxsize, char *start_address)
|
||||||
{
|
{
|
||||||
SerializedReindexState *sistate = (SerializedReindexState *) start_address;
|
SerializedReindexState *sistate = (SerializedReindexState *) start_address;
|
||||||
@ -4052,7 +4052,7 @@ SerializeReindexState(Size maxsize, char *start_address)
|
|||||||
* RestoreReindexState
|
* RestoreReindexState
|
||||||
* Restore reindex state in a parallel worker.
|
* Restore reindex state in a parallel worker.
|
||||||
*/
|
*/
|
||||||
extern void
|
void
|
||||||
RestoreReindexState(void *reindexstate)
|
RestoreReindexState(void *reindexstate)
|
||||||
{
|
{
|
||||||
SerializedReindexState *sistate = (SerializedReindexState *) reindexstate;
|
SerializedReindexState *sistate = (SerializedReindexState *) reindexstate;
|
||||||
|
@ -856,7 +856,7 @@ partition_bounds_equal(int partnatts, int16 *parttyplen, bool *parttypbyval,
|
|||||||
* Return a copy of given PartitionBoundInfo structure. The data types of bounds
|
* Return a copy of given PartitionBoundInfo structure. The data types of bounds
|
||||||
* are described by given partition key specification.
|
* are described by given partition key specification.
|
||||||
*/
|
*/
|
||||||
extern PartitionBoundInfo
|
PartitionBoundInfo
|
||||||
partition_bounds_copy(PartitionBoundInfo src,
|
partition_bounds_copy(PartitionBoundInfo src,
|
||||||
PartitionKey key)
|
PartitionKey key)
|
||||||
{
|
{
|
||||||
|
@ -712,7 +712,7 @@ get_foreign_server_oid(const char *servername, bool missing_ok)
|
|||||||
* path list in RelOptInfo is anyway sorted by total cost we are likely to
|
* path list in RelOptInfo is anyway sorted by total cost we are likely to
|
||||||
* choose the most efficient path, which is all for the best.
|
* choose the most efficient path, which is all for the best.
|
||||||
*/
|
*/
|
||||||
extern Path *
|
Path *
|
||||||
GetExistingLocalJoinPath(RelOptInfo *joinrel)
|
GetExistingLocalJoinPath(RelOptInfo *joinrel)
|
||||||
{
|
{
|
||||||
ListCell *lc;
|
ListCell *lc;
|
||||||
|
@ -60,7 +60,7 @@ shm_toc_create(uint64 magic, void *address, Size nbytes)
|
|||||||
* Attach to an existing table of contents. If the magic number found at
|
* Attach to an existing table of contents. If the magic number found at
|
||||||
* the target address doesn't match our expectations, return NULL.
|
* the target address doesn't match our expectations, return NULL.
|
||||||
*/
|
*/
|
||||||
extern shm_toc *
|
shm_toc *
|
||||||
shm_toc_attach(uint64 magic, void *address)
|
shm_toc_attach(uint64 magic, void *address)
|
||||||
{
|
{
|
||||||
shm_toc *toc = (shm_toc *) address;
|
shm_toc *toc = (shm_toc *) address;
|
||||||
@ -84,7 +84,7 @@ shm_toc_attach(uint64 magic, void *address)
|
|||||||
* We allocate backwards from the end of the segment, so that the TOC entries
|
* We allocate backwards from the end of the segment, so that the TOC entries
|
||||||
* can grow forward from the start of the segment.
|
* can grow forward from the start of the segment.
|
||||||
*/
|
*/
|
||||||
extern void *
|
void *
|
||||||
shm_toc_allocate(shm_toc *toc, Size nbytes)
|
shm_toc_allocate(shm_toc *toc, Size nbytes)
|
||||||
{
|
{
|
||||||
volatile shm_toc *vtoc = toc;
|
volatile shm_toc *vtoc = toc;
|
||||||
@ -127,7 +127,7 @@ shm_toc_allocate(shm_toc *toc, Size nbytes)
|
|||||||
/*
|
/*
|
||||||
* Return the number of bytes that can still be allocated.
|
* Return the number of bytes that can still be allocated.
|
||||||
*/
|
*/
|
||||||
extern Size
|
Size
|
||||||
shm_toc_freespace(shm_toc *toc)
|
shm_toc_freespace(shm_toc *toc)
|
||||||
{
|
{
|
||||||
volatile shm_toc *vtoc = toc;
|
volatile shm_toc *vtoc = toc;
|
||||||
|
@ -1843,7 +1843,7 @@ add_json(Datum val, bool is_null, StringInfo result,
|
|||||||
/*
|
/*
|
||||||
* SQL function array_to_json(row)
|
* SQL function array_to_json(row)
|
||||||
*/
|
*/
|
||||||
extern Datum
|
Datum
|
||||||
array_to_json(PG_FUNCTION_ARGS)
|
array_to_json(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Datum array = PG_GETARG_DATUM(0);
|
Datum array = PG_GETARG_DATUM(0);
|
||||||
@ -1859,7 +1859,7 @@ array_to_json(PG_FUNCTION_ARGS)
|
|||||||
/*
|
/*
|
||||||
* SQL function array_to_json(row, prettybool)
|
* SQL function array_to_json(row, prettybool)
|
||||||
*/
|
*/
|
||||||
extern Datum
|
Datum
|
||||||
array_to_json_pretty(PG_FUNCTION_ARGS)
|
array_to_json_pretty(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Datum array = PG_GETARG_DATUM(0);
|
Datum array = PG_GETARG_DATUM(0);
|
||||||
@ -1876,7 +1876,7 @@ array_to_json_pretty(PG_FUNCTION_ARGS)
|
|||||||
/*
|
/*
|
||||||
* SQL function row_to_json(row)
|
* SQL function row_to_json(row)
|
||||||
*/
|
*/
|
||||||
extern Datum
|
Datum
|
||||||
row_to_json(PG_FUNCTION_ARGS)
|
row_to_json(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Datum array = PG_GETARG_DATUM(0);
|
Datum array = PG_GETARG_DATUM(0);
|
||||||
@ -1892,7 +1892,7 @@ row_to_json(PG_FUNCTION_ARGS)
|
|||||||
/*
|
/*
|
||||||
* SQL function row_to_json(row, prettybool)
|
* SQL function row_to_json(row, prettybool)
|
||||||
*/
|
*/
|
||||||
extern Datum
|
Datum
|
||||||
row_to_json_pretty(PG_FUNCTION_ARGS)
|
row_to_json_pretty(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Datum array = PG_GETARG_DATUM(0);
|
Datum array = PG_GETARG_DATUM(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user