Lines Matching refs:temp
80 DL_NODE *temp = dlist_get_last(list); in dlist_add_as_last() local
81 temp->next = node; in dlist_add_as_last()
82 node->prev = temp; in dlist_add_as_last()
109 DL_NODE *temp = list; in dlist_get_first() local
113 while (temp->prev != NULL) in dlist_get_first()
114 temp = temp->prev; in dlist_get_first()
116 return (temp); in dlist_get_first()
126 DL_NODE *temp = list; in dlist_get_last() local
130 while (temp->next != NULL) in dlist_get_last()
131 temp = temp->next; in dlist_get_last()
133 return (temp); in dlist_get_last()
141 DL_NODE *temp = list; in dlist_length() local
144 while (temp) { in dlist_length()
146 temp = temp->next; in dlist_length()
197 DL_NODE *temp = list; in dlist_remove_node() local
204 temp = list->next; in dlist_remove_node()
205 if (temp) in dlist_remove_node()
206 temp->prev = NULL; in dlist_remove_node()
209 return (temp); in dlist_remove_node()
215 while ((temp != NULL) && (temp->next != node)) in dlist_remove_node()
216 temp = temp->next; in dlist_remove_node()
218 if (temp != NULL) { in dlist_remove_node()
221 temp->next = next; in dlist_remove_node()
223 next->prev = temp; in dlist_remove_node()