Searched refs:PyWeakReference (Results 1 – 7 of 7) sorted by relevance
7 ((PyWeakReference **) _PyObject_GET_WEAKREFS_LISTPTR(o))11 _PyWeakref_GetWeakrefCount(PyWeakReference *head) in _PyWeakref_GetWeakrefCount()24 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref()34 static PyWeakReference *37 PyWeakReference *result; in new_weakref()39 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType); in new_weakref()54 clear_weakref(PyWeakReference *self) in clear_weakref()59 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); in clear_weakref()92 _PyWeakref_ClearRef(PyWeakReference *self) in _PyWeakref_ClearRef()109 clear_weakref((PyWeakReference *) self); in weakref_dealloc()[all …]
1414 PyWeakReference **list = (PyWeakReference **) \ in subtype_dealloc()
10 typedef struct _PyWeakReference PyWeakReference; typedef38 PyWeakReference *wr_prev;39 PyWeakReference *wr_next;65 PyAPI_FUNC(Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head);67 PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);78 (Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \79 ? ((PyWeakReference *)(ref))->wr_object \
6 ((PyWeakReference **) _PyObject_GET_WEAKREFS_LISTPTR(o))29 PyWeakReference **list; in _weakref_getweakrefcount_impl()89 PyWeakReference **list = GET_WEAKREFS_LISTPTR(object); in weakref_getweakrefs()94 PyWeakReference *current = *list; in weakref_getweakrefs()
762 PyWeakReference *wr; /* generally a cast of op */ in handle_weakrefs()778 PyWeakReference **wrlist; in handle_weakrefs()795 _PyWeakref_ClearRef((PyWeakReference *)op); in handle_weakrefs()802 wrlist = (PyWeakReference **) in handle_weakrefs()882 wr = (PyWeakReference *)op; in handle_weakrefs()
765 type,PyWeakReference,3.2,
45 struct PyWeakReference