X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fprocedure.h;h=35678ce60455caeb710857cd4d512ad4e1b3955a;hb=f70f1b22e925d55c246372376de1c6ffaacf8a4b;hp=76ca6dc88fc3ea9a2125b28c4251765b41bd4a53;hpb=a4ae68f966bc574326d429119878e733069ced14;p=pspp-builds.git diff --git a/src/data/procedure.h b/src/data/procedure.h index 76ca6dc8..35678ce6 100644 --- a/src/data/procedure.h +++ b/src/data/procedure.h @@ -22,7 +22,9 @@ #include #include + #include +#include struct ccase; struct casefile; @@ -62,18 +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 *), - void *aux); +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); + 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); /* Number of cases to lag. */