summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src/Include/intobject.h
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/python/src/Include/intobject.h
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python/src/Include/intobject.h')
-rw-r--r--contrib/tools/python/src/Include/intobject.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/tools/python/src/Include/intobject.h b/contrib/tools/python/src/Include/intobject.h
index d1985748b3e..82b41b52e85 100644
--- a/contrib/tools/python/src/Include/intobject.h
+++ b/contrib/tools/python/src/Include/intobject.h
@@ -28,12 +28,12 @@ typedef struct {
PyAPI_DATA(PyTypeObject) PyInt_Type;
#define PyInt_Check(op) \
- PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_INT_SUBCLASS)
-#define PyInt_CheckExact(op) (Py_TYPE(op) == &PyInt_Type)
-
-#define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
-#define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op))
+ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_INT_SUBCLASS)
+#define PyInt_CheckExact(op) (Py_TYPE(op) == &PyInt_Type)
+#define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
+#define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op))
+
PyAPI_FUNC(PyObject *) PyInt_FromString(char*, char**, int);
#ifdef Py_USING_UNICODE
PyAPI_FUNC(PyObject *) PyInt_FromUnicode(Py_UNICODE*, Py_ssize_t, int);
@@ -43,7 +43,7 @@ PyAPI_FUNC(PyObject *) PyInt_FromSize_t(size_t);
PyAPI_FUNC(PyObject *) PyInt_FromSsize_t(Py_ssize_t);
PyAPI_FUNC(long) PyInt_AsLong(PyObject *);
PyAPI_FUNC(Py_ssize_t) PyInt_AsSsize_t(PyObject *);
-PyAPI_FUNC(int) _PyInt_AsInt(PyObject *);
+PyAPI_FUNC(int) _PyInt_AsInt(PyObject *);
PyAPI_FUNC(unsigned long) PyInt_AsUnsignedLongMask(PyObject *);
#ifdef HAVE_LONG_LONG
PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);