+Tue May 9 21:09:17 2006 Ben Pfaff <blp@gnu.org>
+
+ * procedure.h: Add WARN_UNUSED_RESULT to procedure function
+ prototypes.
+
Tue May 9 21:08:05 2006 Ben Pfaff <blp@gnu.org>
* casefile.c: Convert many uses of `int' to `bool'.
#include <time.h>
#include <stdbool.h>
+
#include <data/transformations.h>
+#include <libpspp/compiler.h>
struct ccase;
struct casefile;
struct casefile *proc_capture_output (void);
bool procedure (bool (*proc_func) (const struct ccase *, void *),
- void *aux);
+ void *aux)
+ WARN_UNUSED_RESULT;
bool procedure_with_splits (void (*begin_func) (const struct ccase *, void *),
bool (*proc_func) (const struct ccase *, void *),
void (*end_func) (void *),
- void *aux);
+ void *aux)
+ WARN_UNUSED_RESULT;
bool multipass_procedure (bool (*proc_func) (const struct casefile *, void *),
- void *aux);
+ void *aux)
+ WARN_UNUSED_RESULT;
bool multipass_procedure_with_splits (bool (*) (const struct ccase *,
const struct casefile *,
void *),
- void *aux);
+ void *aux)
+ WARN_UNUSED_RESULT;
time_t time_of_last_procedure (void);
\f
/* Number of cases to lag. */
+Tue May 9 21:09:37 2006 Ben Pfaff <blp@gnu.org>
+
+ * sort.c (sort_active_file_to_casefile): Check return value of
+ multipass_procedure().
+
Wed May 3 23:06:43 2006 Ben Pfaff <blp@gnu.org>
Continue reforming procedure execution. In this phase, get rid of
cb_data.criteria = criteria;
cb_data.output = NULL;
- multipass_procedure (sort_to_casefile_callback, &cb_data);
-
+ if (!multipass_procedure (sort_to_casefile_callback, &cb_data))
+ {
+ casefile_destroy (cb_data.output);
+ return NULL;
+ }
return cb_data.output;
}