Lines Matching defs:list

50  * list of weak references for the referent.  This is the only code that
51 * removes an item from the doubly-linked list of weak references for an
60 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object);
62 if (*list == self)
63 /* If 'self' is the end of the list (and thus self->wr_next == NULL)
64 then the weakref list itself (and thus the value of *list) will
66 *list = self->wr_next;
226 /* Given the head of an object's list of weak references, extract the
255 /* Insert 'newref' in the list after 'prev'. Both must be non-NULL. */
266 /* Insert 'newref' at the head of the list; 'list' points to the variable
270 insert_head(PyWeakReference *newref, PyWeakReference **list)
272 PyWeakReference *next = *list;
278 *list = newref;
296 PyWeakReference **list;
306 list = GET_WEAKREFS_LISTPTR(ob);
307 get_basic_refs(*list, &ref, &proxy);
317 list on ob can be mutated. This means that the ref and
325 insert_head(self, list);
330 get_basic_refs(*list, &ref, &proxy);
333 insert_head(self, list);
790 PyWeakReference **list;
799 list = GET_WEAKREFS_LISTPTR(ob);
800 get_basic_refs(*list, &ref, &proxy);
810 list on ob can be mutated. This means that the ref and
816 get_basic_refs(*list, &ref, &proxy);
819 insert_head(result, list);
823 to avoid violating the invariants of the list
835 insert_head(result, list);
849 PyWeakReference **list;
858 list = GET_WEAKREFS_LISTPTR(ob);
859 get_basic_refs(*list, &ref, &proxy);
869 list on ob can be mutated. This means that the ref and
883 get_basic_refs(*list, &ref, &proxy);
888 to avoid violating the invariants of the list
901 insert_head(result, list);
945 PyWeakReference **list;
954 list = GET_WEAKREFS_LISTPTR(object);
956 if (*list != NULL && (*list)->wr_callback == NULL) {
957 clear_weakref(*list);
958 if (*list != NULL && (*list)->wr_callback == NULL)
959 clear_weakref(*list);
961 if (*list != NULL) {
962 PyWeakReference *current = *list;