fixed computation of sample covariance
[pspp-builds.git] / src / data / procedure.h
index 5a1968782cb9fa462aaf29351cbd7ed8a0a48e61..35678ce60455caeb710857cd4d512ad4e1b3955a 100644 (file)
@@ -22,7 +22,9 @@
 
 #include <time.h>
 #include <stdbool.h>
+
 #include <data/transformations.h>
+#include <libpspp/compiler.h>
 
 struct ccase;
 struct casefile;
@@ -62,17 +64,22 @@ bool proc_has_source (void);
 void proc_set_sink (struct case_sink *);
 struct casefile *proc_capture_output (void);
 
-bool procedure (bool (*proc_func) (struct ccase *, void *aux), void *aux);
-bool procedure_with_splits (void (*begin_func) (void *aux),
-                            bool (*proc_func) (struct ccase *, void *aux),
-                            void (*end_func) (void *aux),
-                            void *aux);
-bool multipass_procedure (bool (*proc_func) (const struct casefile *,
-                                             void *aux),
-                          void *aux);
-bool multipass_procedure_with_splits (bool (*) (const struct casefile *,
+bool procedure (bool (*proc_func) (const struct ccase *, void *),
+                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)
+     WARN_UNUSED_RESULT;
+bool multipass_procedure (bool (*proc_func) (const struct casefile *, void *),
+                          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. */