mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
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
18 lines
477 B
C
18 lines
477 B
C
/*--------------------------
|
|
* common utility functions
|
|
*--------------------------
|
|
*/
|
|
|
|
#ifndef PLPY_UTIL_H
|
|
#define PLPY_UTIL_H
|
|
|
|
#include "plpython.h"
|
|
|
|
extern PGDLLEXPORT PyObject *PLyUnicode_Bytes(PyObject *unicode);
|
|
extern PGDLLEXPORT char *PLyUnicode_AsString(PyObject *unicode);
|
|
|
|
extern PGDLLEXPORT PyObject *PLyUnicode_FromString(const char *s);
|
|
extern PGDLLEXPORT PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
|
|
|
|
#endif /* PLPY_UTIL_H */
|