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 PyObject *PLyUnicode_Bytes(PyObject *unicode);
12 extern char *PLyUnicode_AsString(PyObject *unicode);
13 
14 #if PY_MAJOR_VERSION >= 3
15 extern PyObject *PLyUnicode_FromString(const char *s);
16 extern PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
17 #endif
18 
19 #endif /* PLPY_UTIL_H */
#define PLyUnicode_FromStringAndSize
PyObject * PLyUnicode_Bytes(PyObject *unicode)
Definition: plpy_util.c:21
char * PLyUnicode_AsString(PyObject *unicode)
Definition: plpy_util.c:89