Logo Search packages:      
Sourcecode: inkscape version File versions

CRTerm* cr_term_prepend_term ( CRTerm a_this,
CRTerm a_new_term 
)

Prepends a term to the list of terms represented by a_this.

Parameters:
a_this the "this pointer" of the current instance of CRTerm .
a_new_term the term to prepend.
Returns:
the head of the new list.

Definition at line 260 of file cr-term.c.

References _CRTerm::next, and _CRTerm::prev.

{
        g_return_val_if_fail (a_this && a_new_term, NULL);

        a_new_term->next = a_this;
        a_this->prev = a_new_term;

        return a_new_term;
}


Generated by  Doxygen 1.6.0   Back to index