Searched refs:PyWeakReference (Results 1 – 6 of 6) sorted by relevance
6 ((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))10 _PyWeakref_GetWeakrefCount(PyWeakReference *head) in _PyWeakref_GetWeakrefCount()23 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref()31 static PyWeakReference *34 PyWeakReference *result; in new_weakref()36 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType); in new_weakref()51 clear_weakref(PyWeakReference *self) in clear_weakref()56 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); in clear_weakref()89 _PyWeakref_ClearRef(PyWeakReference *self) in _PyWeakref_ClearRef()106 clear_weakref((PyWeakReference *) self); in weakref_dealloc()[all …]
676 _PyWeakref_ClearRef((PyWeakReference *) in instance_dealloc()
1013 PyWeakReference **list = (PyWeakReference **) \ in subtype_dealloc()
10 typedef struct _PyWeakReference PyWeakReference; typedef37 PyWeakReference *wr_prev;38 PyWeakReference *wr_next;62 PyAPI_FUNC(Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head);64 PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);74 (Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \75 ? ((PyWeakReference *)(ref))->wr_object \
5 ((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))18 PyWeakReference **list = GET_WEAKREFS_LISTPTR(object); in weakref_getweakrefcount()39 PyWeakReference **list = GET_WEAKREFS_LISTPTR(object); in weakref_getweakrefs()44 PyWeakReference *current = *list; in weakref_getweakrefs()
605 PyWeakReference *wr; /* generally a cast of op */ in handle_weakrefs()621 PyWeakReference **wrlist; in handle_weakrefs()631 wrlist = (PyWeakReference **) in handle_weakrefs()708 wr = (PyWeakReference *)op; in handle_weakrefs()