Skip to content

Commit fd4bad1

Browse files
committed
Remove now superfluous declarations of dlsym()ed symbols.
The prior commit declared them centrally. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20211101020311.av6hphdl6xbjbuif@alap3.anarazel.de
1 parent f2b73c8 commit fd4bad1

File tree

31 files changed

+0
-64
lines changed

31 files changed

+0
-64
lines changed

contrib/auth_delay/auth_delay.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
PG_MODULE_MAGIC;
2222

23-
void _PG_init(void);
24-
2523
/* GUC Variables */
2624
static int auth_delay_milliseconds;
2725

contrib/auto_explain/auto_explain.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ static ExecutorRun_hook_type prev_ExecutorRun = NULL;
7878
static ExecutorFinish_hook_type prev_ExecutorFinish = NULL;
7979
static ExecutorEnd_hook_type prev_ExecutorEnd = NULL;
8080

81-
void _PG_init(void);
82-
8381
static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags);
8482
static void explain_ExecutorRun(QueryDesc *queryDesc,
8583
ScanDirection direction,

contrib/basebackup_to_shell/basebackup_to_shell.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ typedef struct bbsink_shell
3737
FILE *pipe;
3838
} bbsink_shell;
3939

40-
void _PG_init(void);
41-
4240
static void *shell_check_detail(char *target, char *target_detail);
4341
static bbsink *shell_get_sink(bbsink *next_sink, void *detail_arg);
4442

contrib/basic_archive/basic_archive.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@
4040

4141
PG_MODULE_MAGIC;
4242

43-
void _PG_init(void);
44-
void _PG_archive_module_init(ArchiveModuleCallbacks *cb);
45-
4643
static char *archive_directory = NULL;
4744
static MemoryContext basic_archive_context;
4845

contrib/bloom/bloom.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ typedef struct BloomScanOpaqueData
175175
typedef BloomScanOpaqueData *BloomScanOpaque;
176176

177177
/* blutils.c */
178-
extern void _PG_init(void);
179178
extern void initBloomState(BloomState *state, Relation index);
180179
extern void BloomFillMetapage(Relation index, Page metaPage);
181180
extern void BloomInitMetapage(Relation index);

contrib/hstore_plperl/hstore_plperl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
PG_MODULE_MAGIC;
99

10-
extern void _PG_init(void);
11-
1210
/* Linkage to functions in hstore module */
1311
typedef HStore *(*hstoreUpgrade_t) (Datum orig);
1412
static hstoreUpgrade_t hstoreUpgrade_p;

contrib/hstore_plpython/hstore_plpython.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
PG_MODULE_MAGIC;
99

10-
extern void _PG_init(void);
11-
1210
/* Linkage to functions in plpython module */
1311
typedef char *(*PLyObject_AsString_t) (PyObject *plrv);
1412
static PLyObject_AsString_t PLyObject_AsString_p;

