mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +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:
@ -34,13 +34,13 @@ extern PyObject *PLy_exc_spi_error;
|
||||
} while(0)
|
||||
#endif /* HAVE__BUILTIN_CONSTANT_P */
|
||||
|
||||
extern void PLy_elog_impl(int elevel, const char *fmt,...) pg_attribute_printf(2, 3);
|
||||
extern PGDLLEXPORT void PLy_elog_impl(int elevel, const char *fmt,...) pg_attribute_printf(2, 3);
|
||||
|
||||
extern void PLy_exception_set(PyObject *exc, const char *fmt,...) pg_attribute_printf(2, 3);
|
||||
extern PGDLLEXPORT void PLy_exception_set(PyObject *exc, const char *fmt,...) pg_attribute_printf(2, 3);
|
||||
|
||||
extern void PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, const char *fmt_plural,
|
||||
unsigned long n,...) pg_attribute_printf(2, 5) pg_attribute_printf(3, 5);
|
||||
extern PGDLLEXPORT void PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, const char *fmt_plural,
|
||||
unsigned long n,...) pg_attribute_printf(2, 5) pg_attribute_printf(3, 5);
|
||||
|
||||
extern void PLy_exception_set_with_details(PyObject *excclass, ErrorData *edata);
|
||||
extern PGDLLEXPORT void PLy_exception_set_with_details(PyObject *excclass, ErrorData *edata);
|
||||
|
||||
#endif /* PLPY_ELOG_H */
|
||||
|
@ -147,29 +147,29 @@ struct PLyObToDatum
|
||||
};
|
||||
|
||||
|
||||
extern PyObject *PLy_input_convert(PLyDatumToOb *arg, Datum val);
|
||||
extern Datum PLy_output_convert(PLyObToDatum *arg, PyObject *val,
|
||||
bool *isnull);
|
||||
extern PGDLLEXPORT PyObject *PLy_input_convert(PLyDatumToOb *arg, Datum val);
|
||||
extern PGDLLEXPORT Datum PLy_output_convert(PLyObToDatum *arg, PyObject *val,
|
||||
bool *isnull);
|
||||
|
||||
extern PyObject *PLy_input_from_tuple(PLyDatumToOb *arg, HeapTuple tuple,
|
||||
TupleDesc desc, bool include_generated);
|
||||
extern PGDLLEXPORT PyObject *PLy_input_from_tuple(PLyDatumToOb *arg, HeapTuple tuple,
|
||||
TupleDesc desc, bool include_generated);
|
||||
|
||||
extern void PLy_input_setup_func(PLyDatumToOb *arg, MemoryContext arg_mcxt,
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
extern void PLy_output_setup_func(PLyObToDatum *arg, MemoryContext arg_mcxt,
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
extern PGDLLEXPORT void PLy_input_setup_func(PLyDatumToOb *arg, MemoryContext arg_mcxt,
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
extern PGDLLEXPORT void PLy_output_setup_func(PLyObToDatum *arg, MemoryContext arg_mcxt,
|
||||
Oid typeOid, int32 typmod,
|
||||
struct PLyProcedure *proc);
|
||||
|
||||
extern void PLy_input_setup_tuple(PLyDatumToOb *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
extern void PLy_output_setup_tuple(PLyObToDatum *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
extern PGDLLEXPORT void PLy_input_setup_tuple(PLyDatumToOb *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
extern PGDLLEXPORT void PLy_output_setup_tuple(PLyObToDatum *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
|
||||
extern void PLy_output_setup_record(PLyObToDatum *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
extern PGDLLEXPORT void PLy_output_setup_record(PLyObToDatum *arg, TupleDesc desc,
|
||||
struct PLyProcedure *proc);
|
||||
|
||||
/* conversion from Python objects to C strings --- exported for transforms */
|
||||
extern char *PLyObject_AsString(PyObject *plrv);
|
||||
extern PGDLLEXPORT char *PLyObject_AsString(PyObject *plrv);
|
||||
|
||||
#endif /* PLPY_TYPEIO_H */
|
||||
|
@ -8,10 +8,10 @@
|
||||
|
||||
#include "plpython.h"
|
||||
|
||||
extern PyObject *PLyUnicode_Bytes(PyObject *unicode);
|
||||
extern char *PLyUnicode_AsString(PyObject *unicode);
|
||||
extern PGDLLEXPORT PyObject *PLyUnicode_Bytes(PyObject *unicode);
|
||||
extern PGDLLEXPORT char *PLyUnicode_AsString(PyObject *unicode);
|
||||
|
||||
extern PyObject *PLyUnicode_FromString(const char *s);
|
||||
extern PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
|
||||
extern PGDLLEXPORT PyObject *PLyUnicode_FromString(const char *s);
|
||||
extern PGDLLEXPORT PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
|
||||
|
||||
#endif /* PLPY_UTIL_H */
|
||||
|
Reference in New Issue
Block a user