Logo Search packages:      
Sourcecode: inkscape version File versions

CRTerm* cr_term_append_term ( CRTerm a_this,
CRTerm a_new_term 
)

Appends a new term to the current list of CRTerm.

Parameters:
a_this the "this pointer" of the current instance of CRTerm .
a_new_term the term to append.
Returns:
the list of terms with the a_new_term appended to it.

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

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

Referenced by cr_parser_parse_declaration(), cr_parser_parse_expr(), cr_parser_parse_function(), and cr_parser_parse_term().

{
        CRTerm *cur = NULL;

        g_return_val_if_fail (a_new_term, NULL);

        if (a_this == NULL)
                return a_new_term;

        for (cur = a_this; cur->next; cur = cur->next) ;

        cur->next = a_new_term;
        a_new_term->prev = cur;

        return a_this;
}


Generated by  Doxygen 1.6.0   Back to index