Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_statement_ruleset_append_decl ( CRStatement *  a_this,
CRDeclaration a_decl 
)

Appends a declaration to the current statement.

Parameters:
a_this the current statement.
a_declaration the declaration to append.
Returns:
CR_OK upon sucessfull completion, an error code otherwise.

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

References cr_declaration_append().

{
        CRDeclaration *new_decls = NULL;

        g_return_val_if_fail (a_this && a_this->type == RULESET_STMT
                              && a_this->kind.ruleset, CR_BAD_PARAM_ERROR);

        new_decls = cr_declaration_append
                (a_this->kind.ruleset->decl_list, a_decl);
        g_return_val_if_fail (new_decls, CR_ERROR);
        a_this->kind.ruleset->decl_list = new_decls;

        return CR_OK;
}


Generated by  Doxygen 1.6.0   Back to index