mirror of
https://github.com/postgres/postgres.git
synced 2025-12-24 06:01:07 +03:00
Mark all symbols exported from extension libraries PGDLLEXPORT.
This is in preparation for defaulting to -fvisibility=hidden in extensions,
instead of relying on all symbols in extensions to be exported.
This should have been committed before 089480c077, but something in my commit
scripts went wrong.
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
This commit is contained in:
@@ -147,7 +147,7 @@ typedef struct
|
||||
} while (0)
|
||||
|
||||
/* DatumGetHStoreP includes support for reading old-format hstore values */
|
||||
extern HStore *hstoreUpgrade(Datum orig);
|
||||
extern PGDLLEXPORT HStore *hstoreUpgrade(Datum orig);
|
||||
|
||||
#define DatumGetHStoreP(d) hstoreUpgrade(d)
|
||||
|
||||
@@ -168,14 +168,14 @@ typedef struct
|
||||
bool needfree; /* need to pfree the value? */
|
||||
} Pairs;
|
||||
|
||||
extern int hstoreUniquePairs(Pairs *a, int32 l, int32 *buflen);
|
||||
extern HStore *hstorePairs(Pairs *pairs, int32 pcount, int32 buflen);
|
||||
extern PGDLLEXPORT int hstoreUniquePairs(Pairs *a, int32 l, int32 *buflen);
|
||||
extern PGDLLEXPORT HStore *hstorePairs(Pairs *pairs, int32 pcount, int32 buflen);
|
||||
|
||||
extern size_t hstoreCheckKeyLen(size_t len);
|
||||
extern size_t hstoreCheckValLen(size_t len);
|
||||
extern PGDLLEXPORT size_t hstoreCheckKeyLen(size_t len);
|
||||
extern PGDLLEXPORT size_t hstoreCheckValLen(size_t len);
|
||||
|
||||
extern int hstoreFindKey(HStore *hs, int *lowbound, char *key, int keylen);
|
||||
extern Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
|
||||
extern PGDLLEXPORT int hstoreFindKey(HStore *hs, int *lowbound, char *key, int keylen);
|
||||
extern PGDLLEXPORT Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
|
||||
|
||||
#define HStoreContainsStrategyNumber 7
|
||||
#define HStoreExistsStrategyNumber 9
|
||||
@@ -194,7 +194,7 @@ extern Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
|
||||
#if HSTORE_POLLUTE_NAMESPACE
|
||||
#define HSTORE_POLLUTE(newname_,oldname_) \
|
||||
PG_FUNCTION_INFO_V1(oldname_); \
|
||||
Datum newname_(PG_FUNCTION_ARGS); \
|
||||
extern PGDLLEXPORT Datum newname_(PG_FUNCTION_ARGS); \
|
||||
Datum oldname_(PG_FUNCTION_ARGS) { return newname_(fcinfo); } \
|
||||
extern int no_such_variable
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user