Lines Matching refs:tmp
140 list_element* tmp = p_list->p_head; in linked_list_add() local
143 p_list->p_head->next = tmp; in linked_list_add()
145 if( tmp != NULL ) in linked_list_add()
147 tmp->prev = p_list->p_head; in linked_list_add()
183 list_element* tmp = p_list->p_tail; in linked_list_remove() local
186 p_list->p_tail = tmp->prev; in linked_list_remove()
198 *data_obj = tmp->data_ptr; in linked_list_remove()
201 free(tmp); in linked_list_remove()
243 list_element* tmp = p_list->p_head->next; in linked_list_flush() local
254 p_list->p_head = tmp; in linked_list_flush()
285 list_element* tmp = p_list->p_head; in linked_list_search() local
291 while (NULL != tmp) { in linked_list_search()
292 if ((*equal)(data_0, tmp->data_ptr)) { in linked_list_search()
294 *data_p = tmp->data_ptr; in linked_list_search()
298 if (NULL == tmp->prev) { in linked_list_search()
299 p_list->p_head = tmp->next; in linked_list_search()
301 tmp->prev->next = tmp->next; in linked_list_search()
304 if (NULL == tmp->next) { in linked_list_search()
305 p_list->p_tail = tmp->prev; in linked_list_search()
307 tmp->next->prev = tmp->prev; in linked_list_search()
310 tmp->prev = tmp->next = NULL; in linked_list_search()
314 if (NULL == data_p && NULL != tmp->dealloc_func) { in linked_list_search()
315 tmp->dealloc_func(tmp->data_ptr); in linked_list_search()
317 free(tmp); in linked_list_search()
320 tmp = NULL; in linked_list_search()
322 tmp = tmp->next; in linked_list_search()