8000 Remove now superfluous declarations of dlsym()ed symbols. · postgrespro/postgres@fd4bad1 · GitHub
[go: up one dir, main page]

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;

0 commit comments

Comments
 (0)
0