X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fsort-cases.c;h=be8e3235070634dadbf6cd7692ba3f8049506ba2;hb=e7d0a9f16192ceeff9243f0ede8e399ee1ef0d44;hp=156c5b42ad92de4f2e1cd920e9b04971c497d235;hpb=b0bf9b1b0f727fafac4296a048e3f45db5936f81;p=pspp-builds.git diff --git a/src/language/stats/sort-cases.c b/src/language/stats/sort-cases.c index 156c5b42..be8e3235 100644 --- a/src/language/stats/sort-cases.c +++ b/src/language/stats/sort-cases.c @@ -24,7 +24,7 @@ #include #include "sort-criteria.h" -#include +#include #include #include #include @@ -40,14 +40,14 @@ /* Performs the SORT CASES procedures. */ int -cmd_sort_cases (void) +cmd_sort_cases (struct dataset *ds) { struct sort_criteria *criteria; bool success = false; lex_match (T_BY); - criteria = sort_parse_criteria (default_dict, NULL, NULL, NULL, NULL); + criteria = sort_parse_criteria (dataset_dict (ds), NULL, NULL, NULL, NULL); if (criteria == NULL) return CMD_CASCADING_FAILURE; @@ -68,7 +68,7 @@ cmd_sort_cases (void) lex_get (); } - success = sort_active_file_in_place (criteria); + success = sort_active_file_in_place (ds, criteria); done: min_buffers = 64;