PostgreSQL Source Code  git master
plpy_util.h
Go to the documentation of this file.
1 /*--------------------------
2  * common utility functions
3  *--------------------------
4  */
5 
6 #ifndef PLPY_UTIL_H
7 #define PLPY_UTIL_H
8 
9 #include "plpython.h"
10 
11 extern PGDLLEXPORT PyObject *PLyUnicode_Bytes(PyObject *unicode);
12 extern PGDLLEXPORT char *PLyUnicode_AsString(PyObject *unicode);
13 
14 extern PGDLLEXPORT PyObject *PLyUnicode_FromString(const char *s);
15 extern PGDLLEXPORT PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
16 
17 #endif /* PLPY_UTIL_H */
#define PGDLLEXPORT
Definition: c.h:1289
PGDLLEXPORT PyObject * PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size)
Definition: plpy_util.c:96
PGDLLEXPORT PyObject * PLyUnicode_Bytes(PyObject *unicode)
Definition: plpy_util.c:20
PGDLLEXPORT PyObject * PLyUnicode_FromString(const char *s)
Definition: plpy_util.c:117
PGDLLEXPORT char * PLyUnicode_AsString(PyObject *unicode)
Definition: plpy_util.c:82
static pg_noinline void Size size
Definition: slab.c:607