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

void append_list_node ( linked_list list,
list_node node 
)

Append list node

This function appends new node to the list tail.

Note:
Node must be properly allocated beforehand.
Returns:
VOID

Definition at line 71 of file list.c.

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

Referenced by insert_after_list_node(), move_list_node(), speck_decode_S(), speck_encode_S(), speck_process_S(), and speck_unprocess_S().

{
    if ((list->first == NULL) && (list->last == NULL)) {
        node->next = node->prev = NULL;
        list->first = list->last = node;
        return;
    }

    node->next = NULL;
    node->prev = list->last;

    list->last->next = node;
    list->last = node;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index