projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Encapsulated the static data of procedure.[ch] into a single object, to be
[pspp-builds.git]
/
src
/
language
/
stats
/
oneway.q
diff --git
a/src/language/stats/oneway.q
b/src/language/stats/oneway.q
index bdf1ec90a22c3a41d812562526dce4145dfe8c6f..0b75608a761b482286eb3df470d233477e576da6 100644
(file)
--- a/
src/language/stats/oneway.q
+++ b/
src/language/stats/oneway.q
@@
-149,7
+149,7
@@
cmd_oneway(void)
}
}
}
}
- ok = multipass_procedure_with_splits (run_oneway, &cmd);
+ ok = multipass_procedure_with_splits (
current_dataset,
run_oneway, &cmd);
free (vars);
free_oneway (&cmd);
free (vars);
free_oneway (&cmd);
@@
-228,12
+228,12
@@
oneway_custom_variables(struct cmd_oneway *cmd UNUSED, void *aux UNUSED)
lex_match('=');
lex_match('=');
- if ((token != T_ID || dict_lookup_var (d
efault_dict
, tokid) == NULL)
+ if ((token != T_ID || dict_lookup_var (d
ataset_dict (current_dataset)
, tokid) == NULL)
&& token != T_ALL)
return 2;
&& token != T_ALL)
return 2;
- if (!parse_variables (d
efault_dict
, &vars, &n_vars,
+ if (!parse_variables (d
ataset_dict (current_dataset)
, &vars, &n_vars,
PV_DUPLICATE
| PV_NUMERIC | PV_NO_SCRATCH) )
{
PV_DUPLICATE
| PV_NUMERIC | PV_NO_SCRATCH) )
{
@@
-917,7
+917,7
@@
run_oneway(const struct ccase *first, const struct casefile *cf, void *cmd_)
size_t i;
const double weight =
size_t i;
const double weight =
- dict_get_case_weight (d
efault_dict
, &c, &bad_weight_warn);
+ dict_get_case_weight (d
ataset_dict (current_dataset)
, &c, &bad_weight_warn);
const union value *indep_val = case_data (&c, indep_var->fv);
const union value *indep_val = case_data (&c, indep_var->fv);