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()
193 weakref_richcompare(PyWeakReference* self, PyWeakReference* other, int op) in weakref_richcompare()
220 get_basic_refs(PyWeakReference *head, in get_basic_refs()
221 PyWeakReference **refp, PyWeakReference **proxyp) in get_basic_refs()
245 insert_after(PyWeakReference *newref, PyWeakReference *prev) in insert_after()
258 insert_head(PyWeakReference *newref, PyWeakReference **list) in insert_head()
260 PyWeakReference *next = *list; in insert_head()
279 PyWeakReference *self = NULL; in weakref___new__()
283 PyWeakReference *ref, *proxy; in weakref___new__()
284 PyWeakReference **list; in weakref___new__()
309 self = (PyWeakReference *) (type->tp_alloc(type, 0)); in weakref___new__()
316 PyWeakReference *prev; in weakref___new__()
346 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY},
354 sizeof(PyWeakReference),
396 proxy_checkref(PyWeakReference *proxy) in proxy_checkref()
413 if (!proxy_checkref((PyWeakReference *)o)) \
420 if (!proxy_checkref((PyWeakReference *)o)) \
469 proxy_repr(PyWeakReference *proxy) in WRAP_BINARY()
480 proxy_setattr(PyWeakReference *proxy, PyObject *name, PyObject *value) in proxy_setattr()
530 proxy_bool(PyWeakReference *proxy) in WRAP_BINARY()
539 proxy_dealloc(PyWeakReference *self) in proxy_dealloc()
550 proxy_contains(PyWeakReference *proxy, PyObject *value) in proxy_contains()
561 proxy_length(PyWeakReference *proxy) in proxy_length()
571 proxy_setitem(PyWeakReference *proxy, PyObject *key, PyObject *value) in WRAP_BINARY()
585 proxy_iter(PyWeakReference *proxy) in proxy_iter()
593 proxy_iternext(PyWeakReference *proxy) in proxy_iternext()
669 sizeof(PyWeakReference),
703 sizeof(PyWeakReference),
736 PyWeakReference *result = NULL; in PyWeakref_NewRef()
737 PyWeakReference **list; in PyWeakref_NewRef()
738 PyWeakReference *ref, *proxy; in PyWeakref_NewRef()
778 PyWeakReference *prev; in PyWeakref_NewRef()
795 PyWeakReference *result = NULL; in PyWeakref_NewProxy()
796 PyWeakReference **list; in PyWeakref_NewProxy()
797 PyWeakReference *ref, *proxy; in PyWeakref_NewProxy()
822 PyWeakReference *prev; in PyWeakref_NewProxy()
870 handle_callback(PyWeakReference *ref, PyObject *callback) in handle_callback()
889 PyWeakReference **list; in PyObject_ClearWeakRefs()
905 PyWeakReference *current = *list; in PyObject_ClearWeakRefs()
932 PyWeakReference *next = current->wr_next; in PyObject_ClearWeakRefs()
953 handle_callback((PyWeakReference *)item, callback); in PyObject_ClearWeakRefs()