/* Returns CR_OK upon successfull completion, an error code if something bad happened.  */
enum CRStatus cr_statement_ruleset_get_declarations(CRStatement *a_this, CRDeclaration **a_decl_list)
/* Returns CR_OK upon successfull completion, an error code if something bad happened.  */
enum CRStatus cr_statement_ruleset_get_declarations(CRStatement *a_this, CRDeclaration **a_decl_list)
{
        g_return_val_if_fail (a_this
                              && a_this->type == RULESET_STMT
                              && a_this->kind.ruleset
                              && a_decl_list, CR_BAD_PARAM_ERROR);
        *a_decl_list = a_this->kind.ruleset->decl_list;
        return CR_OK;
}