Lines Matching refs:PyObject
82 #define PyObject_HEAD PyObject ob_base;
109 } PyObject; typedef
112 #define _PyObject_CAST(op) ((PyObject*)(op))
113 #define _PyObject_CAST_CONST(op) ((const PyObject*)(op))
116 PyObject ob_base;
126 PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y);
130 static inline Py_ssize_t _Py_REFCNT(const PyObject *ob) { in _Py_REFCNT()
143 static inline int _Py_IS_TYPE(const PyObject *ob, const PyTypeObject *type) { in _Py_IS_TYPE()
151 static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { in _Py_SET_REFCNT()
157 static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { in _Py_SET_TYPE()
184 typedef PyObject * (*unaryfunc)(PyObject *);
185 typedef PyObject * (*binaryfunc)(PyObject *, PyObject *);
186 typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *);
187 typedef int (*inquiry)(PyObject *);
188 typedef Py_ssize_t (*lenfunc)(PyObject *);
189 typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t);
190 typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t);
191 typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *);
192 typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
193 typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
195 typedef int (*objobjproc)(PyObject *, PyObject *);
196 typedef int (*visitproc)(PyObject *, void *);
197 typedef int (*traverseproc)(PyObject *, visitproc, void *);
201 typedef void (*destructor)(PyObject *);
202 typedef PyObject *(*getattrfunc)(PyObject *, char *);
203 typedef PyObject *(*getattrofunc)(PyObject *, PyObject *);
204 typedef int (*setattrfunc)(PyObject *, char *, PyObject *);
205 typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *);
206 typedef PyObject *(*reprfunc)(PyObject *);
207 typedef Py_hash_t (*hashfunc)(PyObject *);
208 typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
209 typedef PyObject *(*getiterfunc) (PyObject *);
210 typedef PyObject *(*iternextfunc) (PyObject *);
211 typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *);
212 typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *);
213 typedef int (*initproc)(PyObject *, PyObject *, PyObject *);
214 typedef PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *);
215 typedef PyObject *(*allocfunc)(PyTypeObject *, Py_ssize_t);
230 PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*);
232 PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*);
238 PyAPI_FUNC(PyObject*) PyType_FromModuleAndSpec(PyObject *, PyType_Spec *, PyObject *);
239 PyAPI_FUNC(PyObject *) PyType_GetModule(struct _typeobject *);
246 static inline int _PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { in _PyObject_TypeCheck()
258 PyAPI_FUNC(PyObject *) PyType_GenericAlloc(PyTypeObject *, Py_ssize_t);
259 PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *,
260 PyObject *, PyObject *);
265 PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *);
266 PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *);
267 PyAPI_FUNC(PyObject *) PyObject_ASCII(PyObject *);
268 PyAPI_FUNC(PyObject *) PyObject_Bytes(PyObject *);
269 PyAPI_FUNC(PyObject *) PyObject_RichCompare(PyObject *, PyObject *, int);
270 PyAPI_FUNC(int) PyObject_RichCompareBool(PyObject *, PyObject *, int);
271 PyAPI_FUNC(PyObject *) PyObject_GetAttrString(PyObject *, const char *);
272 PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *, PyObject *);
273 PyAPI_FUNC(int) PyObject_HasAttrString(PyObject *, const char *);
274 PyAPI_FUNC(PyObject *) PyObject_GetAttr(PyObject *, PyObject *);
275 PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *);
276 PyAPI_FUNC(int) PyObject_HasAttr(PyObject *, PyObject *);
277 PyAPI_FUNC(PyObject *) PyObject_SelfIter(PyObject *);
278 PyAPI_FUNC(PyObject *) PyObject_GenericGetAttr(PyObject *, PyObject *);
279 PyAPI_FUNC(int) PyObject_GenericSetAttr(PyObject *, PyObject *, PyObject *);
281 PyAPI_FUNC(int) PyObject_GenericSetDict(PyObject *, PyObject *, void *);
283 PyAPI_FUNC(Py_hash_t) PyObject_Hash(PyObject *);
284 PyAPI_FUNC(Py_hash_t) PyObject_HashNotImplemented(PyObject *);
285 PyAPI_FUNC(int) PyObject_IsTrue(PyObject *);
286 PyAPI_FUNC(int) PyObject_Not(PyObject *);
287 PyAPI_FUNC(int) PyCallable_Check(PyObject *);
288 PyAPI_FUNC(void) PyObject_ClearWeakRefs(PyObject *);
295 PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
299 PyAPI_FUNC(int) Py_ReprEnter(PyObject *);
300 PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
444 PyObject *op);
447 PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
453 PyAPI_FUNC(void) Py_IncRef(PyObject *);
454 PyAPI_FUNC(void) Py_DecRef(PyObject *);
458 PyAPI_FUNC(void) _Py_IncRef(PyObject *);
459 PyAPI_FUNC(void) _Py_DecRef(PyObject *);
461 static inline void _Py_INCREF(PyObject *op) in _Py_INCREF()
481 PyObject *op) in _Py_DECREF()
547 PyObject *_py_tmp = _PyObject_CAST(op); \
555 static inline void _Py_XINCREF(PyObject *op) in _Py_XINCREF()
564 static inline void _Py_XDECREF(PyObject *op) in _Py_XDECREF()
575 PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj);
578 PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj);
580 static inline PyObject* _Py_NewRef(PyObject *obj) in _Py_NewRef()
586 static inline PyObject* _Py_XNewRef(PyObject *obj) in _Py_XNewRef()
605 PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */
609 PyAPI_FUNC(int) Py_IsNone(PyObject *x);
619 PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */
736 static inline int _PyType_Check(PyObject *op) { in _PyType_Check()
741 static inline int _PyType_CheckExact(PyObject *op) { in _PyType_CheckExact()