X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ftransformations.h;fp=src%2Fdata%2Ftransformations.h;h=66ddb4e0fb63a4688f05b7f70e78d5000b0a5040;hb=765362af497f7b1f9c9a5ef387d40eac474fbbe3;hp=5e1488323b1936808f46496843fdfcd5c7ac3a45;hpb=cfe28ef151771c04be56d459c58d818f6c43f5e1;p=pspp diff --git a/src/data/transformations.h b/src/data/transformations.h index 5e1488323b..66ddb4e0fb 100644 --- a/src/data/transformations.h +++ b/src/data/transformations.h @@ -17,6 +17,7 @@ #ifndef TRANSFORMATIONS_H #define TRANSFORMATIONS_H 1 +#include #include #include #include "data/case.h" @@ -24,16 +25,26 @@ /* 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_END_CASE = -4, /* Skip to next case. INPUT PROGRAM only. */ - TRNS_END_FILE = -5 /* End of input. INPUT PROGRAM only. */ + TRNS_CONTINUE = INT_MIN, /* Continue to next transformation. */ + TRNS_DROP_CASE, /* Drop this case. */ + TRNS_ERROR, /* A serious error, so stop the procedure. */ + TRNS_END_CASE, /* Skip to next case. INPUT PROGRAM only. */ + TRNS_END_FILE /* End of input. INPUT PROGRAM only. */ }; struct ccase; typedef int trns_proc_func (void *, struct ccase **, casenumber); typedef bool trns_free_func (void *); +typedef struct pxd_object *trns_save_func (void *, struct pxd *); +typedef void *trns_load_func (struct pxd_object *, const struct pxd *); + +#if 0 +struct trns_class + { + int (*execute) (struct trns_class *, struct ccase **, casenumber); + bool (*destroy) (struct ccase *); + }; +#endif /* Transformation chains. */