/* @a_this: the current statement. @a_declaration: the declaration to append. Returns CR_OK upon sucessfull completion, an error code otherwise.  */
enum CRStatus cr_statement_ruleset_append_decl(CRStatement *a_this, CRDeclaration *a_decl)
/* @a_this: the current statement. @a_declaration: the declaration to append. Returns CR_OK upon sucessfull completion, an error code otherwise.  */
enum CRStatus cr_statement_ruleset_append_decl(CRStatement *a_this, CRDeclaration *a_decl)
{
        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;
}