Lines Matching defs:newref
255 /* Insert 'newref' in the list after 'prev'. Both must be non-NULL. */
257 insert_after(PyWeakReference *newref, PyWeakReference *prev)
259 newref->wr_prev = prev;
260 newref->wr_next = prev->wr_next;
262 prev->wr_next->wr_prev = newref;
263 prev->wr_next = newref;
266 /* Insert 'newref' at the head of the list; 'list' points to the variable
270 insert_head(PyWeakReference *newref, PyWeakReference **list)
274 newref->wr_prev = NULL;
275 newref->wr_next = next;
277 next->wr_prev = newref;
278 *list = newref;