Lines Matching refs:PyWeakReference
7 ((PyWeakReference **) _PyObject_GET_WEAKREFS_LISTPTR(o))
11 _PyWeakref_GetWeakrefCount(PyWeakReference *head) in _PyWeakref_GetWeakrefCount()
24 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref()
34 static PyWeakReference *
37 PyWeakReference *result; in new_weakref()
39 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType); in new_weakref()
54 clear_weakref(PyWeakReference *self) in clear_weakref()
59 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); in clear_weakref()
92 _PyWeakref_ClearRef(PyWeakReference *self) in _PyWeakref_ClearRef()
109 clear_weakref((PyWeakReference *) self); in weakref_dealloc()
115 gc_traverse(PyWeakReference *self, visitproc visit, void *arg) in gc_traverse()
123 gc_clear(PyWeakReference *self) in gc_clear()
131 weakref_call(PyWeakReference *self, PyObject *args, PyObject *kw) in weakref_call()
145 weakref_hash(PyWeakReference *self) in weakref_hash()
162 weakref_repr(PyWeakReference *self) in weakref_repr()
202 weakref_richcompare(PyWeakReference* self, PyWeakReference* other, int op) in weakref_richcompare()
235 get_basic_refs(PyWeakReference *head, in get_basic_refs()
236 PyWeakReference **refp, PyWeakReference **proxyp) in get_basic_refs()
260 insert_after(PyWeakReference *newref, PyWeakReference *prev) in insert_after()
273 insert_head(PyWeakReference *newref, PyWeakReference **list) in insert_head()
275 PyWeakReference *next = *list; in insert_head()
294 PyWeakReference *self = NULL; in weakref___new__()
298 PyWeakReference *ref, *proxy; in weakref___new__()
299 PyWeakReference **list; in weakref___new__()
324 self = (PyWeakReference *) (type->tp_alloc(type, 0)); in weakref___new__()
331 PyWeakReference *prev; in weakref___new__()
361 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY},
375 sizeof(PyWeakReference),
417 proxy_checkref(PyWeakReference *proxy) in proxy_checkref()
434 if (!proxy_checkref((PyWeakReference *)o)) \
501 proxy_repr(PyWeakReference *proxy) in WRAP_BINARY()
512 proxy_setattr(PyWeakReference *proxy, PyObject *name, PyObject *value) in proxy_setattr()
568 proxy_bool(PyWeakReference *proxy) in WRAP_BINARY()
581 proxy_dealloc(PyWeakReference *self) in proxy_dealloc()
592 proxy_contains(PyWeakReference *proxy, PyObject *value) in proxy_contains()
607 proxy_length(PyWeakReference *proxy) in proxy_length()
622 proxy_setitem(PyWeakReference *proxy, PyObject *key, PyObject *value) in WRAP_BINARY()
642 proxy_iter(PyWeakReference *proxy) in proxy_iter()
654 proxy_iternext(PyWeakReference *proxy) in proxy_iternext()
745 sizeof(PyWeakReference),
780 sizeof(PyWeakReference),
813 PyWeakReference *result = NULL; in PyWeakref_NewRef()
814 PyWeakReference **list; in PyWeakref_NewRef()
815 PyWeakReference *ref, *proxy; in PyWeakref_NewRef()
855 PyWeakReference *prev; in PyWeakref_NewRef()
872 PyWeakReference *result = NULL; in PyWeakref_NewProxy()
873 PyWeakReference **list; in PyWeakref_NewProxy()
874 PyWeakReference *ref, *proxy; in PyWeakref_NewProxy()
899 PyWeakReference *prev; in PyWeakref_NewProxy()
950 handle_callback(PyWeakReference *ref, PyObject *callback) in handle_callback()
969 PyWeakReference **list; in PyObject_ClearWeakRefs()
986 PyWeakReference *current = *list; in PyObject_ClearWeakRefs()
1014 PyWeakReference *next = current->wr_next; in PyObject_ClearWeakRefs()
1034 handle_callback((PyWeakReference *)item, callback); in PyObject_ClearWeakRefs()