Debian Codegraph @

unicodedata2/_unicodedata2_compat.h

raw symbols SCIP
1 #ifndef __UNICODEDATA2_COMPAT_H__
2 #define __UNICODEDATA2_COMPAT_H__
3
4 /*
5 * Compatibility shims
6 */
7
8
9 /* ----------------------------------------------------------------------- *
10 * Update for Python 3.11 - Contributed by Victor Stinner in bpo-39573.
11 * Compatibility macro for older Python versions.
12 * ----------------------------------------------------------------------- */
13 #if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_TYPE)
14 static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type)
15 { ob->ob_type = type; }
16 #define Py_SET_TYPE(ob, type) _Py_SET_TYPE((PyObject*)(ob), type)
17 #endif
18
19
20 #ifdef PYPY_VERSION
21 #include "pypy_ctype.h"
22 typedef Py_ssize_t Py_ssize_clean_t;
23 #endif
24
25 #endif