Changed all the licence notices in all the files.
[pspp-builds.git] / src / sort.h
index e6c9fed9df4c2046d4a9a51c25fd38b66e72e0b1..347574c4d20ba5bd90f68625eb0159cd537e0d8a 100644 (file)
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA. */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA. */
 
 #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 <stddef.h>
+#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 */