aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd b/contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd
new file mode 100644
index 0000000000..c38c1bff88
--- /dev/null
+++ b/contrib/tools/cython/Cython/Includes/cpython/longintrepr.pxd
@@ -0,0 +1,19 @@
+# Internals of the "long" type (Python 2) or "int" type (Python 3).
+
+cdef extern from "Python.h":
+ """
+ #if PY_MAJOR_VERSION < 3
+ #include "longintrepr.h"
+ #endif
+ """
+ ctypedef unsigned int digit
+ ctypedef int sdigit # Python >= 2.7 only
+
+ ctypedef class __builtin__.py_long [object PyLongObject]:
+ cdef digit* ob_digit
+
+ cdef py_long _PyLong_New(Py_ssize_t s)
+
+ cdef long PyLong_SHIFT
+ cdef digit PyLong_BASE
+ cdef digit PyLong_MASK