Lines Matching refs:wr_callback
30 self->wr_callback = callback; in init_weakref()
55 PyObject *callback = self->wr_callback; in clear_weakref()
75 self->wr_callback = NULL; in clear_weakref()
98 callback = self->wr_callback; in _PyWeakref_ClearRef()
99 self->wr_callback = NULL; in _PyWeakref_ClearRef()
101 self->wr_callback = callback; in _PyWeakref_ClearRef()
116 Py_VISIT(self->wr_callback); in gc_traverse()
226 if (head != NULL && head->wr_callback == NULL) { in get_basic_refs()
235 && head->wr_callback == NULL in get_basic_refs()
346 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY},
541 if (self->wr_callback != NULL) in proxy_dealloc()
899 if (*list != NULL && (*list)->wr_callback == NULL) { in PyObject_ClearWeakRefs()
901 if (*list != NULL && (*list)->wr_callback == NULL) in PyObject_ClearWeakRefs()
911 PyObject *callback = current->wr_callback; in PyObject_ClearWeakRefs()
913 current->wr_callback = NULL; in PyObject_ClearWeakRefs()
938 PyTuple_SET_ITEM(tuple, i * 2 + 1, current->wr_callback); in PyObject_ClearWeakRefs()
941 Py_DECREF(current->wr_callback); in PyObject_ClearWeakRefs()
943 current->wr_callback = NULL; in PyObject_ClearWeakRefs()