Logo Search packages:      
Sourcecode: librasterlite version File versions  Download package

void remove_list_node_link ( linked_list list,
list_node node 
)

Remove list node

This function removes node links from the list.

Note:
The node itself is not released and can be added to another list.
Returns:
VOID

Definition at line 101 of file list.c.

References linked_list_tag::first, linked_list_tag::last, list_node_tag::next, and list_node_tag::prev.

Referenced by move_list_node(), remove_list_node(), speck_process_S(), and speck_unprocess_S().

{
    if (node->prev) {
        node->prev->next = node->next;
    } else {
        list->first = node->next;
    }

    if (node->next) {
        node->next->prev = node->prev;
    } else {
        list->last = node->prev;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index