Home
last modified time | relevance | path

Searched refs:PyWeakReference (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Objects/
Dweakrefobject.c6 ((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()
31 static PyWeakReference *
34 PyWeakReference *result; in new_weakref()
36 result = PyObject_GC_New(PyWeakReference, &_PyWeakref_RefType); in new_weakref()
51 clear_weakref(PyWeakReference *self) in clear_weakref()
56 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); in clear_weakref()
89 _PyWeakref_ClearRef(PyWeakReference *self) in _PyWeakref_ClearRef()
106 clear_weakref((PyWeakReference *) self); in weakref_dealloc()
[all …]
Dclassobject.c676 _PyWeakref_ClearRef((PyWeakReference *) in instance_dealloc()
Dtypeobject.c1013 PyWeakReference **list = (PyWeakReference **) \ in subtype_dealloc()
/external/python/cpython2/Include/
Dweakrefobject.h10 typedef struct _PyWeakReference PyWeakReference; typedef
37 PyWeakReference *wr_prev;
38 PyWeakReference *wr_next;
62 PyAPI_FUNC(Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
64 PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);
74 (Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \
75 ? ((PyWeakReference *)(ref))->wr_object \
/external/python/cpython2/Modules/
D_weakref.c5 ((PyWeakReference **) PyObject_GET_WEAKREFS_LISTPTR(o))
18 PyWeakReference **list = GET_WEAKREFS_LISTPTR(object); in weakref_getweakrefcount()
39 PyWeakReference **list = GET_WEAKREFS_LISTPTR(object); in weakref_getweakrefs()
44 PyWeakReference *current = *list; in weakref_getweakrefs()
Dgcmodule.c605 PyWeakReference *wr; /* generally a cast of op */ in handle_weakrefs()
621 PyWeakReference **wrlist; in handle_weakrefs()
631 wrlist = (PyWeakReference **) in handle_weakrefs()
708 wr = (PyWeakReference *)op; in handle_weakrefs()