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

void prepend_list_node ( linked_list list,
list_node node 

Prepend list node

This function prepends new node to the list head.

Node must be properly allocated beforehand.

Definition at line 86 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_before_list_node(), speck_decode_S(), speck_encode_S(), speck_init(), speck_process_S(), and speck_unprocess_S().

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

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

    list->first->prev = node;
    list->first = node;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index