X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsort.h;h=c8f97af0a98500ca291da93d610d709f32ce0338;hb=7dc203206d3f3172474a4ec0f4dcab5364f4ce26;hp=e6c9fed9df4c2046d4a9a51c25fd38b66e72e0b1;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/sort.h b/src/sort.h index e6c9fed9df..c8f97af0a9 100644 --- a/src/sort.h +++ b/src/sort.h @@ -20,12 +20,21 @@ #if !sort_h #define sort_h 1 -/* SORT CASES programmatic interface. */ -int sort_cases (int separate); -void read_sort_output (int (*write_case)(void)); +#include +#include "bool.h" -/* Variables to sort. */ -extern struct variable **v_sort; -extern int nv_sort; +struct casereader; +struct dictionary; +struct variable; + +struct sort_criteria *sort_parse_criteria (const struct dictionary *, + struct variable ***, int *, + bool *saw_direction); +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 */