Lines Matching refs:wr_callback
31 self->wr_callback = callback; in init_weakref()
56 PyObject *callback = self->wr_callback; in clear_weakref()
76 self->wr_callback = NULL; in clear_weakref()
99 callback = self->wr_callback; in _PyWeakref_ClearRef()
100 self->wr_callback = NULL; in _PyWeakref_ClearRef()
102 self->wr_callback = callback; in _PyWeakref_ClearRef()
117 Py_VISIT(self->wr_callback); in gc_traverse()
241 if (head != NULL && head->wr_callback == NULL) { in get_basic_refs()
250 && head->wr_callback == NULL in get_basic_refs()
361 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY},
583 if (self->wr_callback != NULL) in proxy_dealloc()
980 if (*list != NULL && (*list)->wr_callback == NULL) { in PyObject_ClearWeakRefs()
982 if (*list != NULL && (*list)->wr_callback == NULL) in PyObject_ClearWeakRefs()
992 PyObject *callback = current->wr_callback; in PyObject_ClearWeakRefs()
994 current->wr_callback = NULL; in PyObject_ClearWeakRefs()
1019 PyTuple_SET_ITEM(tuple, i * 2 + 1, current->wr_callback); in PyObject_ClearWeakRefs()
1022 Py_DECREF(current->wr_callback); in PyObject_ClearWeakRefs()
1024 current->wr_callback = NULL; in PyObject_ClearWeakRefs()