/external/python/cpython2/Include/ |
D | setobject.h | 69 #define PyFrozenSet_CheckExact(ob) (Py_TYPE(ob) == &PyFrozenSet_Type) 71 (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type) 73 (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type || \ 74 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \ 75 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type)) 77 (Py_TYPE(ob) == &PySet_Type || \ 78 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type)) 80 (Py_TYPE(ob) == &PyFrozenSet_Type || \ 81 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
|
D | datetime.h | 171 #define PyDate_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateType) 174 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateTimeType) 177 #define PyTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TimeType) 180 #define PyDelta_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DeltaType) 183 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TZInfoType) 195 #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType) 198 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType) 201 #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType) 204 #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType) 207 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TZInfoType)
|
D | dictobject.h | 100 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_DICT_SUBCLASS) 101 #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type) 102 #define PyDictKeys_Check(op) (Py_TYPE(op) == &PyDictKeys_Type) 103 #define PyDictItems_Check(op) (Py_TYPE(op) == &PyDictItems_Type) 104 #define PyDictValues_Check(op) (Py_TYPE(op) == &PyDictValues_Type)
|
D | weakrefobject.h | 47 (Py_TYPE(op) == &_PyWeakref_RefType) 49 ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \ 50 (Py_TYPE(op) == &_PyWeakref_CallableProxyType))
|
D | objimpl.h | 164 ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) 241 #define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) && \ 242 (Py_TYPE(o)->tp_is_gc == NULL || Py_TYPE(o)->tp_is_gc(o))) 349 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
|
D | object.h | 115 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) macro 433 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize)) 439 (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp))) 446 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS) 447 #define PyType_CheckExact(op) (Py_TYPE(op) == &PyType_Type) 731 #define _Py_INC_TPALLOCS(OP) inc_count(Py_TYPE(OP)) 732 #define _Py_INC_TPFREES(OP) dec_count(Py_TYPE(OP)) 733 #define _Py_DEC_TPFREES(OP) Py_TYPE(OP)->tp_frees-- 764 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
|
D | iterobject.h | 10 #define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type) 16 #define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)
|
D | cStringIO.h | 66 (Py_TYPE(O)==PycStringIO->InputType) 68 (Py_TYPE(O)==PycStringIO->OutputType)
|
D | tupleobject.h | 37 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS) 38 #define PyTuple_CheckExact(op) (Py_TYPE(op) == &PyTuple_Type)
|
D | listobject.h | 44 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LIST_SUBCLASS) 45 #define PyList_CheckExact(op) (Py_TYPE(op) == &PyList_Type)
|
D | code.h | 67 #define PyCode_Check(op) (Py_TYPE(op) == &PyCode_Type) 87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
|
D | longobject.h | 15 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) 16 #define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
|
/external/python/cpython2/Objects/ |
D | object.c | 223 Py_TYPE(op) = tp; in PyObject_Init() 235 Py_TYPE(op) = tp; in PyObject_InitVar() 300 else if (Py_TYPE(op)->tp_print == NULL) { in internal_print() 315 ret = (*Py_TYPE(op)->tp_print)(op, fp, flags); in internal_print() 357 Py_TYPE(op)==NULL ? "NULL" : Py_TYPE(op)->tp_name, in _PyObject_Dump() 376 else if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr() 378 Py_TYPE(v)->tp_name, v); in PyObject_Repr() 381 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr() 398 Py_TYPE(res)->tp_name); in PyObject_Repr() 423 if (Py_TYPE(v)->tp_str == NULL) in _PyObject_Str() [all …]
|
D | typeobject.c | 263 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name() 462 type->tp_name, Py_TYPE(value)->tp_name); in type_set_bases() 477 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases() 602 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc() 603 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc() 664 Py_TYPE(v)->tp_compare || Py_TYPE(w)->tp_compare) { in type_richcompare() 841 type = Py_TYPE(self); in subtype_traverse() 898 type = Py_TYPE(self); in subtype_clear() 928 type = Py_TYPE(self); in subtype_dealloc() 956 type = Py_TYPE(self); in subtype_dealloc() [all …]
|
D | weakrefobject.c | 107 Py_TYPE(self)->tp_free(self); in weakref_dealloc() 174 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 182 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 287 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__() 290 Py_TYPE(ob)->tp_name); in weakref___new__() 469 Py_TYPE(PyWeakref_GET_OBJECT(proxy))->tp_name, in WRAP_BINARY() 762 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef() 765 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef() 821 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy() 824 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy() [all …]
|
D | codeobject.c | 435 key = PyTuple_Pack(2, Py_TYPE(op), op); in _PyCode_ConstantKey() 443 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_None); in _PyCode_ConstantKey() 445 key = PyTuple_Pack(2, Py_TYPE(op), op); in _PyCode_ConstantKey() 461 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_True); in _PyCode_ConstantKey() 464 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_False); in _PyCode_ConstantKey() 467 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_None); in _PyCode_ConstantKey() 470 key = PyTuple_Pack(2, Py_TYPE(op), op); in _PyCode_ConstantKey() 496 key = PyTuple_Pack(3, Py_TYPE(op), op, tuple); in _PyCode_ConstantKey() 530 key = PyTuple_Pack(3, Py_TYPE(op), op, set); in _PyCode_ConstantKey() 541 key = PyTuple_Pack(3, Py_TYPE(op), op, obj_id); in _PyCode_ConstantKey()
|
D | intobject.c | 62 Py_TYPE(q) = (struct _typeobject *)(q-1); in fill_free_list() 63 Py_TYPE(q) = NULL; in fill_free_list() 109 free_list = (PyIntObject *)Py_TYPE(v); in PyInt_FromLong() 135 Py_TYPE(v) = (struct _typeobject *)free_list; in int_dealloc() 139 Py_TYPE(v)->tp_free((PyObject *)v); in int_dealloc() 152 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsLong() 221 if ((nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsSsize_t() 270 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsUnsignedLongMask() 315 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsUnsignedLongLongMask() 1460 free_list = (PyIntObject *)Py_TYPE(v); in _PyInt_Init() [all …]
|
/external/python/cpython2/Modules/_io/ |
D | stringio.c | 236 Py_TYPE(arg)->tp_name); in stringio_read() 306 Py_TYPE(arg)->tp_name); in stringio_readline() 320 if (Py_TYPE(self) == &PyStringIO_Type) { in stringio_iternext() 331 "not '%.200s'", Py_TYPE(line)->tp_name); in stringio_iternext() 378 Py_TYPE(arg)->tp_name); in stringio_truncate() 468 Py_TYPE(obj)->tp_name); in stringio_write() 528 Py_TYPE(self)->tp_free(self); in stringio_dealloc() 575 Py_TYPE(value)->tp_name); in stringio_init() 724 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in stringio_setstate() 760 Py_TYPE(position_obj)->tp_name); in stringio_setstate() [all …]
|
D | bytesio.c | 250 Py_TYPE(arg)->tp_name); in bytesio_read() 319 Py_TYPE(arg)->tp_name); in bytesio_readline() 365 Py_TYPE(arg)->tp_name); in bytesio_readlines() 457 Py_TYPE(arg)->tp_name); in bytesio_truncate() 686 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in bytesio_setstate() 708 Py_TYPE(position_obj)->tp_name); in bytesio_setstate() 727 Py_TYPE(dict)->tp_name); in bytesio_setstate() 756 Py_TYPE(self)->tp_free(self); in bytesio_dealloc() 812 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof()
|
D | iobase.c | 251 --Py_TYPE(self)->tp_frees; in _PyIOBase_finalize() 252 --Py_TYPE(self)->tp_allocs; in _PyIOBase_finalize() 289 if (PyType_HasFeature(Py_TYPE(self), Py_TPFLAGS_HEAPTYPE)) in iobase_dealloc() 290 Py_INCREF(Py_TYPE(self)); in iobase_dealloc() 297 Py_TYPE(self)->tp_free((PyObject *) self); in iobase_dealloc() 484 "not '%.200s'", Py_TYPE(readahead)->tp_name); in iobase_readline() 524 "not '%.200s'", Py_TYPE(b)->tp_name); in iobase_readline()
|
/external/python/cpython2/Modules/_sqlite/ |
D | prepare_protocol.c | 34 Py_TYPE(self)->tp_free((PyObject*)self); in pysqlite_prepare_protocol_dealloc() 82 Py_TYPE(&pysqlite_PrepareProtocolType)= &PyType_Type; in pysqlite_prepare_protocol_setup_types()
|
D | sqlitecompat.h | 59 #ifndef Py_TYPE 60 #define Py_TYPE(ob) ((ob)->ob_type) macro
|
/external/python/cpython2/Modules/ |
D | itertoolsmodule.c | 60 Py_TYPE(gbo)->tp_free(gbo); in groupby_dealloc() 405 while (obj && Py_TYPE(obj) == &teedataobject_type && in teedataobject_safe_decref() 743 Py_TYPE(lz)->tp_free(lz); in cycle_dealloc() 888 Py_TYPE(lz)->tp_free(lz); in dropwhile_dealloc() 907 iternext = *Py_TYPE(it)->tp_iternext; in dropwhile_next() 1032 Py_TYPE(lz)->tp_free(lz); in takewhile_dealloc() 1053 item = (*Py_TYPE(it)->tp_iternext)(it); in takewhile_next() 1222 Py_TYPE(lz)->tp_free(lz); in islice_dealloc() 1244 iternext = *Py_TYPE(it)->tp_iternext; in islice_next() 1373 Py_TYPE(lz)->tp_free(lz); in starmap_dealloc() [all …]
|
D | threadmodule.c | 231 Py_TYPE(self)->tp_free((PyObject*)self); in localdummy_dealloc() 429 Py_TYPE(self)->tp_free((PyObject*)self); in local_dealloc() 451 if (Py_TYPE(self)->tp_init != PyBaseObject_Type.tp_init && in _ldict() 452 Py_TYPE(self)->tp_init((PyObject*)self, in _ldict() 462 assert(Py_TYPE(dummy) == &localdummytype); in _ldict() 483 Py_TYPE(self)->tp_name); in local_setattro() 556 if (Py_TYPE(self) != &localtype) in local_getattro()
|
D | _weakref.c | 17 if (PyType_SUPPORTS_WEAKREFS(Py_TYPE(object))) { in weakref_getweakrefcount() 38 if (PyType_SUPPORTS_WEAKREFS(Py_TYPE(object))) { in weakref_getweakrefs()
|