/* Returns CR_OK upon successfull completion, an error code otherwise.  */
enum CRStatus cr_statement_at_import_rule_set_url(CRStatement *a_this, CRString *a_url)
/* Returns CR_OK upon successfull completion, an error code otherwise.  */
enum CRStatus cr_statement_at_import_rule_set_url(CRStatement *a_this, CRString *a_url)
{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_IMPORT_RULE_STMT
                              && a_this->kind.import_rule,
                              CR_BAD_PARAM_ERROR);
        if (a_this->kind.import_rule->url) {
                cr_string_destroy (a_this->kind.import_rule->url);
        }
        a_this->kind.import_rule->url = a_url;
        return CR_OK;
}