Lines Matching refs:new
28 /* Allocate new list. */
32 struct list *new;
34 new = XMALLOC (MTYPE_LINK_LIST, sizeof (struct list));
35 memset (new, 0, sizeof (struct list));
36 return new;
46 /* Allocate new listnode. Internal use only. */
65 /* Add new data to the list. */
85 /* Add new node with sort function. */
90 struct listnode *new;
92 new = listnode_new ();
93 new->data = val;
101 new->next = n;
102 new->prev = n->prev;
105 n->prev->next = new;
107 list->head = new;
108 n->prev = new;
115 new->prev = list->tail;
118 list->tail->next = new;
120 list->head = new;
122 list->tail = new;