Eliminate temp_case, and a few other cleanups.
[pspp-builds.git] / src / sort.h
index 928a5170b1340caeeb105687020e2ad11db61136..4f8659e68d5de7100a431ee940c2e595a24506d7 100644 (file)
@@ -40,13 +40,17 @@ struct sort_cases_pgm
 
     struct internal_sort *isrt;         /* Internal sort output. */
     struct external_sort *xsrt;         /* External sort output. */
+    size_t case_size;                   /* Number of bytes in case. */
   };
 
 /* SORT CASES programmatic interface. */
+
+typedef int read_sort_output_func (const struct ccase *, void *aux);
+
 struct sort_cases_pgm *parse_sort (void);
 int sort_cases (struct sort_cases_pgm *, int separate);
 void read_sort_output (struct sort_cases_pgm *,
-                       write_case_func *, write_case_data);
+                       read_sort_output_func, void *aux);
 void destroy_sort_cases_pgm (struct sort_cases_pgm *);
 
 #endif /* !sort_h */