Lines Matching refs:PyWeakReference

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()
33 static PyWeakReference *
36 PyWeakReference *result; in new_weakref()
38 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType); in new_weakref()
53 clear_weakref(PyWeakReference *self) in clear_weakref()
58 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); in clear_weakref()
91 _PyWeakref_ClearRef(PyWeakReference *self) in _PyWeakref_ClearRef()
108 clear_weakref((PyWeakReference *) self); in weakref_dealloc()
114 gc_traverse(PyWeakReference *self, visitproc visit, void *arg) in gc_traverse()
122 gc_clear(PyWeakReference *self) in gc_clear()
130 weakref_call(PyWeakReference *self, PyObject *args, PyObject *kw) in weakref_call()
144 weakref_hash(PyWeakReference *self) in weakref_hash()
158 weakref_repr(PyWeakReference *self) in weakref_repr()
197 weakref_richcompare(PyWeakReference* self, PyWeakReference* other, int op) in weakref_richcompare()
223 get_basic_refs(PyWeakReference *head, in get_basic_refs()
224 PyWeakReference **refp, PyWeakReference **proxyp) in get_basic_refs()
248 insert_after(PyWeakReference *newref, PyWeakReference *prev) in insert_after()
261 insert_head(PyWeakReference *newref, PyWeakReference **list) in insert_head()
263 PyWeakReference *next = *list; in insert_head()
282 PyWeakReference *self = NULL; in weakref___new__()
286 PyWeakReference *ref, *proxy; in weakref___new__()
287 PyWeakReference **list; in weakref___new__()
312 self = (PyWeakReference *) (type->tp_alloc(type, 0)); in weakref___new__()
319 PyWeakReference *prev; in weakref___new__()
352 sizeof(PyWeakReference),
394 proxy_checkref(PyWeakReference *proxy) in proxy_checkref()
411 if (!proxy_checkref((PyWeakReference *)o)) \
418 if (!proxy_checkref((PyWeakReference *)o)) \
466 proxy_repr(PyWeakReference *proxy) in WRAP_BINARY()
478 proxy_setattr(PyWeakReference *proxy, PyObject *name, PyObject *value) in proxy_setattr()
531 proxy_nonzero(PyWeakReference *proxy) in WRAP_BINARY()
540 proxy_dealloc(PyWeakReference *self) in proxy_dealloc()
551 proxy_slice(PyWeakReference *proxy, Py_ssize_t i, Py_ssize_t j) in proxy_slice()
559 proxy_ass_slice(PyWeakReference *proxy, Py_ssize_t i, Py_ssize_t j, PyObject *value) in proxy_ass_slice()
567 proxy_contains(PyWeakReference *proxy, PyObject *value) in proxy_contains()
578 proxy_length(PyWeakReference *proxy) in proxy_length()
588 proxy_setitem(PyWeakReference *proxy, PyObject *key, PyObject *value) in WRAP_BINARY()
602 proxy_iter(PyWeakReference *proxy) in proxy_iter()
610 proxy_iternext(PyWeakReference *proxy) in proxy_iternext()
691 sizeof(PyWeakReference),
726 sizeof(PyWeakReference),
760 PyWeakReference *result = NULL; in PyWeakref_NewRef()
761 PyWeakReference **list; in PyWeakref_NewRef()
762 PyWeakReference *ref, *proxy; in PyWeakref_NewRef()
802 PyWeakReference *prev; in PyWeakref_NewRef()
819 PyWeakReference *result = NULL; in PyWeakref_NewProxy()
820 PyWeakReference **list; in PyWeakref_NewProxy()
821 PyWeakReference *ref, *proxy; in PyWeakref_NewProxy()
846 PyWeakReference *prev; in PyWeakref_NewProxy()
894 handle_callback(PyWeakReference *ref, PyObject *callback) in handle_callback()
913 PyWeakReference **list; in PyObject_ClearWeakRefs()
929 PyWeakReference *current = *list; in PyObject_ClearWeakRefs()
956 PyWeakReference *next = current->wr_next; in PyObject_ClearWeakRefs()
977 handle_callback((PyWeakReference *)item, callback); in PyObject_ClearWeakRefs()