contrib/isn/isn.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,6 @@ string2ean(const char *str, bool errorOK, ean13 *result,
924924
* Exported routines.
925925
*---------------------------------------------------------*/
926926

927-
void _PG_init(void);
928-
929927
void
930928
_PG_init(void)
931929
{

contrib/jsonb_plpython/jsonb_plpython.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
PG_MODULE_MAGIC;
1111

12-
void _PG_init(void);
13-
1412
/* for PLyObject_AsString in plpy_typeio.c */
1513
typedef char *(*PLyObject_AsString_t) (PyObject *plrv);
1614
static PLyObject_AsString_t PLyObject_AsString_p;

contrib/ltree_plpython/ltree_plpython.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
PG_MODULE_MAGIC;
88

9-
extern void _PG_init(void);
10-
119
/* Linkage to functions in plpython module */
1210
typedef PyObject *(*PLyUnicode_FromStringAndSize_t) (const char *s, Py_ssize_t size);
1311
static PLyUnicode_FromStringAndSize_t PLyUnicode_FromStringAndSize_p;

contrib/passwordcheck/passwordcheck.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ static check_password_hook_type prev_check_password_hook = NULL;
3232
/* passwords shorter than this will be rejected */
3333
#define MIN_PWD_LENGTH 8
3434

35-
extern void _PG_init(void);
36-
3735
/*
3836
* check_password
3937
*

contrib/pg_prewarm/autoprewarm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ typedef struct AutoPrewarmSharedState
8282
int prewarmed_blocks;
8383
} AutoPrewarmSharedState;
8484

85-
void _PG_init(void);
8685
void autoprewarm_main(Datum main_arg);
8786
void autoprewarm_database_main(Datum main_arg);
8887

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,6 @@ static bool pgss_save; /* whether to save stats across shutdown */
305305

306306
/*---- Function declarations ----*/
307307

308-
void _PG_init(void);
309-
310308
PG_FUNCTION_INFO_V1(pg_stat_statements_reset);
311309
PG_FUNCTION_INFO_V1(pg_stat_statements_reset_1_7);
312310
PG_FUNCTION_INFO_V1(pg_stat_statements_1_2);

contrib/pg_trgm/trgm_op.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ double similarity_threshold = 0.3f;
2020
double word_similarity_threshold = 0.6f;
2121
double strict_word_similarity_threshold = 0.5f;
2222

23-
void _PG_init(void);
24-
2523
PG_FUNCTION_INFO_V1(set_limit);
2624
PG_FUNCTION_INFO_V1(show_limit);
2725
PG_FUNCTION_INFO_V1(show_trgm);

contrib/postgres_fdw/option.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ static PQconninfoOption *libpq_options;
5151
*/
5252
char *pgfdw_application_name = NULL;
5353

54-
void _PG_init(void);
55-
5654
/*
5755
* Helper functions
5856
*/

contrib/sepgsql/hooks.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ PG_MODULE_MAGIC;
3030
/*
3131
* Declarations
3232
*/
33-
void _PG_init(void);
3433

3534
/*
3635
* Saved hook entries (if stacked)

contrib/test_decoding/test_decoding.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
PG_MODULE_MAGIC;
2626

27-
/* These must be available to dlsym() */
28-
extern void _PG_init(void);
29-
extern void _PG_output_plugin_init(OutputPluginCallbacks *cb);
30-
3127
typedef struct
3228
{
3329
MemoryContext context;

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636

3737
PG_MODULE_MAGIC;
3838

39-
void _PG_init(void);
40-
4139
struct WalReceiverConn
4240
{
4341
/* Current connection to the primary, if any */

src/backend/replication/pgoutput/pgoutput.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535

3636
PG_MODULE_MAGIC;
3737

38-
extern void _PG_output_plugin_init(OutputPluginCallbacks *cb);
39-
4038
static void pgoutput_startup(LogicalDecodingContext *ctx,
4139
OutputPluginOptions *opt, bool is_init);
4240
static void pgoutput_shutdown(LogicalDecodingContext *ctx);

src/pl/plperl/plperl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ static plperl_call_data *current_call_data = NULL;
245245
/**********************************************************************
246246
* Forward declarations
247247
**********************************************************************/
248-
void _PG_init(void);
249248

250249
static PerlInterpreter *plperl_init_interp(void);
251250
static void plperl_destroy_interp(PerlInterpreter **);

src/pl/plpgsql/src/plpgsql.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,11 +1264,6 @@ extern void plpgsql_adddatum(PLpgSQL_datum *newdatum);
12641264
extern int plpgsql_add_initdatums(int **varnos);
12651265
extern void plpgsql_HashTableInit(void);
12661266

1267-
/*
1268-
* Functions in pl_handler.c
1269-
*/
1270-
extern void _PG_init(void);
1271-
12721267
/*
12731268
* Functions in pl_exec.c
12741269
*/

src/pl/plpython/plpy_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
* exported functions
2929
*/
3030

31-
extern void _PG_init(void);
32-
3331
PG_MODULE_MAGIC;
3432

3533
PG_FUNCTION_INFO_V1(plpython3_validator);

src/pl/tcl/pltcl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ static const TclExceptionNameMap exception_name_map[] = {
261261
/**********************************************************************
262262
* Forward declarations
263263
**********************************************************************/
264-
void _PG_init(void);
265264

266265
static void pltcl_init_interp(pltcl_interp_desc *interp_desc,
267266
Oid prolang, bool pltrusted);

src/test/modules/delay_execution/delay_execution.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ static int post_planning_lock_id = 0;
3636
/* Save previous planner hook user to be a good citizen */
3737
static planner_hook_type prev_planner_hook = NULL;
3838

39-
/* Module load function */
40-
void _PG_init(void);
41-
4239

4340
/* planner_hook function to provide the desired delay */
4441
static PlannedStmt *

src/test/modules/dummy_index_am/dummy_index_am.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
PG_MODULE_MAGIC;
2525

26-
void _PG_init(void);
27-
2826
/* parse table for fillRelOptions */
2927
relopt_parse_elt di_relopt_tab[6];
3028

src/test/modules/dummy_seclabel/dummy_seclabel.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919

2020
PG_MODULE_MAGIC;
2121

22-
/* Entrypoint of the module */
23-
void _PG_init(void);
24-
2522
PG_FUNCTION_INFO_V1(dummy_seclabel_dummy);
2623

2724
static void

src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
PG_MODULE_MAGIC;
2222

23-
void _PG_init(void);
24-
2523
static char *ssl_passphrase = NULL;
2624

2725
/* callback function */

src/test/modules/test_oat_hooks/test_oat_hooks.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ static char *accesstype_to_string(ObjectAccessType access, int subId);
6969
static char *accesstype_arg_to_string(ObjectAccessType access, void *arg);
7070

7171

72-
void _PG_init(void);
73-
7472
/*
7573
* Module load callback
7674
*/

src/test/modules/test_rls_hooks/test_rls_hooks.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929

3030
PG_MODULE_MAGIC;
3131

32-
void _PG_init(void);
33-
3432
/* Install hooks */
3533
void
3634
_PG_init(void)

src/test/modules/test_shm_mq/test.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ PG_MODULE_MAGIC;
2424
PG_FUNCTION_INFO_V1(test_shm_mq);
2525
PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);
2626

27-
void _PG_init(void);
28-
2927
static void verify_message(Size origlen, char *origdata, Size newlen,
3028
char *newdata);
3129

src/test/modules/worker_spi/worker_spi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PG_MODULE_MAGIC;
4646

4747
PG_FUNCTION_INFO_V1(worker_spi_launch);
4848

49-
void _PG_init(void);
5049
void worker_spi_main(Datum) pg_attribute_noreturn();
5150

5251
/* GUC variables */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy