X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsort.h;h=63054413f539a0238f1efd7594faeb648a195869;hb=2c9a5954d98d4dd508d8fbf2496f2bb819527a46;hp=15a5b2db25d71f6f3a7d554e63426021ca52504d;hpb=5906e30c29662d12594199e1652ba3a7e5670944;p=pspp diff --git a/src/sort.h b/src/sort.h index 15a5b2db25..63054413f5 100644 --- a/src/sort.h +++ b/src/sort.h @@ -20,14 +20,19 @@ #if !sort_h #define sort_h 1 -#include "vfm.h" +#include -/* SORT CASES programmatic interface. */ -int sort_cases (int separate); -void read_sort_output (write_case_func *, write_case_data); +struct casereader; +struct dictionary; +struct variable; -/* Variables to sort. */ -extern struct variable **v_sort; -extern int nv_sort; +struct sort_criteria *sort_parse_criteria (const struct dictionary *, + struct variable ***, int *); +void sort_destroy_criteria (struct sort_criteria *); + +struct casefile *sort_execute (struct casereader *, + const struct sort_criteria *); +int sort_active_file_in_place (const struct sort_criteria *); +struct casefile *sort_active_file_to_casefile (const struct sort_criteria *); #endif /* !sort_h */