Logo Search packages:      
Sourcecode: inkscape version File versions

CRStatement* cr_statement_prepend ( CRStatement *  a_this,
CRStatement *  a_new 

Prepends the an instance of CRStatement to the current statement list.

a_this the current instance of CRStatement.
a_new the new statement to prepend.
the new list with the new statement prepended, or NULL in case of an error.

Definition at line 1774 of file cr-statement.c.

        CRStatement *cur = NULL;

        g_return_val_if_fail (a_new, NULL);

        if (!a_this)
                return a_new;

        a_new->next = a_this;
        a_this->prev = a_new;

        /*walk backward in the prepended list to find the head list element */
        for (cur = a_new; cur && cur->prev; cur = cur->prev) ;

        return cur;

Generated by  Doxygen 1.6.0   Back to index