#include "data/attributes.h"
#include "data/case.h"
-#include "data/category.h"
#include "data/identifier.h"
#include "data/mrset.h"
#include "data/settings.h"
dict_clear (d);
hmap_destroy (&d->name_map);
attrset_destroy (&d->attributes);
- free (d->mrsets);
+ dict_clear_mrsets (d);
+ free (d->encoding);
free (d);
}
}
dict_get_vars (const struct dictionary *d, const struct variable ***vars,
size_t *cnt, enum dict_class exclude)
{
- dict_get_vars_mutable (d, (struct variable ***) vars, cnt, exclude);
+ dict_get_vars_mutable (d, CONST_CAST (struct variable ***, vars), cnt, exclude);
}
/* Sets *VARS to an array of pointers to variables in D and *CNT