aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/cpython/object.pxd
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/tools/cython/Cython/Includes/cpython/object.pxd
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/object.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/cpython/object.pxd192
1 files changed, 96 insertions, 96 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/object.pxd b/contrib/tools/cython/Cython/Includes/cpython/object.pxd
index 891efb847f..5a81166393 100644
--- a/contrib/tools/cython/Cython/Includes/cpython/object.pxd
+++ b/contrib/tools/cython/Cython/Includes/cpython/object.pxd
@@ -1,78 +1,78 @@
from libc.stdio cimport FILE
-cimport cpython.type
+cimport cpython.type
cdef extern from "Python.h":
- ctypedef struct PyObject # forward declaration
-
- ctypedef object (*newfunc)(cpython.type.type, object, object) # (type, args, kwargs)
-
- ctypedef object (*unaryfunc)(object)
- ctypedef object (*binaryfunc)(object, object)
- ctypedef object (*ternaryfunc)(object, object, object)
+ ctypedef struct PyObject # forward declaration
+
+ ctypedef object (*newfunc)(cpython.type.type, object, object) # (type, args, kwargs)
+
+ ctypedef object (*unaryfunc)(object)
+ ctypedef object (*binaryfunc)(object, object)
+ ctypedef object (*ternaryfunc)(object, object, object)
ctypedef int (*inquiry)(object) except -1
ctypedef Py_ssize_t (*lenfunc)(object) except -1
- ctypedef object (*ssizeargfunc)(object, Py_ssize_t)
- ctypedef object (*ssizessizeargfunc)(object, Py_ssize_t, Py_ssize_t)
+ ctypedef object (*ssizeargfunc)(object, Py_ssize_t)
+ ctypedef object (*ssizessizeargfunc)(object, Py_ssize_t, Py_ssize_t)
ctypedef int (*ssizeobjargproc)(object, Py_ssize_t, object) except -1
ctypedef int (*ssizessizeobjargproc)(object, Py_ssize_t, Py_ssize_t, object) except -1
ctypedef int (*objobjargproc)(object, object, object) except -1
ctypedef int (*objobjproc)(object, object) except -1
-
+
ctypedef Py_hash_t (*hashfunc)(object) except -1
- ctypedef object (*reprfunc)(object)
-
+ ctypedef object (*reprfunc)(object)
+
ctypedef int (*cmpfunc)(object, object) except -2
- ctypedef object (*richcmpfunc)(object, object, int)
-
- # The following functions use 'PyObject*' as first argument instead of 'object' to prevent
- # accidental reference counting when calling them during a garbage collection run.
- ctypedef void (*destructor)(PyObject*)
+ ctypedef object (*richcmpfunc)(object, object, int)
+
+ # The following functions use 'PyObject*' as first argument instead of 'object' to prevent
+ # accidental reference counting when calling them during a garbage collection run.
+ ctypedef void (*destructor)(PyObject*)
ctypedef int (*visitproc)(PyObject*, void *) except -1
ctypedef int (*traverseproc)(PyObject*, visitproc, void*) except -1
ctypedef void (*freefunc)(void*)
-
- ctypedef object (*descrgetfunc)(object, object, object)
- ctypedef int (*descrsetfunc)(object, object, object) except -1
-
- ctypedef struct PyTypeObject:
- const char* tp_name
- const char* tp_doc
- Py_ssize_t tp_basicsize
- Py_ssize_t tp_itemsize
- Py_ssize_t tp_dictoffset
- unsigned long tp_flags
-
- newfunc tp_new
- destructor tp_dealloc
- traverseproc tp_traverse
- inquiry tp_clear
+
+ ctypedef object (*descrgetfunc)(object, object, object)
+ ctypedef int (*descrsetfunc)(object, object, object) except -1
+
+ ctypedef struct PyTypeObject:
+ const char* tp_name
+ const char* tp_doc
+ Py_ssize_t tp_basicsize
+ Py_ssize_t tp_itemsize
+ Py_ssize_t tp_dictoffset
+ unsigned long tp_flags
+
+ newfunc tp_new
+ destructor tp_dealloc
+ traverseproc tp_traverse
+ inquiry tp_clear
freefunc tp_free
-
- ternaryfunc tp_call
- hashfunc tp_hash
- reprfunc tp_str
- reprfunc tp_repr
-
- cmpfunc tp_compare
- richcmpfunc tp_richcompare
-
- PyTypeObject* tp_base
- PyObject* tp_dict
-
- descrgetfunc tp_descr_get
- descrsetfunc tp_descr_set
-
- ctypedef struct PyObject:
- Py_ssize_t ob_refcnt
- PyTypeObject *ob_type
-
- cdef PyTypeObject *Py_TYPE(object)
-
- void* PyObject_Malloc(size_t)
- void* PyObject_Realloc(void *, size_t)
- void PyObject_Free(void *)
-
+
+ ternaryfunc tp_call
+ hashfunc tp_hash
+ reprfunc tp_str
+ reprfunc tp_repr
+
+ cmpfunc tp_compare
+ richcmpfunc tp_richcompare
+
+ PyTypeObject* tp_base
+ PyObject* tp_dict
+
+ descrgetfunc tp_descr_get
+ descrsetfunc tp_descr_set
+
+ ctypedef struct PyObject:
+ Py_ssize_t ob_refcnt
+ PyTypeObject *ob_type
+
+ cdef PyTypeObject *Py_TYPE(object)
+
+ void* PyObject_Malloc(size_t)
+ void* PyObject_Realloc(void *, size_t)
+ void PyObject_Free(void *)
+
#####################################################################
# 6.1 Object Protocol
#####################################################################
@@ -82,12 +82,12 @@ cdef extern from "Python.h":
# option currently supported is Py_PRINT_RAW; if given, the str()
# of the object is written instead of the repr().
- bint PyObject_HasAttrString(object o, const char *attr_name)
+ bint PyObject_HasAttrString(object o, const char *attr_name)
# Returns 1 if o has the attribute attr_name, and 0
# otherwise. This is equivalent to the Python expression
# "hasattr(o, attr_name)". This function always succeeds.
- object PyObject_GetAttrString(object o, const char *attr_name)
+ object PyObject_GetAttrString(object o, const char *attr_name)
# Return value: New reference. Retrieve an attribute named
# attr_name from object o. Returns the attribute value on success,
# or NULL on failure. This is the equivalent of the Python
@@ -106,7 +106,7 @@ cdef extern from "Python.h":
object PyObject_GenericGetAttr(object o, object attr_name)
- int PyObject_SetAttrString(object o, const char *attr_name, object v) except -1
+ int PyObject_SetAttrString(object o, const char *attr_name, object v) except -1
# Set the value of the attribute named attr_name, for object o, to
# the value v. Returns -1 on failure. This is the equivalent of
# the Python statement "o.attr_name = v".
@@ -118,7 +118,7 @@ cdef extern from "Python.h":
int PyObject_GenericSetAttr(object o, object attr_name, object v) except -1
- int PyObject_DelAttrString(object o, const char *attr_name) except -1
+ int PyObject_DelAttrString(object o, const char *attr_name) except -1
# Delete attribute named attr_name, for object o. Returns -1 on
# failure. This is the equivalent of the Python statement: "del
# o.attr_name".
@@ -364,36 +364,36 @@ cdef extern from "Python.h":
# Takes an arbitrary object and returns the result of calling
# obj.__format__(format_spec).
# Added in Py2.6
-
- # Type flags (tp_flags of PyTypeObject)
- long Py_TPFLAGS_HAVE_GETCHARBUFFER
- long Py_TPFLAGS_HAVE_SEQUENCE_IN
- long Py_TPFLAGS_HAVE_INPLACEOPS
- long Py_TPFLAGS_CHECKTYPES
- long Py_TPFLAGS_HAVE_RICHCOMPARE
- long Py_TPFLAGS_HAVE_WEAKREFS
- long Py_TPFLAGS_HAVE_ITER
- long Py_TPFLAGS_HAVE_CLASS
- long Py_TPFLAGS_HEAPTYPE
- long Py_TPFLAGS_BASETYPE
- long Py_TPFLAGS_READY
- long Py_TPFLAGS_READYING
- long Py_TPFLAGS_HAVE_GC
- long Py_TPFLAGS_HAVE_STACKLESS_EXTENSION
- long Py_TPFLAGS_HAVE_INDEX
- long Py_TPFLAGS_HAVE_VERSION_TAG
- long Py_TPFLAGS_VALID_VERSION_TAG
- long Py_TPFLAGS_IS_ABSTRACT
- long Py_TPFLAGS_HAVE_NEWBUFFER
- long Py_TPFLAGS_INT_SUBCLASS
- long Py_TPFLAGS_LONG_SUBCLASS
- long Py_TPFLAGS_LIST_SUBCLASS
- long Py_TPFLAGS_TUPLE_SUBCLASS
- long Py_TPFLAGS_STRING_SUBCLASS
- long Py_TPFLAGS_UNICODE_SUBCLASS
- long Py_TPFLAGS_DICT_SUBCLASS
- long Py_TPFLAGS_BASE_EXC_SUBCLASS
- long Py_TPFLAGS_TYPE_SUBCLASS
- long Py_TPFLAGS_DEFAULT_EXTERNAL
- long Py_TPFLAGS_DEFAULT_CORE
- long Py_TPFLAGS_DEFAULT
+
+ # Type flags (tp_flags of PyTypeObject)
+ long Py_TPFLAGS_HAVE_GETCHARBUFFER
+ long Py_TPFLAGS_HAVE_SEQUENCE_IN
+ long Py_TPFLAGS_HAVE_INPLACEOPS
+ long Py_TPFLAGS_CHECKTYPES
+ long Py_TPFLAGS_HAVE_RICHCOMPARE
+ long Py_TPFLAGS_HAVE_WEAKREFS
+ long Py_TPFLAGS_HAVE_ITER
+ long Py_TPFLAGS_HAVE_CLASS
+ long Py_TPFLAGS_HEAPTYPE
+ long Py_TPFLAGS_BASETYPE
+ long Py_TPFLAGS_READY
+ long Py_TPFLAGS_READYING
+ long Py_TPFLAGS_HAVE_GC
+ long Py_TPFLAGS_HAVE_STACKLESS_EXTENSION
+ long Py_TPFLAGS_HAVE_INDEX
+ long Py_TPFLAGS_HAVE_VERSION_TAG
+ long Py_TPFLAGS_VALID_VERSION_TAG
+ long Py_TPFLAGS_IS_ABSTRACT
+ long Py_TPFLAGS_HAVE_NEWBUFFER
+ long Py_TPFLAGS_INT_SUBCLASS
+ long Py_TPFLAGS_LONG_SUBCLASS
+ long Py_TPFLAGS_LIST_SUBCLASS
+ long Py_TPFLAGS_TUPLE_SUBCLASS
+ long Py_TPFLAGS_STRING_SUBCLASS
+ long Py_TPFLAGS_UNICODE_SUBCLASS
+ long Py_TPFLAGS_DICT_SUBCLASS
+ long Py_TPFLAGS_BASE_EXC_SUBCLASS
+ long Py_TPFLAGS_TYPE_SUBCLASS
+ long Py_TPFLAGS_DEFAULT_EXTERNAL
+ long Py_TPFLAGS_DEFAULT_CORE
+ long Py_TPFLAGS_DEFAULT