Logo Search packages:      
Sourcecode: inkscape version File versions

CRDeclaration* cr_declaration_append ( CRDeclaration a_this,
CRDeclaration a_new 

Appends a new declaration to the current declarations list.

a_this the current declaration list.
a_new the declaration to append.
the declaration list with a_new appended to it, or NULL in case of error.

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

Referenced by cr_declaration_append2(), cr_declaration_parse_list_from_buf(), and cr_statement_ruleset_append_decl().

        CRDeclaration *cur = NULL;

        g_return_val_if_fail (a_new, NULL);

        if (!a_this)
                return a_new;

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

        cur->next = a_new;
        a_new->prev = cur;

        return a_this;

Generated by  Doxygen 1.6.0   Back to index