Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_statement_ruleset_set_decl_list ( CRStatement *  a_this,
CRDeclaration a_list 

Sets a declaration list to the current ruleset statement.

a_this the current ruleset statement.
a_list the declaration list to be added to the current ruleset statement.
CR_OK upon successfull completion, an error code otherwise.

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

References cr_declaration_destroy().

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

        if (a_this->kind.ruleset->decl_list == a_list)
                return CR_OK;

        if (a_this->kind.ruleset->sel_list) {
                cr_declaration_destroy (a_this->kind.ruleset->decl_list);

        a_this->kind.ruleset->sel_list = NULL;

        return CR_OK;

Generated by  Doxygen 1.6.0   Back to index