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

CRDeclaration* cr_declaration_prepend ( CRDeclaration a_this,
CRDeclaration a_new 
)

prepends a declaration to the current declaration list.

Parameters:
a_this the current declaration list.
a_new the declaration to prepend.
Returns:
the list with a_new prepended or NULL in case of error.

Definition at line 378 of file cr-declaration.c.

{
        CRDeclaration *cur = NULL;

        g_return_val_if_fail (a_new, NULL);

        if (!a_this)
                return a_new;

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

        for (cur = a_new; cur && cur->prev; cur = cur->prev) ;

        return cur;
}


Generated by  Doxygen 1.6.0   Back to index