Lines Matching refs:PyWeakReference
7 ((PyWeakReference **) _PyObject_GET_WEAKREFS_LISTPTR(o))
11 _PyWeakref_GetWeakrefCount(PyWeakReference *head)
22 static PyObject *weakref_vectorcall(PyWeakReference *self, PyObject *const *args, size_t nargsf, PyObject *kwnames);
25 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback)
35 static PyWeakReference *
38 PyWeakReference *result;
40 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType);
55 clear_weakref(PyWeakReference *self)
60 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object);
93 _PyWeakref_ClearRef(PyWeakReference *self)
110 clear_weakref((PyWeakReference *) self);
116 gc_traverse(PyWeakReference *self, visitproc visit, void *arg)
124 gc_clear(PyWeakReference *self)
132 weakref_vectorcall(PyWeakReference *self, PyObject *const *args,
146 weakref_hash(PyWeakReference *self)
163 weakref_repr(PyWeakReference *self)
199 weakref_richcompare(PyWeakReference* self, PyWeakReference* other, int op)
232 get_basic_refs(PyWeakReference *head,
233 PyWeakReference **refp, PyWeakReference **proxyp)
257 insert_after(PyWeakReference *newref, PyWeakReference *prev)
270 insert_head(PyWeakReference *newref, PyWeakReference **list)
272 PyWeakReference *next = *list;
291 PyWeakReference *self = NULL;
295 PyWeakReference *ref, *proxy;
296 PyWeakReference **list;
321 self = (PyWeakReference *) (type->tp_alloc(type, 0));
328 PyWeakReference *prev;
358 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY},
372 .tp_basicsize = sizeof(PyWeakReference),
374 .tp_vectorcall_offset = offsetof(PyWeakReference, vectorcall),
393 proxy_checkref(PyWeakReference *proxy)
410 if (!proxy_checkref((PyWeakReference *)o)) \
476 proxy_repr(PyWeakReference *proxy)
487 proxy_setattr(PyWeakReference *proxy, PyObject *name, PyObject *value)
543 proxy_bool(PyWeakReference *proxy)
556 proxy_dealloc(PyWeakReference *self)
568 proxy_contains(PyWeakReference *proxy, PyObject *value)
583 proxy_length(PyWeakReference *proxy)
598 proxy_setitem(PyWeakReference *proxy, PyObject *key, PyObject *value)
618 proxy_iter(PyWeakReference *proxy)
630 proxy_iternext(PyWeakReference *proxy)
721 sizeof(PyWeakReference),
756 sizeof(PyWeakReference),
789 PyWeakReference *result = NULL;
790 PyWeakReference **list;
791 PyWeakReference *ref, *proxy;
831 PyWeakReference *prev;
848 PyWeakReference *result = NULL;
849 PyWeakReference **list;
850 PyWeakReference *ref, *proxy;
875 PyWeakReference *prev;
926 handle_callback(PyWeakReference *ref, PyObject *callback)
945 PyWeakReference **list;
962 PyWeakReference *current = *list;
990 PyWeakReference *next = current->wr_next;
1010 handle_callback((PyWeakReference *)item, callback);