X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ftransformations.h;h=866a2fc45ca36386e566cda9271f519a4da3afdb;hb=cda91450a687e3f520ec4614dcc2d09f6f7c82bb;hp=196f65dce980e6f2ce2f8f38b7fb9042634e1b75;hpb=b0bf9b1b0f727fafac4296a048e3f45db5936f81;p=pspp-builds.git diff --git a/src/data/transformations.h b/src/data/transformations.h index 196f65dc..866a2fc4 100644 --- a/src/data/transformations.h +++ b/src/data/transformations.h @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -23,19 +22,21 @@ #include #include +typedef unsigned long casenumber ; + /* trns_proc_func return values. */ enum trns_result { TRNS_CONTINUE = -1, /* Continue to next transformation. */ TRNS_DROP_CASE = -2, /* Drop this case. */ TRNS_ERROR = -3, /* A serious error, so stop the procedure. */ - TRNS_NEXT_CASE = -4, /* Skip to next case. INPUT PROGRAM only. */ + TRNS_END_CASE = -4, /* Skip to next case. INPUT PROGRAM only. */ TRNS_END_FILE = -5 /* End of input. INPUT PROGRAM only. */ }; struct ccase; typedef void trns_finalize_func (void *); -typedef int trns_proc_func (void *, struct ccase *, int); +typedef int trns_proc_func (void *, struct ccase *, casenumber); typedef bool trns_free_func (void *); /* Transformation chains. */ @@ -49,8 +50,8 @@ bool trns_chain_is_empty (const struct trns_chain *); void trns_chain_append (struct trns_chain *, trns_finalize_func *, trns_proc_func *, trns_free_func *, void *); size_t trns_chain_next (struct trns_chain *); -enum trns_result trns_chain_execute (struct trns_chain *, struct ccase *, - const size_t *case_nr); +enum trns_result trns_chain_execute (struct trns_chain *, enum trns_result, + struct ccase *, const size_t *case_nr); void trns_chain_splice (struct trns_chain *, struct trns_chain *);