/* One key used for sorting. */
struct sort_key
{
- struct variable *var; /* Variable. */
+ const struct variable *var; /* Variable. */
enum sort_direction dir; /* Sort direction. */
};
bool
case_ordering_add_var (struct case_ordering *co,
- struct variable *var, enum sort_direction dir)
+ const struct variable *var, enum sort_direction dir)
{
struct sort_key *key;
size_t i;
return co->key_cnt;
}
-struct variable *
+const struct variable *
case_ordering_get_var (const struct case_ordering *co, size_t idx)
{
assert (idx < co->key_cnt);
void
case_ordering_get_vars (const struct case_ordering *co,
- struct variable ***vars, size_t *var_cnt)
+ const struct variable ***vars, size_t *var_cnt)
{
size_t i;